Skip to content

Commit 47c32b8

Browse files
committed
workshop3/3
1 parent 36c71ed commit 47c32b8

9 files changed

+74
-21
lines changed

.gitignore

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
### IntelliJ IDEA ###
2+
out/
3+
!**/src/main/**/out/
4+
!**/src/test/**/out/
5+
6+
### Eclipse ###
7+
.apt_generated
8+
.classpath
9+
.factorypath
10+
.project
11+
.settings
12+
.springBeans
13+
.sts4-cache
14+
bin/
15+
!**/src/main/**/bin/
16+
!**/src/test/**/bin/
17+
18+
### NetBeans ###
19+
/nbproject/private/
20+
/nbbuild/
21+
/dist/
22+
/nbdist/
23+
/.nb-gradle/
24+
25+
### VS Code ###
26+
.vscode/
27+
28+
### Mac OS ###
29+
.DS_Store

.idea/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ZooManagement.iml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>

src/Main.java

-13
This file was deleted.

src/Zoo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ public static Zoo comparerZoo(Zoo z1, Zoo z2) {
102102
}
103103
}
104104

105-
}
105+
}

src/ZooManagement.java

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
2+
// then press Enter. You can now see whitespace characters in your code.
13
import java.util.Scanner;
24
public class ZooManagement
35

@@ -14,7 +16,7 @@ public ZooManagement(){
1416
System.out.println("erreur !, veuillez enter un nombre des cages");
1517
}
1618

17-
nbrCages = scanner.nextInt();
19+
nbrCages = scanner.nextInt();
1820

1921
scanner.nextLine();
2022

@@ -30,7 +32,7 @@ public void displayMessage()
3032
System.out.println(zooName +" comporte " + nbrCages+" cages ");
3133

3234
}
33-
public static void main (String[] args) {
35+
public static void main (String[] args) {
3436

3537
ZooManagement zoo = new ZooManagement();
3638
zoo.displayMessage();
@@ -69,8 +71,4 @@ public static void main (String[] args) {
6971
}
7072

7173

72-
}
73-
74-
75-
76-
74+
}

0 commit comments

Comments
 (0)