Question: In JAVA Write a program named Weekday that reads an integer. If the integer is less than 1 or greater than 7 it prints invalid;
In JAVA Write a program named Weekday that reads an integer. If the integer is less than or greater than it prints "invalid"; otherwise it displays SUNDAY if the integer was MONDAY if it was and so on SATURDAY if it was Please don't use if else statements or loops or methods or arrays just simple JAVA
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
