Skip to content

ZahidInGit/Java-Assignments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Steps to Create and Run My First Java Program

  1. Open a web browser.

  2. Download the Oracle JDK installer.

  3. Go to Control Panel.

  4. Open System and Security.

  5. Click on System.

  6. Select Advanced system settings.

  7. Go to the Advanced tab.

  8. Click on Environment Variables.

  9. Under System Variables, select Path and click Edit.

  10. Add a new path for the JDK’s bin directory:

F:\Java

  1. Open Command Prompt.

  2. Open Notepad.

  3. Write the Java code to print Hello World!.

  4. Save the file as HelloWorld.java.

  5. Navigate to the folder where the file is saved.

  6. Open Command Prompt in that folder.

  7. Compile the program using:

javac HelloWorld.java

  1. Run the program using:

java HelloWorld

  1. The program will display:

Hello World!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published