[JAVA] scanner

About scanner

int scanner


System.out.print("〇〇:");            
int 〇〇 = scanner.nextInt();

String scanner


System.out.print("〇〇");            
String 〇〇 = scanner.next();

double scanner


System.out.print("〇〇");            
double 〇〇 = scanner.nextDouble();



Recommended Posts

scanner
java Scanner class
java Scanner loop input