You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,19 +117,21 @@ Next, we can see these lines, colored in green:
117
117
118
118
```java
119
119
/**
120
+
* # Displaying some text in the console
121
+
*
120
122
* Display 'Hello!' in the console.
121
123
*
122
124
* --------- TIPS --------------
123
125
*
124
126
* All lines of code in Java must end with the ';' character. Ex:
125
127
*
126
-
* System.out.println("Apple");
128
+
* System.out.println("Apple");
127
129
*
128
-
* You can use the method System.out.println([some value]) to write something in the console.
130
+
* You can use the method System.out.println([some value]) to display a value in the console.
129
131
*
130
132
* You can tell Java that some value is text by enclosing it between double quotes. Ex:
131
133
*
132
-
* "This is text"
134
+
* "This is text"
133
135
*
134
136
* -------------------------------
135
137
*
@@ -140,7 +142,11 @@ Next, we can see these lines, colored in green:
140
142
*/
141
143
```
142
144
143
-
These lines are forming what's called a 'comment'. All the text between a `/*` and a `*/` is a comment. A comment is a piece of information that is ignored by Java. It is not code. It is very useful for documenting your code while you are writing Java. The master is putting each Koan's instructions for you in such a comment. You can find the goal of the koan at the top of each such comment: `Display'Hello!' in the console.`.The console is the simplest way for a Java program to communicate with you by displaying simple text in a terminal. Remember what was displayed when running the Koans?You saw this bit:
145
+
These lines are forming what's called a 'comment'. All the text between a `/*` and a `*/` is a comment. A comment is a piece of information that is ignored by Java. It is not code. It is very useful for documenting your code while you are writing Java. The master is putting each Koan's instructions for you in such a comment.
146
+
147
+
The first line of the comment tells you the title of the Koan: `# Displaying some text in the console`.
148
+
149
+
Then comes the goal of the koan at the top of each such comment: `Display'Hello!' in the console.`.The console is the simplest way for a Java program to communicate with you by displaying simple text in a terminal. Remember what was displayed when running the Koans?You saw this bit:
144
150
145
151
```
146
152
Console:
@@ -387,6 +393,8 @@ Ensuite, nous pouvons voir ces lignes, en vert:
387
393
388
394
```java
389
395
/**
396
+
* # Afficher du texte dans la console
397
+
*
390
398
* Afficher 'Hello!' dans la console.
391
399
*
392
400
* --------- INDICES --------------
@@ -412,7 +420,9 @@ Ensuite, nous pouvons voir ces lignes, en vert:
412
420
413
421
Ces lignes forment ce qu'on appelle un 'commentaire'. Tout le texte vert entre `/**` et `*/` est un commentaire. Un commentaire est une information destinée à des humains, et est ignoré par Java. Ce n'est pas du code. C'est très utile pour documenter ton code quand tu écris du Java. Le maître se sert d'un de ces commentaires pour placer les instructions de chacun de ses koans.
414
422
415
-
Tu peux trouver l'objectif du koan en haut du commentaire: `Afficher 'Hello!' dans la console.`. La console est la façon la plus simple pour un programme Java d'afficher quelque chose dans un terminal. Tu te souviens de ce qui a été affiché lorsque tu as exécuté les koans?Tu as vu ce bout de texte:
423
+
La première ligne du commentaire te donne le titre du Koan: `# Afficher du texte dans la console`.
424
+
425
+
Ensuite, tu peux trouver l'objectif du koan en haut du commentaire: `Afficher 'Hello!' dans la console.`. La console est la façon la plus simple pour un programme Java d'afficher quelque chose dans un terminal. Tu te souviens de ce qui a été affiché lorsque tu as exécuté les koans?Tu as vu ce bout de texte:
0 commit comments