Hello World

/** * Write a short description of what the class does (one line) * @author Josh Wang * @version 09/11/17 */ public class FirstProgram//class header { //every open bracket need a closed bracket //main method below is ignition of a program (not every class has one) public static void main(String[] args) { //prints "Hello, World" to the console //each line ends in semicolon System.out.println("Hello, World"); } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.