Skip to content

Commit 0edda16

Browse files
author
Bruce Eckel
committed
Reorganized
1 parent 5a25fea commit 0edda16

File tree

969 files changed

+2445
-4025
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

969 files changed

+2445
-4025
lines changed

Ant-Common.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<description>
77
Ant build.xml for the source code for chapter ${chapter}
8-
Bruce Eckel on Java
8+
Bruce Eckel On Java
99
Code available at https://github.com/BruceEckel/OnJava-Examples
1010
See installation instructions in README.md
1111
See copyright notice in CopyRight.txt

HelloDate.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// HelloDate.java
2-
// ©2015 MindView LLC: see Copyright.txt
32
import java.util.*;
43

54
public class HelloDate {

README.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

annotations/AtUnitComposition.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// annotations/AtUnitComposition.java
2-
// ©2015 MindView LLC: see Copyright.txt
32
// Creating non-embedded tests.
43
package annotations;
54
import com.mindviewinc.atunit.*;

annotations/AtUnitExample1.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// annotations/AtUnitExample1.java
2-
// ©2015 MindView LLC: see Copyright.txt
32
package annotations;
43
import com.mindviewinc.atunit.*;
54
import com.mindviewinc.util.*;

annotations/AtUnitExample2.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// annotations/AtUnitExample2.java
2-
// ©2015 MindView LLC: see Copyright.txt
32
// Assertions and exceptions can be used in @Tests.
43
package annotations;
54
import java.io.*;

annotations/AtUnitExample3.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// annotations/AtUnitExample3.java
2-
// ©2015 MindView LLC: see Copyright.txt
32
package annotations;
43
import com.mindviewinc.atunit.*;
54
import com.mindviewinc.util.*;

annotations/AtUnitExample4.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// annotations/AtUnitExample4.java
2-
// ©2015 MindView LLC: see Copyright.txt
32
package annotations;
43
import java.util.*;
54
import com.mindviewinc.atunit.*;
65
import com.mindviewinc.util.*;
7-
import static com.mindviewinc.util.Print.*;
86

97
public class AtUnitExample4 {
108
static String theory = "All brontosauruses " +
@@ -15,6 +13,7 @@ public class AtUnitExample4 {
1513
public AtUnitExample4(String word) { this.word = word; }
1614
public String getWord() { return word; }
1715
public String scrambleWord() {
16+
// <* Improve this: *>
1817
List<Character> chars = new ArrayList<>();
1918
for(Character c : word.toCharArray())
2019
chars.add(c);
@@ -35,22 +34,22 @@ public String scrambleWord() {
3534
return null;
3635
}
3736
@Test boolean words() {
38-
print("'" + getWord() + "'");
37+
System.out.println("'" + getWord() + "'");
3938
return getWord().equals("are");
4039
}
4140
@Test boolean scramble1() {
4241
// Change to a specific seed to get verifiable results:
4342
rand = new Random(47);
44-
print("'" + getWord() + "'");
43+
System.out.println("'" + getWord() + "'");
4544
String scrambled = scrambleWord();
46-
print(scrambled);
45+
System.out.println(scrambled);
4746
return scrambled.equals("lAl");
4847
}
4948
@Test boolean scramble2() {
5049
rand = new Random(74);
51-
print("'" + getWord() + "'");
50+
System.out.println("'" + getWord() + "'");
5251
String scrambled = scrambleWord();
53-
print(scrambled);
52+
System.out.println(scrambled);
5453
return scrambled.equals("tsaeborornussu");
5554
}
5655
public static void main(String[] args) throws Exception {

annotations/AtUnitExample5.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// annotations/AtUnitExample5.java
2-
// ©2015 MindView LLC: see Copyright.txt
32
package annotations;
43
import java.io.*;
54
import com.mindviewinc.atunit.*;

annotations/AtUnitExternalTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// annotations/AtUnitExternalTest.java
2-
// ©2015 MindView LLC: see Copyright.txt
32
// Creating non-embedded tests.
43
package annotations;
54
import com.mindviewinc.atunit.*;

0 commit comments

Comments
 (0)