[Solved] IF statement how can i input a word from the keyboread not just a char in java [duplicate]


luiscubal is right and if you want to compare the string instead of the first carachter, you can use Choice = zam.next(); wich returns a String and compare it using Choice.equals("Borrow").


You get an error when you on Choice = zam.next() because zam.next() returns a String and you probably declared Choice as a char.

1

solved IF statement how can i input a word from the keyboread not just a char in java [duplicate]