Java - Getting Started

Java JDK påkrævet

Entry point - Start

public class Main {

  public static void main(String[] args) {
    System.out.println("Hej Verden")
  }
}

Hver statement slutter med semicolon ;

Kommentarer

// Line comments

/ .... / Block comment

/* ..... / JavaDoc Comment

Packages

En form for namespace

All lowercase

package com.mikejakobsen.mitprojekt;

Eksempel

package com.mikejakobsen.getorganized;

public class Main {

  public static void main(String[] args) {
            System.out.println("Hej Verden");
  }

}

results matching ""

    No results matching ""