System.out.println(sum+ "");
sum+=2;
in your other class, you're doing actually the same as this, but there you are using counter.
so, copy-paste the print command in the other class, and change sum to counter.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433