[JAVA] scanner

À propos du scanner

scanner int


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

Scanner de chaînes


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

double scanner


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



Recommended Posts

scanner
classe Scanner java
entrée de boucle du scanner java