0

I get an error:the method nextline () is undefined for the type scanner. what's the problem?

27th Jul 2016, 3:45 PM
alireza
alireza - avatar
4 Antworten
+ 4
remember Java is case sensitive. Correct method is nextLine()
27th Jul 2016, 4:07 PM
James
James - avatar
+ 1
check the syntax ... nextLine(); import java.util.Scanner; you have done as above..
27th Jul 2016, 4:13 PM
Manikanth Vanka
Manikanth Vanka - avatar
+ 1
tanx problem solved!
28th Jul 2016, 10:01 AM
alireza
alireza - avatar
+ 1
Java is case sensitive language.so,. it is nextLine( ); not nextline( );
30th Jul 2016, 11:43 AM
MOHAMMAD AAQIB
MOHAMMAD AAQIB - avatar