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