UP PREVIOUS NEXT   Technologies Internet et Education, © TECFA
  2. Les premiers pas avec JAVA

2. Les premiers pas avec JAVA

2.1 Caractéristiques et usage du langage Java

Faire des bookmarks

2.2 Le cycle de développement

 

2.3 La plus simple application (Hello)

Exemple 2-1: Hello World

http://tecfa.unige.ch/guides/java/staf2x/ex/basics/
// Everything in Java is a class
public class Hello {

// All programs must have main()
public static void main(String[] args) {
// Say hello!
System.out.println("Hello World!");

} // This marks the end of main()
} // Marks the end of the Hello class

 

Explications


UP PREVIOUS NEXT -- TIE