0
I get an error:the method nextline () is undefined for the type scanner. what's the problem?
4 Answers
+ 4
remember Java is case sensitive. Correct method is nextLine()
+ 1
check the syntax ... nextLine();
import java.util.Scanner;
you have done as above..
+ 1
tanx problem solved!
+ 1
Java is case sensitive language.so,.
it is nextLine( ); not nextline( );