java getting input

https‮al.www//:‬utturi.com
java getting input

System.in :The "standard" input stream.
System.out:The "standard" output stream.

Scanner sc = new Scanner(System.in);
String s = sc.next();
int n = sc.nextInt();
double d = sc.nextDouble();
float f = sc.nextFloat();

//  or
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String s = br.readLine(); 
int c = br.read();
Created Time:2017-09-25 10:30:15  Author:lautturi