afficher texte java 1

afficher texte java

System.out.println("your text");

Here is what the above code is Doing:
1. The first line is a comment. It’s ignored by the computer.
2. The second line is a class declaration. It tells the computer that this is a class called “HelloWorld”.
3. The third line is a method declaration. It tells the computer that this is a method called “main”.
4. The fourth line is a statement. It tells the computer to print out the text “Hello World!”.

Similar Posts