Sunday, April 16, 2017

How to write a program in Java using Netbeans

 I started with:

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

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