- Main Java X 1 Class Main 2 Public Static Void Main String Args 3 System Out Println Hello World 4 5 Con 1 (28.62 KiB) Viewed 30 times
Main.java x 1 class Main { 2▼ public static void main(String[] args) { 3 System.out.println("Hello world!"); 4 5 } } Con
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Main.java x 1 class Main { 2▼ public static void main(String[] args) { 3 System.out.println("Hello world!"); 4 5 } } Con
statement to complete this lab. 1 = Apple 2 = Orange 3 = Banana 4 = Pear 5 = Grapes
Main.java x 1 class Main { 2▼ public static void main(String[] args) { 3 System.out.println("Hello world!"); 4 5 } } Console Shell Instructions Lab Assignment 9 Write a program which will prompt for a user entry from the console. The entry must be from numbers 1 to 5. Print out to the name of the corresponding fruit, based on user entry. For numbers other than 1 to 5, there should be a message stating "Invalid" entry. Use switch/case