Posted 19 February 2012 - 09:32 AM
Posted 19 February 2012 - 09:56 AM
Edited by Charcoal, 19 February 2012 - 09:57 AM.
Kikz: Good for you, your sig says something. whoop-de-do dude.
Posted 19 February 2012 - 10:44 AM
First off you're declaring nameOne, nameTwo and temp as integers.
Integers can only hold whole numbers.
But I'm guessing you want to have the variables hold the names "Susan" and "Peter".
To do that you need to change the int to String. This changes what time of data the variable holds.
You'll also need to surround the "Susan" and "Peter" in double quotes, just like you've done down the bottom in the system.out.println().
forgot about the name variables that needed to be covered when changing it from numbers
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users