Wednesday 15 April 2015

Robot configuration on Java -



Robot configuration on Java -

this question has reply here:

how compare strings in java? 23 answers

i'm having problem writing programme give me yes or no message given input come in robot. want come in wheel configuration (doesn't matter is), , want output show yes if can move wheel configuration enter.

thus far, have basic code:

if(a=="yes"){ system.out.println("yes"); } else if(a == "no"){ system.out.println("no");

notice how i've not added numbers bracket because i'm not sure how approach this, , it's first time i'm testing myself - , i'm new java. help appreciated ever.

try alter == equals

if(a.equals("yes")){ system.out.println("yes"); } else if(a.equals("no")){ system.out.println("no");

java robot

No comments:

Post a Comment