Java Main Class

Asked 2 years ago, Updated 2 years ago, 22 views

If you create one main class for the entire program and select the menu from the main, you want to create a program that has three different functions (make several classes separately for each function) In the main class, use a switch statement inside the public static void main (String[] args I'm trying to make them choose what functions to do If you want to select detailed functions, such as adding or deleting, as a menu, Do I have to use the switch statement again?

Should I declare a static void method outside the public static void main (String[] args) of the main class and write the switch statement that selects the menu in each function?

java

2022-09-22 11:36

1 Answers

I don't know much about Java, but if I can just give you a logic opinion...

I hope it helps.


2022-09-22 11:36

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.