0
why this code is not working proper? I am not able to take input from the keyboardl.
import java.util.Scanner; class India { public static void main(String[] args) { System.out.println("Hello Codiva"); Scanner sc=new Scanner(System.in); String name=sc.nextLine(); System.out.println("MY name is "+name); } }
3 Answers
0
Are you sure is not working? When posting code, write it and post link, better to test.
But I see all and all right.
You imported, declared, assigned... All right. Should work.
0
But not taking input from keyboard
0
Testing where? Because on SoloLearn need declare ALL input before program runs.