initialize scanner java

Scanner sc=new Scanner(System. in);