+ 1

Can someone solve this problem please ? An error occurs when I launch it

import java.util.Scanner; public class Program { public static void main(String[] args) { // int age = (0); System.out.println("Quel age avez vous ?"); Scanner age = new Scanner(System.in); System.out.println(age.nextLine()); if(age < 20){ System.out.println("Bienvenue !"); } else { System.out.println("trop vieux !!!"); } } }

6th Jul 2016, 3:31 PM
Greveson Axel
Greveson Axel - avatar
1 Resposta
0
Ty a lot I was stuck and now I can continue and do so much more things !
6th Jul 2016, 4:10 PM
Greveson Axel
Greveson Axel - avatar