I get an error:the method nextline () is undefined for the type scanner. what's the problem? | Sololearn: Learn to code for FREE!

0

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

7/27/2016 3:45:25 PM

alireza

4 Answers

New Answer

+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( );