0

Why when I put this code it just doesnt work like question page tells me to do.

import java.util.Scanner; class MyClass { public static void main(String[ ] args) { Scanner sc = new Scanner (System.in); String A = sc.nextline (); System.out .println(A) ; } } // I want to get an input to A and it doesnt let. And question page said its right

20th Mar 2020, 4:57 PM
Guy Cohen
Guy Cohen - avatar
2 Answers
+ 1
Capitalize 'l' in sc.nextline.
20th Mar 2020, 5:03 PM
Daniel
Daniel - avatar
0
Thank you
20th Mar 2020, 5:04 PM
Guy Cohen
Guy Cohen - avatar