If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Please choose either y or n.
Stupid idiot java not getting the value of n nameChoice.

Could you please tell me what I did wrong? It seems to be getting the value of nameChoice (it gave it to me in the println), but niether the if or the else if are executing, even when the variable is supposed to prove it true.

to will808: I'm sorry for that...

Well, I don't want to get slated here for giving bad advice

I assume that one was for me, I was in a hurry and didn't pay much attention
to the form, and I sincerely hope it won't keep you from contributing here.
I could certainly have been more polite.
-----
As for the string compare stuff, I've checked, and if two String variables in
closely knitted code are assigned the same string value then java will
sometimes optimize memory usage and in fact assign the same reference
to both, like:
String a="OK";
String b="OK";
if (a==b) {
// this will (sometimes) be true .....
}
..but of course code that relies on this is a recipe for disaster...