Skip to content

Mohd404/Java-Hello-World

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello world with Java ☕

This is a simple "Hello world" done with Java programming language.

Source code

This is the source code of the program:

public class HelloWorld {
  public static void main(String[] args) {
    System.out.println("Hello world!");
  }
}

Notice that System.out.println("Hello world!"); shows the string "Hello world!" on the screen.

Compile program

To compile the "Hello World" program, type the following:

javac HelloWorld.java

configer classpath to run program

export CLASSPATH=$CLASSPATH;$JAVA_HOME

Excute the program

To execute the program, type this:

java HelloWorld

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages