have a string
amount = 120
if i add new item of 30
then amount should
now
amount = 150
How about have the amount as an int and then output it as a string int amount = 120 amount +=30 println("Amount: " + amount)
Обсуждают сегодня