Uhm, you are trying to assign a string an integer. I don't really know what happens, but that migt be the problem. Try defining a String strNN, and then assigning it n + n (careful so you don't evalauate n + n). Then you could define int nn = Integer.parseInt(strNN)
Edit: Also, use tags from now on please
I hope this helps on your homework!
Emil Olofsson
Last edited by emilo35; Mar 21st, 2010 at 12:29 pm.
Reputation Points: 11
Solved Threads: 8
Junior Poster in Training
Offline 74 posts
since Feb 2010