Step 1
Open "Folder" and create a new directory called "myproject" under your home directory to keep all your works.
Step 2
Open "Text Editor" (gedit). Enter the following source code and save as "Hello.java" under the "~/myproject" directory created eariler.
public class Hello { // To save as "Hello.java" under "~/myproject"
public static void main(String[] args) {
System.out.println("Hello, world from Ubuntu!");
}
}