forked from joonspoon/madecraft-oop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-organized examples and exercises by chapter.
- Loading branch information
Showing
32 changed files
with
105 additions
and
346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="lib" path="lib/gridworld.jar"/> | ||
<classpathentry kind="lib" path="lib/Tortoise.jar"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"> | ||
<attributes> | ||
<attribute name="module" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/> | ||
<classpathentry kind="src" path="2. Inside Classes"/> | ||
<classpathentry kind="src" path="3. Getters and Setters"/> | ||
<classpathentry kind="src" path="4. Static"/> | ||
<classpathentry kind="src" path="6. UML"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
23 changes: 21 additions & 2 deletions
23
src/examples/Duck.java → 2. Inside Classes/examples/Duck.java
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 10 additions & 6 deletions
16
src/examples/Pond.java → 2. Inside Classes/examples/Pond.java
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
package examples; | ||
|
||
|
||
public class Pond { | ||
|
||
public static void main(String[] args) { | ||
Duck mobyDuck = new Duck("Moby", 90/3, "celery"); | ||
Duck wolfgangDuck = new Duck("Wolfgang", 60/3, "cheeseburgers"); | ||
|
||
Duck mobyDuck = new Duck("Moby", 90 / 3, "celery"); | ||
Duck wolfgangDuck = new Duck("Wolfgang", 60 / 3, "cheeseburgers"); | ||
|
||
mobyDuck.waddle(); | ||
mobyDuck.waddle(); | ||
mobyDuck.waddle(); | ||
mobyDuck.waddle(); | ||
mobyDuck.waddle(); | ||
mobyDuck.waddle(); | ||
mobyDuck.waddle(); | ||
|
||
wolfgangDuck.waddle(); | ||
|
||
System.out.println(mobyDuck); | ||
|
||
// Exercise: Make the Duck quack | ||
|
||
} | ||
|
||
} |
0
src/exercises/Cat.java → 2. Inside Classes/exercises/Cat.java
100644 → 100755
File renamed without changes.
0
src/exercises/Harry.java → 2. Inside Classes/exercises/Harry.java
100644 → 100755
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
0
src/examples/Taco.java → 3. Getters and Setters/examples/Taco.java
100644 → 100755
File renamed without changes.
0
src/exercises/Minion.java → 3. Getters and Setters/exercises/Minion.java
100644 → 100755
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0
src/examples/Athlete.java → 4. Static/examples/Athlete.java
100644 → 100755
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ public class DoStuff { | |
|
||
public static void main(String args[]) { | ||
new Pug().bark(); | ||
|
||
} | ||
|
||
} |
0
src/examples/Marathon.java → 4. Static/examples/Marathon.java
100644 → 100755
File renamed without changes.
0
src/examples/Pug.java → 4. Static/examples/Pug.java
100644 → 100755
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0
src/exercises/Smurf.java → 4. Static/exercises/Smurf.java
100644 → 100755
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.