Hi Guys, I am a noob at this java programming thing. I have 3 classes. When My program runs, it works good the first time when i Choose option 1(only option that is working for now). But after a loop, the data is over written, what can i do to keep my data even the counter. I understand why because every loop it does, it reinitialize everything which erases everything. I cannot think of a solution (kinda new in this).

But after a loop, the data is over written, what can i do to keep my data

What variable has the data the you want to keep?
One way to keep data from within a loop is to use an array or arraylist. Each time the code goes around the loop it could change the index to the array so that the new data goes into the next slot in the array and the old data is kept in the previous slot in the array.