·  ECLIPSE – Create – Java Class

 

- Info:

  - This tutorial shows how to use Eclipse to create Java Class.

 

- Create JAVA Class:

  - Create Java Project MyProject – RC on MyProject – New – Class – Name:MyJava – Finish – Paste java code

 

    MyJava.java

    public class MyJava {

      public static void main(String[] args) {

        System.out.println("Hello world");

      }

    }

 

- Run:

  - MyJava.java  – Run – Run... – Java Application – New

  - Name:RunMyJava

  - Run

 

- Repeat:

  - Click on drop down arrow  RunProgram  – RunMyJava