Sunday, April 16, 2017

How to write a program in Java using Netbeans

 I started with:

http://www.wikihow.com/Write-Your-First-Program-in-Java

Then, I compiled a Netbeans project. Starting with create new project and create a new Java file named hello.java

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

The Java class file (hello.class) shows up in ~/NetBeansProjects/JavaApplication1/build/classes .


No comments:

Post a Comment