Creating a counter which goes up by one when a name is input in java

I'm trying to create a program that stores information on names. I need to create a variable called counter, which will go up by one after every time a new name is input. I've tried creating a variable called counter and every time i call uppon my addName method it adds one to the number, however every time I input a new name it resets back to 0....

Read More »

By: StackOverFlow - Sunday, 15 April

Related Posts