public class Position { private final String symbol; private int amount; public Position(String symbol, int value) { this.symbol=symbol; this.amount=value; } public String getSymbol() { return this.symbol; } public int getAmount() { return amount; } public void updateAmount(int updateBy) { amount += updateBy; } }