Skip to content

Commit 629e697

Browse files
committed
review
1 parent 8368979 commit 629e697

File tree

6 files changed

+27
-27
lines changed

6 files changed

+27
-27
lines changed

src/main/java/M2_S4a_Base.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
*/
1010
void main() {
1111
int a = 7;
12-
System.out.println("a is " + a);
12+
IO.println("a is " + a);
1313

1414
int b = 3;
15-
System.out.println("b is " + b);
15+
IO.println("b is " + b);
1616

1717
int sum = a + b;
18-
System.out.println("a + b is " + sum);
18+
IO.println("a + b is " + sum);
1919

2020
int prod = a * b;
21-
System.out.println("a * b is " + prod);
21+
IO.println("a * b is " + prod);
2222
}

src/main/java/M2_S4a_X1.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
*/
1010
void main() {
1111
int a = 42;
12-
System.out.println("a is " + a);
12+
IO.println("a is " + a);
1313

1414
int b = 6;
15-
System.out.println("b is " + b);
15+
IO.println("b is " + b);
1616

1717
// TODO: assign to c the result of the division of a by b
1818
int c = 0;
19-
System.out.println("a divided by b is " + c);
19+
IO.println("a divided by b is " + c);
2020
}

src/main/java/M2_S4a_X2.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
*/
1010
void main() {
1111
int a = 12;
12-
System.out.println("a is " + a);
12+
IO.println("a is " + a);
1313

1414
int b = 8;
15-
System.out.println("b is " + b);
15+
IO.println("b is " + b);
1616

1717
// TODO: assign to c the result of the difference of a by b
1818
int c = 0;
19-
System.out.println("the difference between a and b is " + c);
19+
IO.println("the difference between a and b is " + c);
2020
}

src/main/java/M2_S4b_Conditional.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,39 @@
99
*/
1010
void main() {
1111
int a = 7;
12-
System.out.println("a is " + a);
12+
IO.println("a is " + a);
1313

1414
int b = 3;
15-
System.out.println("b is " + b);
15+
IO.println("b is " + b);
1616

1717
// if
1818
if (a < b) {
19-
System.out.println("a is less than b");
19+
IO.println("a is less than b");
2020
}
2121

2222
// if - else
2323
if (a == b) {
24-
System.out.println("a is equal to b");
24+
IO.println("a is equal to b");
2525
} else {
26-
System.out.println("a is not equal to b");
26+
IO.println("a is not equal to b");
2727
}
2828

2929
// if - else if
3030
if (a > b) {
31-
System.out.println("a is bigger than b");
31+
IO.println("a is bigger than b");
3232
} else if (b > a) {
33-
System.out.println("b is bigger than a");
33+
IO.println("b is bigger than a");
3434
}
3535

3636
// if - else if - else
3737
if (a > b) {
38-
System.out.println("a is bigger than b");
38+
IO.println("a is bigger than b");
3939
} else if (b > a) {
40-
System.out.println("b is bigger than a");
40+
IO.println("b is bigger than a");
4141
} else {
42-
System.out.println("a is equal to b");
42+
IO.println("a is equal to b");
4343
}
4444

4545
// ...
46-
System.out.println("Done!");
46+
IO.println("Done!");
4747
}

src/main/java/M2_S4b_X1.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
*/
1010
void main() {
1111
int tomAge = 42;
12-
System.out.println("Tom age is " + tomAge);
12+
IO.println("Tom age is " + tomAge);
1313

1414
// TODO: underage should be true only if tom age is less than 18
1515
boolean underage = true;
16-
System.out.println("Is Tom underage? " + underage);
16+
IO.println("Is Tom underage? " + underage);
1717
}

src/main/java/M2_S4b_X2.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
*/
1010
void main() {
1111
int number = 42;
12-
System.out.println("The chosen number is " + number);
12+
IO.println("The chosen number is " + number);
1313

1414
// TODO: check if the number is positive, negative, or zero
1515
// just the correct answer should be printed
16-
System.out.println("The number is positive");
17-
System.out.println("The number is negative");
18-
System.out.println("The number is zero");
16+
IO.println("The number is positive");
17+
IO.println("The number is negative");
18+
IO.println("The number is zero");
1919
}

0 commit comments

Comments
 (0)