How to create a java program
Answers
Answered by
2
Answer:
Step one:
1. Navigate to your My Documents folder in a file explorer.
2. In that window right-click hover over new and click on "Text Document" this will create a file name "New Text Document" with the name highlighted, so you can rename it.
3. Click away from the document it because we will rename it later.
Step two:
1. Open your newly created text document.
2. Inside your file type "class MyFirstProgram {"
Do not forget the curly brace because this tells the computer where the meat of your program is.
3. Press enter twice to create to new lines and then type "}" this tells the computer that everything that makes up this program has been entered.
4. At this point your program should look like the attached picture for this step.
Attachments:
Similar questions