+ 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") ; } } }

28th Jul 2017, 4:50 PM
Pulkit sharma
Pulkit sharma - avatar
3 ответов
0
nextInt
8th Sep 2017, 2:39 PM
guanwenhui
guanwenhui - avatar
0
Hi friend which programming language is better to learn for android programming
25th May 2020, 4:52 PM
Android Plus
Android Plus - avatar