Need help for project, Beginner Here :)

so my teacher has given me a task to create a program that if I Enter a specific number a specific program will come out

Example

Menu
1)Prelim
2)Midterm
3)Finals
4)Exit
Enter a number Here:

If I enter 1 Prelim Program will come out
Prelim
1)Display Program 1
2)Display Display Face
3)Display Proram 3
4)Back (will go back to menu)
Enter Number Here:

If I enter 2 it will display Face
+’’’’’’’’’’’+
[| o o |]
| ^ |
| ‘-’ |
+’’’’’’’’’’’+

after the program has been processed it will go back to Prelim Menu

Prelim
1)Display Program 1
2)Display Display Face
3)Display Proram 3
4)Back (will go back to menu)
Enter Number Here:

i need a java code for this please help… thank you (sorry for my bad english im not that good speaking english :slight_smile: )

This is a web development forum that focuses mainly on the MERN stack. We don’t teach Java. There’s nothing wrong with asking, but don’t be surprised if you don’t get a lot of answers. However there are some pretty sharp guys and gals here and some may have Java experience so you may get an answer.

The other problem is that we are not here to do your homework for you. Usually, people post or link to the code that they’ve tried so far or ask very specific questions. We don’t usually encourage the “Here’s what I need, build my program for me. Let me know when you’re done.” approach.

Please post what you’ve tried and ask specific questions about it.