Пример #1
0
 public void update() {
   if (backpackStock != null && backpackStock == -1) {
     stockLabel.setText(stock.getStock().toString());
     price.setText("$" + ((Float) (1.1f * stock.getPrice())).toString());
   } else if (pack.getContents().get(item) != null) {
     stockLabel.setText(pack.getContents().get(item).toString());
     price.setText("$" + ((Float) (0.9f * stock.getPrice())).toString());
   }
 }