/classe-sacanner-java

Classe-scanner-java

Primary LanguageJavaMIT LicenseMIT

classe-scanner-java

• Scanner scanner = new Scanner(System.in); • int numeroInteiro = scanner.nextInt(); • byte numeroByte = scanner.nextByte(); • long numeroLong = scanner.nextLong(); • boolean booleano = scanner.nextBoolean(); • float numeroFloat = scanner.nextFloat(); • double numeroDouble = scanner.nextDouble();