Hi,
I have this code in my main :
public static void main(String[] args) { final int Sunday = 1; final int Monday = 2; final int Tuesday = 3; final int Wendesday = 4; final int Thursday = 5; final int Friday = 6; final int Saturday = 7; int num; Scanner scan = new Scanner(System.in); System.out.println("What is the day today?"); num = scan.nextInt(); switch(num) { case 0 : System.out.println("The day is " + Sunday); break; case 1 : System.out.println("The day is " + Monday); break; case 2 : System.out.println("The day is " + Tuesday); break; case 3 : System.out.println("The day is " + Wendesday); break; case 4 : System.out.println("The day is " + Thursday); break; case 5 : System.out.println("The day is " + Friday); break; case 6 : System.out.println("The day is " + Saturday); break; } }
I want that all the days (Sunday , Monday, etc) will print me the day "Sunday", not a int, how can i do it?
Thanks,
Or.