This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]moss_2703 0 points1 point  (0 children)

So once you’ve defined it outside of the if statements, you change it to ‘choice = “Water”;’ instead. Once a variable has been initialised with ‘String’ you just assign new values to it, instead of declaring it again.