I want my output to be Candy[1]. counterInt = 1
But my compiler isn't taking this code:
System.out.println("Candy["+counterInt"]");
What can I do to have this variable appear within the string Candy[]?
Candy[] is not an array, it's a string.