+ 4
Why the code below is giving an error?
import java.util.*; public class Program { public static void main(String[] args) { int Weekday; boolean holiday = false; Scanner sc=new Scanner(System.in); Weekday = sc.nextint(); if(Weekday <6 && !holiday) { System.out.println("WAKEUP AT 7.00" ); } else{ System.out.println("Sleep in") ; } } }
3 Antworten
0
nextInt
0
Hi friend which programming language is better to learn for android programming