Fin du TP Heritage
This commit is contained in:
12
DEV2.1/TP04/Progression.java
Normal file
12
DEV2.1/TP04/Progression.java
Normal file
@@ -0,0 +1,12 @@
|
||||
public class Progression {
|
||||
public static void main(String[] args) {
|
||||
Compteur c = new Compteur();
|
||||
for (int i = 0; i < 5; i++) {
|
||||
c.plusUn();
|
||||
}
|
||||
for (int i = 0; i < 5; i++) {
|
||||
System.out.println(c.toString());
|
||||
c.plusUn();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user