Auto-updated example output
This commit is contained in:
parent
ede10f751b
commit
d6e63d4265
@ -21,8 +21,8 @@ public class AtUnitComposition {
|
||||
}
|
||||
/* Output:
|
||||
annotations.AtUnitComposition
|
||||
. _methodOne
|
||||
. _methodTwo This is methodTwo
|
||||
|
||||
. _methodOne
|
||||
OK (2 tests)
|
||||
*/
|
||||
|
@ -28,11 +28,11 @@ public class AtUnitExample1 {
|
||||
/* Output:
|
||||
annotations.AtUnitExample1
|
||||
. anotherDisappointment (failed)
|
||||
. methodOneTest
|
||||
. failureTest (failed)
|
||||
. m3
|
||||
. m2 This is methodTwo
|
||||
|
||||
. m3
|
||||
. failureTest (failed)
|
||||
. methodOneTest
|
||||
(5 tests)
|
||||
|
||||
>>> 2 FAILURES <<<
|
||||
|
@ -57,15 +57,19 @@ public class AtUnitExample4 {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
starting
|
||||
annotations.AtUnitExample4
|
||||
. scramble1 'All'
|
||||
lAl
|
||||
. words 'All'
|
||||
(failed)
|
||||
. scramble1 'brontosauruses'
|
||||
ntsaueorosurbs
|
||||
(failed)
|
||||
. scramble2 'are'
|
||||
are
|
||||
(failed)
|
||||
(3 tests)
|
||||
|
||||
. scramble2 'brontosauruses'
|
||||
tsaeborornussu
|
||||
|
||||
. words 'are'
|
||||
|
||||
OK (3 tests)
|
||||
>>> 3 FAILURES <<<
|
||||
annotations.AtUnitExample4: words
|
||||
annotations.AtUnitExample4: scramble1
|
||||
annotations.AtUnitExample4: scramble2
|
||||
*/
|
||||
|
@ -17,8 +17,8 @@ public class AtUnitExternalTest extends AtUnitExample1 {
|
||||
}
|
||||
/* Output:
|
||||
annotations.AtUnitExternalTest
|
||||
. _methodOne
|
||||
. _methodTwo This is methodTwo
|
||||
|
||||
. _methodOne
|
||||
OK (2 tests)
|
||||
*/
|
||||
|
@ -26,8 +26,8 @@ public class HashSetTest {
|
||||
}
|
||||
/* Output:
|
||||
annotations.HashSetTest
|
||||
. _remove
|
||||
. initialization
|
||||
. _contains
|
||||
. _remove
|
||||
OK (3 tests)
|
||||
*/
|
||||
|
@ -31,8 +31,8 @@ public class StackLStringTest extends StackL<String> {
|
||||
}
|
||||
/* Output:
|
||||
annotations.StackLStringTest
|
||||
. _top
|
||||
. _push
|
||||
. _top
|
||||
. _pop
|
||||
OK (3 tests)
|
||||
*/
|
||||
|
@ -99,5 +99,5 @@ CREATE TABLE MEMBER(
|
||||
FIRSTNAME VARCHAR(30),
|
||||
LASTNAME VARCHAR(50),
|
||||
AGE INT,
|
||||
HANDLE VARCHAR(30) PRIMARY KEY);
|
||||
REFERENCE VARCHAR(30) PRIMARY KEY);
|
||||
*/
|
||||
|
@ -19,10 +19,11 @@ public class AlphabeticSearch {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
[bkIna, cQrGs, cXZJo, dLsmw, eGZMm, EqUCB, gwsqP, hKcxr,
|
||||
HLGEa, HqXum, HxxHv, JMRoE, JmzMs, Mesbt, MNvqe, nyGcF,
|
||||
ogoYW, OneOE, OWZnT, RFJQA, rUkZP, sgqia, slJrL, suEcU,
|
||||
uTpnX, vpfFv, WHkjU, xxEAJ, YNzbr, zDyCy]
|
||||
[anmkkyh, bhmupju, btpenpc, cjwzmmr, cuxszgv, eloztdv,
|
||||
ewcippc, ezdeklu, fcjpthl, fqmlgsh, gmeinne, hyoubzl,
|
||||
jbvlgwc, jlxpqds, ljlbynx, mvducuj, qgekgly, skddcat,
|
||||
taprwxz, uybypgp, vjsszkn, vniyapk, vqqakbm, vwodhcf,
|
||||
ydpulcq, ygpoalk, yskvett, zehpfmm, zofmmvm, zrxmclh]
|
||||
Index: 10
|
||||
HxxHv
|
||||
gmeinne
|
||||
*/
|
||||
|
@ -69,12 +69,12 @@ public class ArrayCopying {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
a1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
|
||||
a1 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
|
||||
a2 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
|
||||
a2 = [0, 1, 2, 3, 4, 5, 6]
|
||||
a2 = [0, 1, 2, 3, 4, 5, 6, 0, 0, 0, 0, 0]
|
||||
a4 = [4, 5, 6, 7, 8, 9, 10, 11]
|
||||
a1: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
|
||||
a1: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
|
||||
a2: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
|
||||
a2: [0, 1, 2, 3, 4, 5, 6]
|
||||
a2: [0, 1, 2, 3, 4, 5, 6, 0, 0, 0, 0, 0]
|
||||
a4: [4, 5, 6, 7, 8, 9, 10, 11]
|
||||
[Sub0, Sub1, Sub2, Sub3, Sub4, Sub5, Sub6]
|
||||
[Sub0, Sub1, Sub2, Sub3, Sub4, Sub5, Sub6]
|
||||
java.lang.ArrayStoreException
|
||||
|
@ -26,8 +26,8 @@ public class ArraySearching {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
Sorted array: [125, 267, 635, 650, 1131, 1506, 1634,
|
||||
2400, 2766, 3063, 3768, 3941, 4720, 4762, 4948, 5070,
|
||||
5682, 5807, 6177, 6193, 6656, 7021, 8479, 8737, 9954]
|
||||
Sorted array: [125, 267, 635, 650, 1131, 1506, 1634, 2400,
|
||||
2766, 3063, 3768, 3941, 4720, 4762, 4948, 5070, 5682, 5807,
|
||||
6177, 6193, 6656, 7021, 8479, 8737, 9954]
|
||||
Location of 635 is 2, a[2] is 635
|
||||
*/
|
||||
|
@ -16,6 +16,6 @@ public class BadMicroBenchmark {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
setAll: 27
|
||||
parallelSetAll: 53
|
||||
setAll: 62
|
||||
parallelSetAll: 75
|
||||
*/
|
||||
|
@ -17,6 +17,6 @@ public class BadMicroBenchmark2 {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
parallelSetAll: 38
|
||||
setAll: 63
|
||||
parallelSetAll: 83
|
||||
setAll: 159
|
||||
*/
|
||||
|
@ -27,8 +27,8 @@ public class BadMicroBenchmark3 {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
parallelSetAll: 5150
|
||||
setAll: 649
|
||||
parallelSetAll: 277
|
||||
setAll: 246
|
||||
parallelSetAll: 4948
|
||||
setAll: 1204
|
||||
parallelSetAll: 405
|
||||
setAll: 557
|
||||
*/
|
||||
|
@ -41,16 +41,16 @@ public class CompType implements Comparable<CompType> {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
before sorting:
|
||||
[[i = 58, j = 55], [i = 93, j = 61], [i = 61, j = 29]
|
||||
, [i = 68, j = 0], [i = 22, j = 7], [i = 88, j = 28]
|
||||
, [i = 51, j = 89], [i = 9, j = 78], [i = 98, j = 61]
|
||||
, [i = 20, j = 58], [i = 16, j = 40], [i = 11, j = 22]
|
||||
Before sorting: [[i = 35, j = 37], [i = 41, j = 20], [i =
|
||||
77, j = 79]
|
||||
, [i = 56, j = 68], [i = 48, j = 93], [i = 70, j = 7]
|
||||
, [i = 0, j = 25], [i = 62, j = 34], [i = 50, j = 82]
|
||||
, [i = 31, j = 67], [i = 66, j = 54], [i = 21, j = 6]
|
||||
]
|
||||
after sorting:
|
||||
[[i = 9, j = 78], [i = 11, j = 22], [i = 16, j = 40]
|
||||
, [i = 20, j = 58], [i = 22, j = 7], [i = 51, j = 89]
|
||||
, [i = 58, j = 55], [i = 61, j = 29], [i = 68, j = 0]
|
||||
, [i = 88, j = 28], [i = 93, j = 61], [i = 98, j = 61]
|
||||
After sorting: [[i = 0, j = 25], [i = 21, j = 6], [i = 31,
|
||||
j = 67]
|
||||
, [i = 35, j = 37], [i = 41, j = 20], [i = 48, j = 93]
|
||||
, [i = 50, j = 82], [i = 56, j = 68], [i = 62, j = 34]
|
||||
, [i = 66, j = 54], [i = 70, j = 7], [i = 77, j = 79]
|
||||
]
|
||||
*/
|
||||
|
@ -23,16 +23,16 @@ public class ComparatorTest {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
before sorting:
|
||||
[[i = 58, j = 55], [i = 93, j = 61], [i = 61, j = 29]
|
||||
, [i = 68, j = 0], [i = 22, j = 7], [i = 88, j = 28]
|
||||
, [i = 51, j = 89], [i = 9, j = 78], [i = 98, j = 61]
|
||||
, [i = 20, j = 58], [i = 16, j = 40], [i = 11, j = 22]
|
||||
Before sorting: [[i = 35, j = 37], [i = 41, j = 20], [i =
|
||||
77, j = 79]
|
||||
, [i = 56, j = 68], [i = 48, j = 93], [i = 70, j = 7]
|
||||
, [i = 0, j = 25], [i = 62, j = 34], [i = 50, j = 82]
|
||||
, [i = 31, j = 67], [i = 66, j = 54], [i = 21, j = 6]
|
||||
]
|
||||
after sorting:
|
||||
[[i = 68, j = 0], [i = 22, j = 7], [i = 11, j = 22]
|
||||
, [i = 88, j = 28], [i = 61, j = 29], [i = 16, j = 40]
|
||||
, [i = 58, j = 55], [i = 20, j = 58], [i = 93, j = 61]
|
||||
, [i = 98, j = 61], [i = 9, j = 78], [i = 51, j = 89]
|
||||
After sorting: [[i = 21, j = 6], [i = 70, j = 7], [i = 41,
|
||||
j = 20]
|
||||
, [i = 0, j = 25], [i = 62, j = 34], [i = 35, j = 37]
|
||||
, [i = 66, j = 54], [i = 31, j = 67], [i = 56, j = 68]
|
||||
, [i = 77, j = 79], [i = 50, j = 82], [i = 48, j = 93]
|
||||
]
|
||||
*/
|
||||
|
@ -52,9 +52,11 @@ a1 == a2: true
|
||||
a1 == a2: false
|
||||
a1w == a2w: true
|
||||
a1w == a2w: false
|
||||
[[], [YNzbrny], [YNzbrny, GcFOWZn], [YNzbrny, GcFOWZn, TcQrGse], [YNzbrny, GcFOWZn, TcQrGse, GZMmJMR]]
|
||||
[[], [btpenpc], [btpenpc, cuxszgv], [btpenpc, cuxszgv,
|
||||
gmeinne], [btpenpc, cuxszgv, gmeinne, eloztdv]]
|
||||
deepEquals(md1, md2): true
|
||||
md1 == md2: false
|
||||
[[], [YNzbrny], [YNzbrny, GcFOWZn], [YNzbrny, GcFOWZn, TcQrGse], [YNzbrny, #$#$#$#, TcQrGse, GZMmJMR]]
|
||||
[[], [btpenpc], [btpenpc, cuxszgv], [btpenpc, cuxszgv,
|
||||
gmeinne], [btpenpc, #$#$#$#, gmeinne, eloztdv]]
|
||||
deepEquals(md1, md2): false
|
||||
*/
|
||||
|
@ -19,5 +19,6 @@ public class CountUpward {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
|
||||
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
|
||||
17, 18, 19]
|
||||
*/
|
||||
|
@ -42,14 +42,14 @@ public class FillingArrays {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
a1 = [true, true, true, true, true, true]
|
||||
a2 = [11, 11, 11, 11, 11, 11]
|
||||
a3 = [x, x, x, x, x, x]
|
||||
a4 = [17, 17, 17, 17, 17, 17]
|
||||
a5 = [19, 19, 19, 19, 19, 19]
|
||||
a6 = [23, 23, 23, 23, 23, 23]
|
||||
a7 = [29.0, 29.0, 29.0, 29.0, 29.0, 29.0]
|
||||
a8 = [47.0, 47.0, 47.0, 47.0, 47.0, 47.0]
|
||||
a9 = [Hello, Hello, Hello, Hello, Hello, Hello]
|
||||
a9 = [Hello, Hello, Hello, World, World, Hello]
|
||||
a1: [true, true, true, true, true, true]
|
||||
a2: [11, 11, 11, 11, 11, 11]
|
||||
a3: [x, x, x, x, x, x]
|
||||
a4: [17, 17, 17, 17, 17, 17]
|
||||
a5: [19, 19, 19, 19, 19, 19]
|
||||
a6: [23, 23, 23, 23, 23, 23]
|
||||
a7: [29.0, 29.0, 29.0, 29.0, 29.0, 29.0]
|
||||
a8: [47.0, 47.0, 47.0, 47.0, 47.0, 47.0]
|
||||
a9: [Hello, Hello, Hello, Hello, Hello, Hello]
|
||||
a9: [Hello, Hello, Hello, World, World, Hello]
|
||||
*/
|
||||
|
@ -35,11 +35,11 @@ public class IceCream {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
[Rum Raisin, Mint Chip, Mocha Almond Fudge]
|
||||
[Chocolate, Strawberry, Mocha Almond Fudge]
|
||||
[Strawberry, Mint Chip, Mocha Almond Fudge]
|
||||
[Rum Raisin, Vanilla Fudge Swirl, Mud Pie]
|
||||
[Vanilla Fudge Swirl, Chocolate, Mocha Almond Fudge]
|
||||
[Praline Cream, Strawberry, Mocha Almond Fudge]
|
||||
[Mocha Almond Fudge, Strawberry, Mint Chip]
|
||||
[Praline Cream, Mint Chip, Vanilla Fudge Swirl]
|
||||
[Strawberry, Vanilla Fudge Swirl, Mud Pie]
|
||||
[Chocolate, Strawberry, Vanilla Fudge Swirl]
|
||||
[Rum Raisin, Praline Cream, Chocolate]
|
||||
[Mint Chip, Rum Raisin, Mocha Almond Fudge]
|
||||
[Mocha Almond Fudge, Mud Pie, Vanilla Fudge Swirl]
|
||||
[Mocha Almond Fudge, Mud Pie, Mint Chip]
|
||||
*/
|
||||
|
@ -16,6 +16,7 @@ public class ModifyExisting {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
[0.73, 0.53, 0.16, 0.19, 0.52, 0.27, 0.26]
|
||||
[0.0073, 0.0053, 0.0016, 0.0019, 0.0052, 0.0027, 0.0026]
|
||||
[4.83, 2.89, 2.9, 1.97, 3.01, 0.18, 0.99]
|
||||
[0.0483, 0.028900000000000002, 0.028999999999999998,
|
||||
0.0197, 0.0301, 0.0018, 0.009899999999999999]
|
||||
*/
|
||||
|
@ -18,5 +18,5 @@ public class ParallelPrefix {
|
||||
/* Output:
|
||||
First 20: 190
|
||||
First 200: 19900
|
||||
All: 199999990000000
|
||||
All: 49999995000000
|
||||
*/
|
||||
|
@ -20,7 +20,7 @@ public class ParallelSort {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
sort(): 484
|
||||
parallelSort(): 149
|
||||
sort(): 864
|
||||
parallelSort(): 274
|
||||
3
|
||||
*/
|
||||
|
@ -21,7 +21,6 @@ public class RaggedArray {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
[[], [[1], [2], [3, 4, 5, 6]], [[], [7, 8], [9, 10]],
|
||||
[[11, 12, 13], [14], [15, 16, 17, 18]], [[19, 20, 21],
|
||||
[22, 23, 24], [25], []], [[26], [], [27]]]
|
||||
[[[1], []], [[2, 3, 4, 5], [6]], [[7, 8, 9], [10, 11, 12],
|
||||
[]]]
|
||||
*/
|
||||
|
@ -17,16 +17,16 @@ public class Reverse {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
before sorting:
|
||||
[[i = 58, j = 55], [i = 93, j = 61], [i = 61, j = 29]
|
||||
, [i = 68, j = 0], [i = 22, j = 7], [i = 88, j = 28]
|
||||
, [i = 51, j = 89], [i = 9, j = 78], [i = 98, j = 61]
|
||||
, [i = 20, j = 58], [i = 16, j = 40], [i = 11, j = 22]
|
||||
Before sorting: [[i = 35, j = 37], [i = 41, j = 20], [i =
|
||||
77, j = 79]
|
||||
, [i = 56, j = 68], [i = 48, j = 93], [i = 70, j = 7]
|
||||
, [i = 0, j = 25], [i = 62, j = 34], [i = 50, j = 82]
|
||||
, [i = 31, j = 67], [i = 66, j = 54], [i = 21, j = 6]
|
||||
]
|
||||
after sorting:
|
||||
[[i = 98, j = 61], [i = 93, j = 61], [i = 88, j = 28]
|
||||
, [i = 68, j = 0], [i = 61, j = 29], [i = 58, j = 55]
|
||||
, [i = 51, j = 89], [i = 22, j = 7], [i = 20, j = 58]
|
||||
, [i = 16, j = 40], [i = 11, j = 22], [i = 9, j = 78]
|
||||
After sorting: [[i = 77, j = 79], [i = 70, j = 7], [i = 66,
|
||||
j = 54]
|
||||
, [i = 62, j = 34], [i = 56, j = 68], [i = 50, j = 82]
|
||||
, [i = 48, j = 93], [i = 41, j = 20], [i = 35, j = 37]
|
||||
, [i = 31, j = 67], [i = 21, j = 6], [i = 0, j = 25]
|
||||
]
|
||||
*/
|
||||
|
@ -20,16 +20,20 @@ public class StringSorting {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
Before sort: [YNzbr, nyGcF, OWZnT, cQrGs, eGZMm, JMRoE,
|
||||
suEcU, OneOE, dLsmw, HLGEa, hKcxr, EqUCB, bkIna, Mesbt,
|
||||
WHkjU, rUkZP, gwsqP, zDyCy, RFJQA, HxxHv]
|
||||
After sort: [EqUCB, HLGEa, HxxHv, JMRoE, Mesbt, OWZnT,
|
||||
OneOE, RFJQA, WHkjU, YNzbr, bkIna, cQrGs, dLsmw, eGZMm,
|
||||
gwsqP, hKcxr, nyGcF, rUkZP, suEcU, zDyCy]
|
||||
Reverse sort: [zDyCy, suEcU, rUkZP, nyGcF, hKcxr, gwsqP,
|
||||
eGZMm, dLsmw, cQrGs, bkIna, YNzbr, WHkjU, RFJQA, OneOE,
|
||||
OWZnT, Mesbt, JMRoE, HxxHv, HLGEa, EqUCB]
|
||||
Case-insensitive sort: [bkIna, cQrGs, dLsmw, eGZMm, EqUCB,
|
||||
gwsqP, hKcxr, HLGEa, HxxHv, JMRoE, Mesbt, nyGcF, OneOE,
|
||||
OWZnT, RFJQA, rUkZP, suEcU, WHkjU, YNzbr, zDyCy]
|
||||
Before sort: [btpenpc, cuxszgv, gmeinne, eloztdv, ewcippc,
|
||||
ygpoalk, ljlbynx, taprwxz, bhmupju, cjwzmmr, anmkkyh,
|
||||
fcjpthl, skddcat, jbvlgwc, mvducuj, ydpulcq, zehpfmm,
|
||||
zrxmclh, qgekgly, hyoubzl]
|
||||
After sort: [anmkkyh, bhmupju, btpenpc, cjwzmmr, cuxszgv,
|
||||
eloztdv, ewcippc, fcjpthl, gmeinne, hyoubzl, jbvlgwc,
|
||||
ljlbynx, mvducuj, qgekgly, skddcat, taprwxz, ydpulcq,
|
||||
ygpoalk, zehpfmm, zrxmclh]
|
||||
Reverse sort: [zrxmclh, zehpfmm, ygpoalk, ydpulcq, taprwxz,
|
||||
skddcat, qgekgly, mvducuj, ljlbynx, jbvlgwc, hyoubzl,
|
||||
gmeinne, fcjpthl, ewcippc, eloztdv, cuxszgv, cjwzmmr,
|
||||
btpenpc, bhmupju, anmkkyh]
|
||||
Case-insensitive sort: [anmkkyh, bhmupju, btpenpc, cjwzmmr,
|
||||
cuxszgv, eloztdv, ewcippc, fcjpthl, gmeinne, hyoubzl,
|
||||
jbvlgwc, ljlbynx, mvducuj, qgekgly, skddcat, taprwxz,
|
||||
ydpulcq, ygpoalk, zehpfmm, zrxmclh]
|
||||
*/
|
||||
|
@ -177,13 +177,13 @@ Double
|
||||
[4.83, 2.89, 2.9, 1.97, 3.01]
|
||||
[4.83, 2.89, 2.9, 1.97, 3.01, 0.18]
|
||||
[4.83, 2.89, 2.9, 1.97, 3.01, 0.18, 0.99]
|
||||
[4.83, 2.89, 2.9, 1.97, 3.01, 0.18, 0.99]
|
||||
[4.83, 2.89, 2.9, 1.97, 3.01, 0.18]
|
||||
[4.83, 2.89, 2.9, 1.97, 3.01, 0.18, 0.99, 8.28]
|
||||
String
|
||||
[btpenpc, cuxszgv, gmeinne, eloztdv]
|
||||
[btpenpc, cuxszgv, gmeinne, eloztdv, ewcippc]
|
||||
[btpenpc, cuxszgv, gmeinne, eloztdv, ewcippc, ygpoalk]
|
||||
[btpe, npcc, uxsz, gvgm]
|
||||
[btpe, npcc, uxsz, gvgm, einn, eelo]
|
||||
[btpe, npcc, uxsz, gvgm, einn]
|
||||
[btpe, npcc, uxsz, gvgm, einn, eelo]
|
||||
*/
|
||||
|
@ -15,6 +15,5 @@ public class Assert1 {
|
||||
/* Output:
|
||||
___[ Error Output ]___
|
||||
Exception in thread "main" java.lang.AssertionError
|
||||
at Assert1.main(Assert1.java:8)
|
||||
___[ Exception is Expected ]___
|
||||
at Assert1.main(Assert1.java:9)
|
||||
*/
|
||||
|
@ -16,5 +16,4 @@ ___[ Error Output ]___
|
||||
Exception in thread "main" java.lang.AssertionError: Here's
|
||||
a message saying what happened
|
||||
at Assert2.main(Assert2.java:8)
|
||||
___[ Exception is Expected ]___
|
||||
*/
|
||||
|
@ -24,5 +24,4 @@ Exception in thread "main" java.lang.AssertionError:
|
||||
Loaded.go()
|
||||
at Loaded.go(LoaderAssertions.java:15)
|
||||
at LoaderAssertions.main(LoaderAssertions.java:9)
|
||||
___[ Exception is Expected ]___
|
||||
*/
|
||||
|
@ -32,7 +32,6 @@ public class ApplesAndOrangesWithoutGenerics {
|
||||
___[ Error Output ]___
|
||||
Exception in thread "main" java.lang.ClassCastException:
|
||||
Orange cannot be cast to Apple
|
||||
at ApplesAndOrangesWithoutGenerics.main(Unknown
|
||||
Source)
|
||||
___[ Exception is Expected ]___
|
||||
at ApplesAndOrangesWithoutGenerics.main(ApplesAndOr
|
||||
angesWithoutGenerics.java:23)
|
||||
*/
|
||||
|
@ -21,8 +21,8 @@ public class GenericsAndUpcasting {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
GrannySmith@19e0bfd
|
||||
Gala@139a55
|
||||
Fuji@1db9742
|
||||
Braeburn@106d69c
|
||||
GrannySmith@1db9742
|
||||
Gala@106d69c
|
||||
Fuji@52e922
|
||||
Braeburn@25154f
|
||||
*/
|
||||
|
@ -60,18 +60,18 @@ public class Bits {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
byte value: -107
|
||||
bits: {0, 2, 4, 7}
|
||||
bit pattern: 1010100100000000000000000000000000000000000000
|
||||
byte value: 118
|
||||
bits: {1, 2, 4, 5, 6}
|
||||
bit pattern: 0110111000000000000000000000000000000000000000
|
||||
000000000000000000
|
||||
short value: 1302
|
||||
bits: {1, 2, 4, 8, 10}
|
||||
bit pattern: 0110100010100000000000000000000000000000000000
|
||||
short value: 9795
|
||||
bits: {0, 1, 6, 9, 10, 13}
|
||||
bit pattern: 1100001001100100000000000000000000000000000000
|
||||
000000000000000000
|
||||
int value: -2014573909
|
||||
bits: {0, 1, 3, 5, 7, 9, 11, 18, 19, 21, 22, 23, 24, 25,
|
||||
26, 31}
|
||||
bit pattern: 1101010101010000001101111110000100000000000000
|
||||
int value: -645079414
|
||||
bits: {1, 3, 7, 9, 10, 11, 12, 14, 15, 18, 19, 23, 24, 27,
|
||||
28, 30, 31}
|
||||
bit pattern: 0101000101111011001100011001101100000000000000
|
||||
000000000000000000
|
||||
set bit 127: {127}
|
||||
set bit 255: {255}
|
||||
|
@ -24,8 +24,9 @@ public class FillingLists {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
[StringAddress@19e0bfd Hello, StringAddress@19e0bfd Hello,
|
||||
StringAddress@19e0bfd Hello, StringAddress@19e0bfd Hello]
|
||||
[StringAddress@139a55 World!, StringAddress@139a55 World!,
|
||||
StringAddress@139a55 World!, StringAddress@139a55 World!]
|
||||
[StringAddress@1db9742 Hello, StringAddress@1db9742 Hello,
|
||||
StringAddress@1db9742 Hello, StringAddress@1db9742 Hello]
|
||||
[StringAddress@106d69c World!, StringAddress@106d69c
|
||||
World!, StringAddress@106d69c World!, StringAddress@106d69c
|
||||
World!]
|
||||
*/
|
||||
|
@ -195,17 +195,17 @@ public class ListPerformance {
|
||||
/* Output:
|
||||
--- Array as List ---
|
||||
size get set
|
||||
100 19 20
|
||||
100 44 44
|
||||
--------------------- ArrayList ---------------------
|
||||
size add get set iteradd insert remove
|
||||
100 31 19 21 33 158 114
|
||||
100 80 44 48 106 0 640
|
||||
--------------------- LinkedList ---------------------
|
||||
size add get set iteradd insert remove
|
||||
100 30 44 45 77 143 56
|
||||
100 80 106 94 177 0 120
|
||||
----------------------- Vector -----------------------
|
||||
size add get set iteradd insert remove
|
||||
100 26 32 33 64 147 67
|
||||
100 40 62 58 114 0 120
|
||||
-------------------- Queue tests --------------------
|
||||
size addFirst addLast rmFirst rmLast
|
||||
100 33 71 102 135
|
||||
100 60 120 120 100
|
||||
*/
|
||||
|
@ -136,7 +136,7 @@ BURUNDI, CAMEROON, CAPE VERDE, CENTRAL AFRICAN REPUBLIC,
|
||||
CHAD, COMOROS, CONGO, DJIBOUTI, EGYPT, EQUATORIAL GUINEA,
|
||||
ERITREA, ETHIOPIA, GABON, THE GAMBIA, GHANA, GUINEA,
|
||||
BISSAU, COTE D'IVOIR (IVORY COAST), KENYA, LESOTHO]
|
||||
________...________...________...________...________
|
||||
...________...________...________...________...
|
||||
LESOTHO
|
||||
[ALGERIA, ANGOLA, BENIN, BOTSWANA, BURKINA FASO, BURUNDI,
|
||||
CAMEROON, CAPE VERDE, CENTRAL AFRICAN REPUBLIC, CHAD,
|
||||
|
@ -63,20 +63,20 @@ public class MapPerformance {
|
||||
/* Output:
|
||||
---------- TreeMap ----------
|
||||
size put get iterate
|
||||
100 86 47 9
|
||||
100 228 128 25
|
||||
---------- HashMap ----------
|
||||
size put get iterate
|
||||
100 25 10 12
|
||||
100 68 26 35
|
||||
------- LinkedHashMap -------
|
||||
size put get iterate
|
||||
100 27 8 6
|
||||
100 70 35 18
|
||||
------ IdentityHashMap ------
|
||||
size put get iterate
|
||||
100 51 47 13
|
||||
100 128 126 38
|
||||
-------- WeakHashMap --------
|
||||
size put get iterate
|
||||
100 28 11 12
|
||||
100 62 31 25
|
||||
--------- Hashtable ---------
|
||||
size put get iterate
|
||||
100 31 21 13
|
||||
100 56 30 20
|
||||
*/
|
||||
|
@ -64,8 +64,6 @@ public class References {
|
||||
}
|
||||
}
|
||||
/* Output: (First and Last 10 Lines)
|
||||
Just created: java.lang.ref.SoftReference@19e0bfd
|
||||
Just created: java.lang.ref.SoftReference@139a55
|
||||
Just created: java.lang.ref.SoftReference@1db9742
|
||||
Just created: java.lang.ref.SoftReference@106d69c
|
||||
Just created: java.lang.ref.SoftReference@52e922
|
||||
@ -74,15 +72,17 @@ Just created: java.lang.ref.SoftReference@10dea4e
|
||||
Just created: java.lang.ref.SoftReference@647e05
|
||||
Just created: java.lang.ref.SoftReference@1909752
|
||||
Just created: java.lang.ref.SoftReference@1f96302
|
||||
________...________...________...________...________
|
||||
Just created: java.lang.ref.PhantomReference@16f6e28
|
||||
In queue: null
|
||||
Just created: java.lang.ref.PhantomReference@15fbaa4
|
||||
In queue: null
|
||||
Just created: java.lang.ref.SoftReference@14eac69
|
||||
Just created: java.lang.ref.SoftReference@a57993
|
||||
...________...________...________...________...
|
||||
Just created: java.lang.ref.PhantomReference@1ee12a7
|
||||
In queue: null
|
||||
Just created: java.lang.ref.PhantomReference@10bedb4
|
||||
In queue: null
|
||||
Just created: java.lang.ref.PhantomReference@103dbd3
|
||||
In queue: null
|
||||
Just created: java.lang.ref.PhantomReference@167cf4d
|
||||
In queue: null
|
||||
Just created: java.lang.ref.PhantomReference@a987ac
|
||||
In queue: null
|
||||
*/
|
||||
|
@ -60,11 +60,11 @@ public class SetPerformance {
|
||||
/* Output:
|
||||
------------- TreeSet -------------
|
||||
size add contains iterate
|
||||
100 85 51 9
|
||||
100 200 132 24
|
||||
------------- HashSet -------------
|
||||
size add contains iterate
|
||||
100 27 12 12
|
||||
100 76 32 34
|
||||
---------- LinkedHashSet ----------
|
||||
size add contains iterate
|
||||
100 28 10 7
|
||||
100 70 25 19
|
||||
*/
|
||||
|
@ -28,12 +28,12 @@ public class SpringDetector {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
map = {Groundhog #2=Early Spring!, Groundhog #3=Early
|
||||
Spring!, Groundhog #1=Six more weeks of Winter!, Groundhog
|
||||
#8=Six more weeks of Winter!, Groundhog #9=Six more weeks
|
||||
of Winter!, Groundhog #6=Early Spring!, Groundhog #5=Early
|
||||
Spring!, Groundhog #0=Six more weeks of Winter!, Groundhog
|
||||
#7=Early Spring!, Groundhog #4=Six more weeks of Winter!}
|
||||
map = {Groundhog #2=Early Spring!, Groundhog #5=Early
|
||||
Spring!, Groundhog #6=Early Spring!, Groundhog #4=Early
|
||||
Spring!, Groundhog #9=Six more weeks of Winter!, Groundhog
|
||||
#8=Six more weeks of Winter!, Groundhog #0=Early Spring!,
|
||||
Groundhog #1=Early Spring!, Groundhog #3=Early Spring!,
|
||||
Groundhog #7=Six more weeks of Winter!}
|
||||
Looking up prediction for Groundhog #3
|
||||
Key not found: Groundhog #3
|
||||
*/
|
||||
|
@ -11,12 +11,12 @@ public class SpringDetector2 {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
map = {Groundhog #0=Six more weeks of Winter!, Groundhog
|
||||
#1=Six more weeks of Winter!, Groundhog #2=Early Spring!,
|
||||
Groundhog #3=Early Spring!, Groundhog #4=Six more weeks of
|
||||
Winter!, Groundhog #5=Early Spring!, Groundhog #6=Early
|
||||
Spring!, Groundhog #7=Early Spring!, Groundhog #8=Six more
|
||||
weeks of Winter!, Groundhog #9=Six more weeks of Winter!}
|
||||
map = {Groundhog #0=Early Spring!, Groundhog #1=Early
|
||||
Spring!, Groundhog #2=Early Spring!, Groundhog #3=Early
|
||||
Spring!, Groundhog #4=Early Spring!, Groundhog #5=Early
|
||||
Spring!, Groundhog #6=Early Spring!, Groundhog #7=Six more
|
||||
weeks of Winter!, Groundhog #8=Six more weeks of Winter!,
|
||||
Groundhog #9=Six more weeks of Winter!}
|
||||
Looking up prediction for Groundhog #3
|
||||
Early Spring!
|
||||
*/
|
||||
|
@ -51,8 +51,8 @@ is, no, basis, for, a, system, of, government]
|
||||
is, no, basis, for, a, system, of, government]
|
||||
[strange, women, lying, in, ponds, distributing, swords,
|
||||
is, no, basis, for, a, system, of, government]
|
||||
[ponds, no, a, in, swords, for, is, basis, strange,
|
||||
system, government, distributing, of, women, lying]
|
||||
[ponds, no, a, in, swords, for, is, basis, strange, system,
|
||||
government, distributing, of, women, lying]
|
||||
[strange, women, lying, in, ponds, distributing, swords,
|
||||
is, no, basis, for, a, system, of, government]
|
||||
[strange, women, lying, in, ponds, distributing, swords,
|
||||
|
@ -71,10 +71,10 @@ public class TypesForSets {
|
||||
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||
[9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
|
||||
[6, 9, 2, 0, 8, 5, 4, 8, 0, 2, 7, 8, 9, 1, 4, 5, 0, 4, 3,
|
||||
1, 6, 3, 2, 7, 7, 6, 5, 3, 9, 1]
|
||||
[7, 2, 8, 9, 1, 7, 4, 1, 2, 3, 0, 9, 1, 8, 3, 0, 8, 5, 6,
|
||||
6, 3, 0, 2, 7, 5, 4, 6, 4, 5, 9]
|
||||
[8, 6, 3, 5, 4, 2, 2, 1, 0, 3, 6, 7, 9, 1, 3, 1, 5, 0, 9,
|
||||
8, 0, 9, 8, 7, 4, 6, 2, 4, 7, 5]
|
||||
[2, 2, 1, 4, 6, 6, 8, 4, 9, 3, 0, 4, 8, 5, 8, 1, 7, 5, 5,
|
||||
3, 1, 9, 6, 0, 7, 0, 9, 7, 2, 3]
|
||||
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8,
|
||||
9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8,
|
||||
|
@ -7,7 +7,7 @@
|
||||
public class WhileTest {
|
||||
static boolean condition() {
|
||||
boolean result = Math.random() < 0.99;
|
||||
System.out.println(result + ", ");
|
||||
System.out.print(result + ", ");
|
||||
return result;
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
@ -22,7 +22,7 @@ true, Inside 'while'
|
||||
true, Inside 'while'
|
||||
true, Inside 'while'
|
||||
true, Inside 'while'
|
||||
________...________...________...________...________
|
||||
...________...________...________...________...
|
||||
true, Inside 'while'
|
||||
true, Inside 'while'
|
||||
true, Inside 'while'
|
||||
|
@ -33,5 +33,4 @@ by zero
|
||||
at SimpleDebugging.foo2(SimpleDebugging.java:10)
|
||||
at SimpleDebugging.foo1(SimpleDebugging.java:6)
|
||||
at SimpleDebugging.main(SimpleDebugging.java:19)
|
||||
___[ Exception is Expected ]___
|
||||
*/
|
||||
|
@ -32,14 +32,8 @@ public enum ConstantSpecificMethod {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
Dec 13, 2015
|
||||
.;..;C:\Program Files (x86)\Java\xom-1.2.10.jar;C:\Program
|
||||
Files (x86)\Java\jdk1.8.0_45\lib\tools.jar;C:\Program Files
|
||||
(x86)\Java\jre1.8.0_45\lib\javaws.jar;C:\Program Files
|
||||
(x86)\Java\swt-4.4.2-win32-win32-x86\swt.jar;C:\Program
|
||||
Files (x86)\Java\javassist.jar;C:\Users\Bruce\Documents\Git
|
||||
Hub\OnJava\ExtractedExamples;C:\Program Files
|
||||
(x86)\Java\junit-4.12.jar;C:\Program Files
|
||||
(x86)\Java\hamcrest-core-1.3.jar;
|
||||
1.8.0_66
|
||||
Jul 22, 2016
|
||||
C:\Users\Bruce\Documents\GitHub\on-
|
||||
java\ExtractedExamples\\gradle\wrapper\gradle-wrapper.jar
|
||||
1.8.0_77
|
||||
*/
|
||||
|
@ -137,54 +137,54 @@ public class PostOffice {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
Mail 0, General Delivery: NO2, Address Scanability:
|
||||
UNSCANNABLE, Address Readability: YES3, Address Address:
|
||||
OK1, Return address: OK1
|
||||
Delivering Mail 0 normally
|
||||
Mail 0, General Delivery: NO3, Address Scanability: YES2,
|
||||
Address Readability: YES1, Address Address: OK4, Return
|
||||
address: OK5
|
||||
Delivering Mail 0 automatically
|
||||
*****
|
||||
Mail 1, General Delivery: NO5, Address Scanability: YES3,
|
||||
Address Readability: ILLEGIBLE, Address Address: OK5,
|
||||
Return address: OK1
|
||||
Mail 1, General Delivery: NO1, Address Scanability: YES1,
|
||||
Address Readability: YES3, Address Address: OK6, Return
|
||||
address: OK1
|
||||
Delivering Mail 1 automatically
|
||||
*****
|
||||
Mail 2, General Delivery: YES, Address Scanability: YES3,
|
||||
Address Readability: YES1, Address Address: OK1, Return
|
||||
Mail 2, General Delivery: NO4, Address Scanability: YES2,
|
||||
Address Readability: ILLEGIBLE, Address Address: OK5,
|
||||
Return address: MISSING
|
||||
Delivering Mail 2 automatically
|
||||
*****
|
||||
Mail 3, General Delivery: YES, Address Scanability:
|
||||
UNSCANNABLE, Address Readability: YES2, Address Address:
|
||||
OK6, Return address: OK1
|
||||
Using general delivery for Mail 3
|
||||
*****
|
||||
Mail 4, General Delivery: YES, Address Scanability: YES4,
|
||||
Address Readability: YES1, Address Address: OK6, Return
|
||||
address: OK5
|
||||
Using general delivery for Mail 2
|
||||
Using general delivery for Mail 4
|
||||
*****
|
||||
Mail 3, General Delivery: NO4, Address Scanability: YES3,
|
||||
Address Readability: YES1, Address Address: INCORRECT,
|
||||
Return address: OK4
|
||||
Returning Mail 3 to sender
|
||||
*****
|
||||
Mail 4, General Delivery: NO4, Address Scanability:
|
||||
UNSCANNABLE, Address Readability: YES1, Address Address:
|
||||
INCORRECT, Return address: OK2
|
||||
Returning Mail 4 to sender
|
||||
*****
|
||||
Mail 5, General Delivery: NO3, Address Scanability: YES1,
|
||||
Address Readability: ILLEGIBLE, Address Address: OK4,
|
||||
Return address: OK2
|
||||
Mail 5, General Delivery: NO5, Address Scanability: YES3,
|
||||
Address Readability: YES3, Address Address: OK1, Return
|
||||
address: OK4
|
||||
Delivering Mail 5 automatically
|
||||
*****
|
||||
Mail 6, General Delivery: YES, Address Scanability: YES4,
|
||||
Address Readability: ILLEGIBLE, Address Address: OK4,
|
||||
Return address: OK4
|
||||
Mail 6, General Delivery: YES, Address Scanability:
|
||||
UNSCANNABLE, Address Readability: YES1, Address Address:
|
||||
OK3, Return address: MISSING
|
||||
Using general delivery for Mail 6
|
||||
*****
|
||||
Mail 7, General Delivery: YES, Address Scanability: YES3,
|
||||
Address Readability: YES4, Address Address: OK2, Return
|
||||
Mail 7, General Delivery: NO4, Address Scanability: YES1,
|
||||
Address Readability: YES2, Address Address: OK2, Return
|
||||
address: MISSING
|
||||
Using general delivery for Mail 7
|
||||
Delivering Mail 7 automatically
|
||||
*****
|
||||
Mail 8, General Delivery: NO3, Address Scanability: YES1,
|
||||
Address Readability: YES3, Address Address: INCORRECT,
|
||||
Return address: MISSING
|
||||
Mail 8 is a dead letter
|
||||
Mail 8, General Delivery: NO1, Address Scanability: YES2,
|
||||
Address Readability: YES3, Address Address: OK3, Return
|
||||
address: OK3
|
||||
Delivering Mail 8 automatically
|
||||
*****
|
||||
Mail 9, General Delivery: NO1, Address Scanability:
|
||||
UNSCANNABLE, Address Readability: YES2, Address Address:
|
||||
OK1, Return address: OK4
|
||||
Delivering Mail 9 normally
|
||||
Mail 9, General Delivery: NO5, Address Scanability: YES1,
|
||||
Address Readability: YES3, Address Address: OK2, Return
|
||||
address: OK3
|
||||
Delivering Mail 9 automatically
|
||||
*****
|
||||
*/
|
||||
|
@ -15,7 +15,7 @@ public class RandomTest {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
STANDING FLYING RUNNING STANDING RUNNING STANDING LYING
|
||||
DODGING SITTING RUNNING HOPPING HOPPING HOPPING RUNNING
|
||||
STANDING LYING FALLING RUNNING FLYING LYING
|
||||
JUMPING DODGING SITTING RUNNING FLYING RUNNING DODGING
|
||||
STANDING DODGING FALLING FALLING SITTING DODGING LYING
|
||||
JUMPING JUMPING HOPPING DODGING SITTING FALLING
|
||||
*/
|
||||
|
@ -81,24 +81,24 @@ public class RoShamBo1 {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
Scissors vs. Rock: LOSE
|
||||
Scissors vs. Paper: WIN
|
||||
Rock vs. Paper: LOSE
|
||||
Rock vs. Rock: DRAW
|
||||
Paper vs. Rock: WIN
|
||||
Paper vs. Rock: WIN
|
||||
Paper vs. Rock: WIN
|
||||
Scissors vs. Paper: WIN
|
||||
Rock vs. Paper: LOSE
|
||||
Paper vs. Scissors: LOSE
|
||||
Rock vs. Paper: LOSE
|
||||
Scissors vs. Scissors: DRAW
|
||||
Scissors vs. Rock: LOSE
|
||||
Scissors vs. Paper: WIN
|
||||
Rock vs. Paper: LOSE
|
||||
Scissors vs. Rock: LOSE
|
||||
Paper vs. Scissors: LOSE
|
||||
Rock vs. Rock: DRAW
|
||||
Scissors vs. Scissors: DRAW
|
||||
Paper vs. Paper: DRAW
|
||||
Rock vs. Paper: LOSE
|
||||
Paper vs. Scissors: LOSE
|
||||
Paper vs. Scissors: LOSE
|
||||
Rock vs. Scissors: WIN
|
||||
Rock vs. Paper: LOSE
|
||||
Paper vs. Rock: WIN
|
||||
Scissors vs. Paper: WIN
|
||||
Paper vs. Scissors: LOSE
|
||||
Paper vs. Scissors: LOSE
|
||||
Paper vs. Scissors: LOSE
|
||||
Paper vs. Scissors: LOSE
|
||||
Scissors vs. Rock: LOSE
|
||||
Scissors vs. Paper: WIN
|
||||
Rock vs. Paper: LOSE
|
||||
Rock vs. Scissors: WIN
|
||||
*/
|
||||
|
@ -31,24 +31,24 @@ public enum RoShamBo2 implements Competitor<RoShamBo2> {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
PAPER vs. ROCK: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
ROCK vs. ROCK: DRAW
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. SCISSORS: WIN
|
||||
PAPER vs. PAPER: DRAW
|
||||
PAPER vs. ROCK: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
PAPER vs. ROCK: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. ROCK: DRAW
|
||||
PAPER vs. PAPER: DRAW
|
||||
SCISSORS vs. SCISSORS: DRAW
|
||||
ROCK vs. SCISSORS: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. PAPER: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
PAPER vs. ROCK: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
ROCK vs. PAPER: LOSE
|
||||
*/
|
||||
|
@ -48,24 +48,24 @@ public enum RoShamBo3 implements Competitor<RoShamBo3> {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
PAPER vs. ROCK: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
ROCK vs. ROCK: DRAW
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. SCISSORS: WIN
|
||||
PAPER vs. PAPER: DRAW
|
||||
PAPER vs. ROCK: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
PAPER vs. ROCK: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. ROCK: DRAW
|
||||
PAPER vs. PAPER: DRAW
|
||||
SCISSORS vs. SCISSORS: DRAW
|
||||
ROCK vs. SCISSORS: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. PAPER: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
PAPER vs. ROCK: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
ROCK vs. PAPER: LOSE
|
||||
*/
|
||||
|
@ -34,24 +34,24 @@ public enum RoShamBo4 implements Competitor<RoShamBo4> {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
ROCK vs. PAPER: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
PAPER vs. PAPER: DRAW
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. SCISSORS: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. ROCK: DRAW
|
||||
ROCK vs. PAPER: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. PAPER: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
PAPER vs. PAPER: DRAW
|
||||
ROCK vs. ROCK: DRAW
|
||||
SCISSORS vs. SCISSORS: DRAW
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
PAPER vs. ROCK: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. SCISSORS: WIN
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
ROCK vs. PAPER: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
PAPER vs. ROCK: WIN
|
||||
*/
|
||||
|
@ -36,24 +36,24 @@ enum RoShamBo5 implements Competitor<RoShamBo5> {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
PAPER vs. ROCK: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
ROCK vs. ROCK: DRAW
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. SCISSORS: WIN
|
||||
PAPER vs. PAPER: DRAW
|
||||
PAPER vs. ROCK: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
PAPER vs. ROCK: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. ROCK: DRAW
|
||||
PAPER vs. PAPER: DRAW
|
||||
SCISSORS vs. SCISSORS: DRAW
|
||||
ROCK vs. SCISSORS: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. PAPER: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
PAPER vs. ROCK: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
ROCK vs. PAPER: LOSE
|
||||
*/
|
||||
|
@ -23,24 +23,24 @@ enum RoShamBo6 implements Competitor<RoShamBo6> {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
PAPER vs. ROCK: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
ROCK vs. ROCK: DRAW
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. SCISSORS: WIN
|
||||
PAPER vs. PAPER: DRAW
|
||||
PAPER vs. ROCK: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
PAPER vs. ROCK: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. ROCK: DRAW
|
||||
PAPER vs. PAPER: DRAW
|
||||
SCISSORS vs. SCISSORS: DRAW
|
||||
ROCK vs. SCISSORS: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
ROCK vs. PAPER: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
SCISSORS vs. ROCK: LOSE
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
SCISSORS vs. PAPER: WIN
|
||||
PAPER vs. ROCK: WIN
|
||||
PAPER vs. SCISSORS: LOSE
|
||||
ROCK vs. SCISSORS: WIN
|
||||
ROCK vs. PAPER: LOSE
|
||||
*/
|
||||
|
@ -28,14 +28,14 @@ enum SecurityCategory {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
STOCK: MARGIN
|
||||
STOCK: LONG
|
||||
STOCK: LONG
|
||||
STOCK: MARGIN
|
||||
BOND: MUNICIPAL
|
||||
BOND: MUNICIPAL
|
||||
STOCK: MARGIN
|
||||
STOCK: MARGIN
|
||||
STOCK: LONG
|
||||
BOND: JUNK
|
||||
STOCK: SHORT
|
||||
STOCK: LONG
|
||||
STOCK: LONG
|
||||
BOND: MUNICIPAL
|
||||
STOCK: MARGIN
|
||||
BOND: JUNK
|
||||
*/
|
||||
|
@ -30,6 +30,6 @@ public class EnumImplementation {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
BOB, PUNCHY, BOB, SPANKY, NUTTY, PUNCHY, SLAPPY, NUTTY,
|
||||
NUTTY, SLAPPY,
|
||||
SILLY, SPANKY, PUNCHY, BOUNCY, BOB, SLAPPY, SLAPPY, BOB,
|
||||
BOB, SLAPPY,
|
||||
*/
|
||||
|
@ -17,29 +17,29 @@ public class Meal {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
SALAD
|
||||
VINDALOO
|
||||
GELATO
|
||||
CAPPUCCINO
|
||||
---
|
||||
SPRING_ROLLS
|
||||
VINDALOO
|
||||
FRUIT
|
||||
DECAF_COFFEE
|
||||
---
|
||||
SOUP
|
||||
VINDALOO
|
||||
FRUIT
|
||||
TEA
|
||||
---
|
||||
SALAD
|
||||
BURRITO
|
||||
FRUIT
|
||||
TEA
|
||||
GELATO
|
||||
HERB_TEA
|
||||
---
|
||||
SALAD
|
||||
BURRITO
|
||||
CREME_CARAMEL
|
||||
LATTE
|
||||
---
|
||||
SOUP
|
||||
SPRING_ROLLS
|
||||
BURRITO
|
||||
TIRAMISU
|
||||
ESPRESSO
|
||||
CAPPUCCINO
|
||||
---
|
||||
SPRING_ROLLS
|
||||
BURRITO
|
||||
BLACK_FOREST_CAKE
|
||||
LATTE
|
||||
---
|
||||
SALAD
|
||||
PAD_THAI
|
||||
GELATO
|
||||
TEA
|
||||
---
|
||||
*/
|
||||
|
@ -46,29 +46,29 @@ public enum Meal2 {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
SALAD
|
||||
VINDALOO
|
||||
GELATO
|
||||
CAPPUCCINO
|
||||
---
|
||||
SPRING_ROLLS
|
||||
VINDALOO
|
||||
FRUIT
|
||||
DECAF_COFFEE
|
||||
---
|
||||
SOUP
|
||||
VINDALOO
|
||||
FRUIT
|
||||
TEA
|
||||
---
|
||||
SALAD
|
||||
BURRITO
|
||||
FRUIT
|
||||
TEA
|
||||
GELATO
|
||||
HERB_TEA
|
||||
---
|
||||
SALAD
|
||||
BURRITO
|
||||
CREME_CARAMEL
|
||||
LATTE
|
||||
---
|
||||
SOUP
|
||||
SPRING_ROLLS
|
||||
BURRITO
|
||||
TIRAMISU
|
||||
ESPRESSO
|
||||
CAPPUCCINO
|
||||
---
|
||||
SPRING_ROLLS
|
||||
BURRITO
|
||||
BLACK_FOREST_CAKE
|
||||
LATTE
|
||||
---
|
||||
SALAD
|
||||
PAD_THAI
|
||||
GELATO
|
||||
TEA
|
||||
---
|
||||
*/
|
||||
|
@ -55,15 +55,15 @@ public class ExtraFeatures {
|
||||
/* Output:
|
||||
Throwing MyException2 from f()
|
||||
MyException2: Detail Message: 0 null
|
||||
at ExtraFeatures.f(ExtraFeatures.java:22)
|
||||
at ExtraFeatures.main(ExtraFeatures.java:34)
|
||||
at ExtraFeatures.f(ExtraFeatures.java:23)
|
||||
at ExtraFeatures.main(ExtraFeatures.java:35)
|
||||
Throwing MyException2 from g()
|
||||
MyException2: Detail Message: 0 Originated in g()
|
||||
at ExtraFeatures.g(ExtraFeatures.java:26)
|
||||
at ExtraFeatures.main(ExtraFeatures.java:39)
|
||||
at ExtraFeatures.g(ExtraFeatures.java:27)
|
||||
at ExtraFeatures.main(ExtraFeatures.java:40)
|
||||
Throwing MyException2 from h()
|
||||
MyException2: Detail Message: 47 Originated in h()
|
||||
at ExtraFeatures.h(ExtraFeatures.java:30)
|
||||
at ExtraFeatures.main(ExtraFeatures.java:44)
|
||||
at ExtraFeatures.h(ExtraFeatures.java:31)
|
||||
at ExtraFeatures.main(ExtraFeatures.java:45)
|
||||
e.val() = 47
|
||||
*/
|
||||
|
@ -33,17 +33,16 @@ public class LoggingExceptions {
|
||||
}
|
||||
/* Output:
|
||||
___[ Error Output ]___
|
||||
Dec 15, 2015 10:34:24 PM LoggingException <init>
|
||||
Jul 22, 2016 11:55:45 AM LoggingException <init>
|
||||
SEVERE: LoggingException
|
||||
at
|
||||
LoggingExceptions.main(LoggingExceptions.java:20)
|
||||
|
||||
Caught LoggingException
|
||||
Dec 15, 2015 10:34:24 PM LoggingException <init>
|
||||
Jul 22, 2016 11:55:45 AM LoggingException <init>
|
||||
SEVERE: LoggingException
|
||||
at
|
||||
LoggingExceptions.main(LoggingExceptions.java:25)
|
||||
|
||||
Caught LoggingException
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -25,9 +25,8 @@ public class LoggingExceptions2 {
|
||||
}
|
||||
/* Output:
|
||||
___[ Error Output ]___
|
||||
Dec 15, 2015 10:34:25 PM LoggingExceptions2 logException
|
||||
Jul 22, 2016 11:55:47 AM LoggingExceptions2 logException
|
||||
SEVERE: java.lang.NullPointerException
|
||||
at
|
||||
LoggingExceptions2.main(LoggingExceptions2.java:17)
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -23,5 +23,4 @@ f()
|
||||
at NeverCaught.f(NeverCaught.java:7)
|
||||
at NeverCaught.g(NeverCaught.java:10)
|
||||
at NeverCaught.main(NeverCaught.java:13)
|
||||
___[ Exception is Expected ]___
|
||||
*/
|
||||
|
@ -53,35 +53,35 @@ public class AddAndSubtractPaths {
|
||||
}
|
||||
/* Output:
|
||||
Windows 10
|
||||
C:\Users\Bruce\Documents\Git
|
||||
C:\Users\Bruce\Documents\GitHub
|
||||
(1)r on-
|
||||
java\ExtractedExamples\files\AddAndSubtractPaths.java
|
||||
RealPath: C:\Users\Bruce\Documents\Git\on-
|
||||
RealPath: C:\Users\Bruce\Documents\GitHub\on-
|
||||
java\ExtractedExamples\files\AddAndSubtractPaths.java
|
||||
(2)r on-java\ExtractedExamples\strings\..\files
|
||||
RealPath: C:\Users\Bruce\Documents\Git\on-
|
||||
RealPath: C:\Users\Bruce\Documents\GitHub\on-
|
||||
java\ExtractedExamples\files
|
||||
(3)r on-java\ExtractedExamples\files
|
||||
RealPath: C:\Users\Bruce\Documents\Git\on-
|
||||
RealPath: C:\Users\Bruce\Documents\GitHub\on-
|
||||
java\ExtractedExamples\files
|
||||
(4) ..\..
|
||||
RealPath: C:\Users\Bruce\Documents\Git\on-java
|
||||
RealPath: C:\Users\Bruce\Documents\GitHub\on-java
|
||||
(5) ..\..
|
||||
RealPath: C:\Users\Bruce\Documents\Git\on-java
|
||||
RealPath: C:\Users\Bruce\Documents\GitHub\on-java
|
||||
(6)r on-java
|
||||
RealPath: C:\Users\Bruce\Documents\Git\on-java
|
||||
RealPath: C:\Users\Bruce\Documents\GitHub\on-java
|
||||
(7)r on-java\ExtractedExamples\files\.\..\..
|
||||
RealPath: C:\Users\Bruce\Documents\Git\on-java
|
||||
RealPath: C:\Users\Bruce\Documents\GitHub\on-java
|
||||
(8)r on-java
|
||||
RealPath: C:\Users\Bruce\Documents\Git\on-java
|
||||
RealPath: C:\Users\Bruce\Documents\GitHub\on-java
|
||||
(9)r on-java\ExtractedExamples\files
|
||||
RealPath: C:\Users\Bruce\Documents\Git\on-
|
||||
RealPath: C:\Users\Bruce\Documents\GitHub\on-
|
||||
java\ExtractedExamples\files
|
||||
(10)r on-java\ExtractedExamples\strings
|
||||
RealPath: C:\Users\Bruce\Documents\Git\on-
|
||||
RealPath: C:\Users\Bruce\Documents\GitHub\on-
|
||||
java\ExtractedExamples\strings
|
||||
(11) nonexistent
|
||||
java.nio.file.NoSuchFileException:
|
||||
C:\Users\Bruce\Documents\Git\on-
|
||||
C:\Users\Bruce\Documents\GitHub\on-
|
||||
java\ExtractedExamples\files\nonexistent
|
||||
*/
|
||||
|
@ -59,7 +59,7 @@ Nope, that doesn't work.
|
||||
test\bag
|
||||
test\bar
|
||||
test\baz
|
||||
test\DIR_8446534140186618410
|
||||
test\DIR_8460303386746117268
|
||||
test\foo
|
||||
test\Hello.txt
|
||||
*********
|
||||
@ -68,27 +68,27 @@ test\bag
|
||||
test\bag\foo
|
||||
test\bag\foo\bar
|
||||
test\bag\foo\bar\baz
|
||||
test\bag\foo\bar\baz\7681439653764312519.tmp
|
||||
test\bag\foo\bar\baz\4101434906493986662.tmp
|
||||
test\bag\foo\bar\baz\File.txt
|
||||
test\bar
|
||||
test\bar\baz
|
||||
test\bar\baz\bag
|
||||
test\bar\baz\bag\foo
|
||||
test\bar\baz\bag\foo\231438590599434409.tmp
|
||||
test\bar\baz\bag\foo\7816199470809856557.tmp
|
||||
test\bar\baz\bag\foo\File.txt
|
||||
test\baz
|
||||
test\baz\bag
|
||||
test\baz\bag\foo
|
||||
test\baz\bag\foo\bar
|
||||
test\baz\bag\foo\bar\2568963174268478267.tmp
|
||||
test\baz\bag\foo\bar\5361615738906181780.tmp
|
||||
test\baz\bag\foo\bar\File.txt
|
||||
test\DIR_8446534140186618410
|
||||
test\DIR_8446534140186618410\pre4960544428685536384.non
|
||||
test\DIR_8460303386746117268
|
||||
test\DIR_8460303386746117268\pre8013004952693214586.non
|
||||
test\foo
|
||||
test\foo\bar
|
||||
test\foo\bar\baz
|
||||
test\foo\bar\baz\bag
|
||||
test\foo\bar\baz\bag\8569628193069437000.tmp
|
||||
test\foo\bar\baz\bag\7164453512868942303.tmp
|
||||
test\foo\bar\baz\bag\File.txt
|
||||
test\Hello.txt
|
||||
*/
|
||||
|
@ -27,15 +27,15 @@ public class File_System {
|
||||
}
|
||||
/* Output:
|
||||
Windows 10
|
||||
File Store: (C:)
|
||||
File Store: SSD (C:)
|
||||
Root Directory: C:\
|
||||
Root Directory: D:\
|
||||
Separator: \
|
||||
UserPrincipalLookupService:
|
||||
sun.nio.fs.WindowsFileSystem$LookupService$1@106d69c
|
||||
sun.nio.fs.WindowsFileSystem$LookupService$1@1db9742
|
||||
isOpen: true
|
||||
isReadOnly: false
|
||||
FileSystemProvider:
|
||||
sun.nio.fs.WindowsFileSystemProvider@52e922
|
||||
sun.nio.fs.WindowsFileSystemProvider@106d69c
|
||||
File Attribute Views: [owner, dos, acl, basic, user]
|
||||
*/
|
||||
|
@ -36,24 +36,24 @@ public class Find {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
test\bag\foo\bar\baz\7875645296823748474.tmp
|
||||
test\bag\foo\bar\baz\6081303161062291208.tmp
|
||||
test\bag\foo\bar\baz\File.txt
|
||||
test\bar\baz\bag\foo\8495339501512512468.tmp
|
||||
test\bar\baz\bag\foo\771297659941286896.tmp
|
||||
test\bar\baz\bag\foo\File.txt
|
||||
test\baz\bag\foo\bar\4657930969137717517.tmp
|
||||
test\baz\bag\foo\bar\1769334171376700049.tmp
|
||||
test\baz\bag\foo\bar\File.txt
|
||||
test\dir.tmp
|
||||
test\foo\bar\baz\bag\5205870604020775563.tmp
|
||||
test\foo\bar\baz\bag\4483950466184961816.tmp
|
||||
test\foo\bar\baz\bag\File.txt
|
||||
***************
|
||||
7875645296823748474.tmp
|
||||
8495339501512512468.tmp
|
||||
4657930969137717517.tmp
|
||||
6081303161062291208.tmp
|
||||
771297659941286896.tmp
|
||||
1769334171376700049.tmp
|
||||
dir.tmp
|
||||
5205870604020775563.tmp
|
||||
4483950466184961816.tmp
|
||||
***************
|
||||
7875645296823748474.tmp
|
||||
8495339501512512468.tmp
|
||||
4657930969137717517.tmp
|
||||
5205870604020775563.tmp
|
||||
6081303161062291208.tmp
|
||||
771297659941286896.tmp
|
||||
1769334171376700049.tmp
|
||||
4483950466184961816.tmp
|
||||
*/
|
||||
|
@ -27,17 +27,16 @@ Windows 10
|
||||
Users
|
||||
Bruce
|
||||
Documents
|
||||
Git
|
||||
GitHub
|
||||
on-java
|
||||
ExtractedExamples
|
||||
files
|
||||
PartsOfPaths.java
|
||||
Git\on-java\ExtractedExamples
|
||||
ends with '.java': false
|
||||
Users: false : false
|
||||
Bruce: false : false
|
||||
Documents: false : false
|
||||
Git: false : false
|
||||
GitHub: false : false
|
||||
on-java: false : false
|
||||
ExtractedExamples: false : false
|
||||
files: false : false
|
||||
|
@ -47,10 +47,10 @@ RegularFile: true
|
||||
Writable: true
|
||||
notExists: false
|
||||
Hidden: false
|
||||
size: 1617
|
||||
FileStore: (C:)
|
||||
LastModified: : 2015-12-13T21:24:32.029627Z
|
||||
Owner: GROOT\Bruce (User)
|
||||
size: 1631
|
||||
FileStore: SSD (C:)
|
||||
LastModified: : 2016-07-22T17:55:34.80143Z
|
||||
Owner: MINDVIEWTOSHIBA\Bruce (User)
|
||||
ContentType: null
|
||||
SymbolicLink: false
|
||||
*/
|
||||
|
@ -63,40 +63,40 @@ FileName: PathInfo.java
|
||||
Parent: null
|
||||
Root: null
|
||||
----------------
|
||||
toString: C:\Users\Bruce\Documents\Git\on-
|
||||
toString: C:\Users\Bruce\Documents\GitHub\on-
|
||||
java\ExtractedExamples\files\PathInfo.java
|
||||
Exists: true
|
||||
RegularFile: true
|
||||
Directory: false
|
||||
Absolute: true
|
||||
FileName: PathInfo.java
|
||||
Parent: C:\Users\Bruce\Documents\Git\on-
|
||||
Parent: C:\Users\Bruce\Documents\GitHub\on-
|
||||
java\ExtractedExamples\files
|
||||
Root: C:\
|
||||
----------------
|
||||
toString: C:\Users\Bruce\Documents\Git\on-
|
||||
toString: C:\Users\Bruce\Documents\GitHub\on-
|
||||
java\ExtractedExamples\files
|
||||
Exists: true
|
||||
RegularFile: false
|
||||
Directory: true
|
||||
Absolute: true
|
||||
FileName: files
|
||||
Parent: C:\Users\Bruce\Documents\Git\on-
|
||||
Parent: C:\Users\Bruce\Documents\GitHub\on-
|
||||
java\ExtractedExamples
|
||||
Root: C:\
|
||||
----------------
|
||||
toString: C:\Users\Bruce\Documents\Git\on-
|
||||
toString: C:\Users\Bruce\Documents\GitHub\on-
|
||||
java\ExtractedExamples\files\PathInfo.java
|
||||
Exists: true
|
||||
RegularFile: true
|
||||
Directory: false
|
||||
Absolute: true
|
||||
FileName: PathInfo.java
|
||||
Parent: C:\Users\Bruce\Documents\Git\on-
|
||||
Parent: C:\Users\Bruce\Documents\GitHub\on-
|
||||
java\ExtractedExamples\files
|
||||
Root: C:\
|
||||
----------------
|
||||
URI: file:///C:/Users/Bruce/Documents/Git/on-
|
||||
URI: file:///C:/Users/Bruce/Documents/GitHub/on-
|
||||
java/ExtractedExamples/files/PathInfo.java
|
||||
true
|
||||
*/
|
||||
|
@ -14,5 +14,5 @@ public class ReadLineStream {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
show("RegularFile", Files.isRegularFile(p));
|
||||
show("RegularFile", Files.isRegularFile(p));
|
||||
*/
|
||||
|
@ -43,8 +43,8 @@ public class TreeWatcher {
|
||||
}
|
||||
/* Output:
|
||||
deleting test\bag\foo\bar\baz\File.txt
|
||||
deleting test\bar\baz\bag\foo\File.txt
|
||||
evt.context(): File.txt
|
||||
evt.count(): 1
|
||||
evt.kind(): ENTRY_DELETE
|
||||
deleting test\bar\baz\bag\foo\File.txt
|
||||
*/
|
||||
|
@ -60,6 +60,6 @@ public class DynamicProxyMixin {
|
||||
}
|
||||
/* Output:
|
||||
Hello
|
||||
1434408462833
|
||||
1469210152348
|
||||
1
|
||||
*/
|
||||
|
@ -64,6 +64,6 @@ public class Mixins {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
test string 1 1434408464412 1
|
||||
test string 2 1434408464413 2
|
||||
test string 1 1469210158525 1
|
||||
test string 2 1469210158525 2
|
||||
*/
|
||||
|
@ -41,6 +41,6 @@ public class PrimitiveGenericTest {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
[YNzbrnyGc, FOWZnTcQr, GseGZMmJM, RoEsuEcUO, neOEdLsmw]
|
||||
[8689, 7185, 6992, 5746, 3976, 2447, 5368, 1854, 1395]
|
||||
[btpenpccu, xszgvgmei, nneeloztd, vewcippcy, gpoalkljl]
|
||||
[635, 8737, 3941, 4720, 6177, 8479, 6656, 3768, 4948]
|
||||
*/
|
||||
|
@ -18,6 +18,6 @@ extends ArrayList<Tuple4<A, B, C, D>> {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
(Vehicle@18025c, Amphibian@16f27d, hi, 47)
|
||||
(Vehicle@7aac27, Amphibian@3abc88, hi, 47)
|
||||
(Vehicle@107d329, Amphibian@1629346, hi, 47)
|
||||
(Vehicle@4b9385, Amphibian@1311334, hi, 47)
|
||||
*/
|
||||
|
@ -38,7 +38,7 @@ public class TupleTest {
|
||||
}
|
||||
/* Output:
|
||||
(hi, 47)
|
||||
(Amphibian@139a55, hi, 47)
|
||||
(Vehicle@1db9742, Amphibian@106d69c, hi, 47)
|
||||
(Vehicle@52e922, Amphibian@25154f, hi, 47, 11.1)
|
||||
(Amphibian@1c7c054, hi, 47)
|
||||
(Vehicle@14991ad, Amphibian@d93b30, hi, 47)
|
||||
(Vehicle@a14482, Amphibian@140e19d, hi, 47, 11.1)
|
||||
*/
|
||||
|
@ -35,7 +35,7 @@ public class TupleTest2 {
|
||||
/* Output:
|
||||
(hi, 47)
|
||||
(hi, 47)
|
||||
(Amphibian@139a55, hi, 47)
|
||||
(Vehicle@1db9742, Amphibian@106d69c, hi, 47)
|
||||
(Vehicle@52e922, Amphibian@25154f, hi, 47, 11.1)
|
||||
(Amphibian@a298b7, hi, 47)
|
||||
(Vehicle@16d3586, Amphibian@154617c, hi, 47)
|
||||
(Vehicle@17327b6, Amphibian@14ae5a5, hi, 47, 11.1)
|
||||
*/
|
||||
|
@ -35,19 +35,19 @@ COBALT_BLUE_HUE, PERMANENT_GREEN, VIRIDIAN_HUE]
|
||||
set2: [CERULEAN_BLUE_HUE, PHTHALO_BLUE, ULTRAMARINE,
|
||||
COBALT_BLUE_HUE, PERMANENT_GREEN, VIRIDIAN_HUE, SAP_GREEN,
|
||||
YELLOW_OCHRE, BURNT_SIENNA, RAW_UMBER, BURNT_UMBER]
|
||||
union(set1, set2): [MAGENTA, ROSE_MADDER, CRIMSON,
|
||||
PERMANENT_GREEN, BURNT_UMBER, SAP_GREEN, CERULEAN_BLUE_HUE,
|
||||
RAW_UMBER, YELLOW_OCHRE, BRILLIANT_RED, ULTRAMARINE,
|
||||
BURNT_SIENNA, COBALT_BLUE_HUE, VIRIDIAN_HUE, PHTHALO_BLUE,
|
||||
VIOLET]
|
||||
intersection(set1, set2): [COBALT_BLUE_HUE,
|
||||
PERMANENT_GREEN, VIRIDIAN_HUE, PHTHALO_BLUE,
|
||||
CERULEAN_BLUE_HUE, ULTRAMARINE]
|
||||
difference(set1, subset): [MAGENTA, ROSE_MADDER, CRIMSON,
|
||||
BRILLIANT_RED, VIOLET]
|
||||
difference(set2, subset): [BURNT_UMBER, SAP_GREEN,
|
||||
RAW_UMBER, YELLOW_OCHRE, BURNT_SIENNA]
|
||||
complement(set1, set2): [MAGENTA, ROSE_MADDER, CRIMSON,
|
||||
BURNT_UMBER, SAP_GREEN, RAW_UMBER, YELLOW_OCHRE,
|
||||
BRILLIANT_RED, BURNT_SIENNA, VIOLET]
|
||||
union(set1, set2): [MAGENTA, COBALT_BLUE_HUE, VIOLET,
|
||||
VIRIDIAN_HUE, BURNT_SIENNA, ULTRAMARINE, CERULEAN_BLUE_HUE,
|
||||
BURNT_UMBER, BRILLIANT_RED, PHTHALO_BLUE, YELLOW_OCHRE,
|
||||
SAP_GREEN, CRIMSON, ROSE_MADDER, RAW_UMBER,
|
||||
PERMANENT_GREEN]
|
||||
intersection(set1, set2): [COBALT_BLUE_HUE, VIRIDIAN_HUE,
|
||||
ULTRAMARINE, CERULEAN_BLUE_HUE, PHTHALO_BLUE,
|
||||
PERMANENT_GREEN]
|
||||
difference(set1, subset): [CRIMSON, MAGENTA, VIOLET,
|
||||
ROSE_MADDER, BRILLIANT_RED]
|
||||
difference(set2, subset): [BURNT_SIENNA, BURNT_UMBER,
|
||||
YELLOW_OCHRE, RAW_UMBER, SAP_GREEN]
|
||||
complement(set1, set2): [MAGENTA, VIOLET, BURNT_SIENNA,
|
||||
BURNT_UMBER, BRILLIANT_RED, YELLOW_OCHRE, SAP_GREEN,
|
||||
CRIMSON, ROSE_MADDER, RAW_UMBER]
|
||||
*/
|
||||
|
@ -25,6 +25,6 @@ public class NewVarArgs {
|
||||
47 3.14 11.11
|
||||
47 3.14 11.11
|
||||
one two three
|
||||
A@19e0bfd A@139a55 A@1db9742
|
||||
A@1db9742 A@106d69c A@52e922
|
||||
1 2 3 4
|
||||
*/
|
||||
|
@ -22,5 +22,5 @@ public class VarArgs {
|
||||
/* Output:
|
||||
47 3.14 11.11
|
||||
one two three
|
||||
A@19e0bfd A@139a55 A@1db9742
|
||||
A@1db9742 A@106d69c A@52e922
|
||||
*/
|
||||
|
@ -29,13 +29,29 @@ public class GreenhouseController {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
Bing!
|
||||
Thermostat on night setting
|
||||
Light is on
|
||||
Light is off
|
||||
Greenhouse water is on
|
||||
Greenhouse water is off
|
||||
Bing!
|
||||
Thermostat on day setting
|
||||
Bing!
|
||||
Restarting system
|
||||
Thermostat on night setting
|
||||
Light is on
|
||||
Light is off
|
||||
Greenhouse water is on
|
||||
Bing!
|
||||
Greenhouse water is off
|
||||
Thermostat on day setting
|
||||
Bing!
|
||||
Restarting system
|
||||
Thermostat on night setting
|
||||
Light is on
|
||||
Light is off
|
||||
Bing!
|
||||
Greenhouse water is on
|
||||
Greenhouse water is off
|
||||
Terminating
|
||||
*/
|
||||
|
@ -44,41 +44,58 @@ public class ConfigureLogging {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
Logger Name : com Level: null
|
||||
Logger Name : com.mindviewinc Level: null
|
||||
Logger Name : onjava Level: null
|
||||
Logger Name : com.mindviewinc.test Level: null
|
||||
Logger Name : random Level: null
|
||||
Logger Name : com Level: null
|
||||
Logger Name : com.mindviewinc Level: FINEST
|
||||
Logger Name : onjava Level: INFO
|
||||
Logger Name : com.mindviewinc.test Level: FINER
|
||||
Logger Name : random Level: SEVERE
|
||||
___[ Error Output ]___
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
FINEST: Finest
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
FINER: Finer
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
FINE: Fine
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
CONFIG: Config
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
INFO: Info
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
WARNING: Warning
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
SEVERE: Severe
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
FINEST: Finest
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
FINER: Finer
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
FINE: Fine
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
CONFIG: Config
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
INFO: Info
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
WARNING: Warning
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
SEVERE: Severe
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
INFO: Info
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
WARNING: Warning
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
SEVERE: Severe
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
FINER: Finer
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
FINE: Fine
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
CONFIG: Config
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
INFO: Info
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
WARNING: Warning
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
SEVERE: Severe
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
INFO: Info
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
WARNING: Warning
|
||||
Dec 15, 2015 9:58:42 PM ConfigureLogging sendLogMessages
|
||||
Jul 22, 2016 11:55:52 AM ConfigureLogging sendLogMessages
|
||||
SEVERE: Severe
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -40,9 +40,8 @@ public class CustomHandler {
|
||||
, INFO:, CustomHandler:, main:, <Logging Info>,
|
||||
]
|
||||
___[ Error Output ]___
|
||||
Dec 15, 2015 9:58:42 PM CustomHandler main
|
||||
Jul 22, 2016 11:55:52 AM CustomHandler main
|
||||
WARNING: Logging Warning
|
||||
Dec 15, 2015 9:58:42 PM CustomHandler main
|
||||
Jul 22, 2016 11:55:52 AM CustomHandler main
|
||||
INFO: Logging Info
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -14,7 +14,6 @@ public class InfoLogging {
|
||||
}
|
||||
/* Output:
|
||||
___[ Error Output ]___
|
||||
Dec 15, 2015 9:58:43 PM InfoLogging main
|
||||
Jul 22, 2016 11:55:52 AM InfoLogging main
|
||||
INFO: Logging: INFO-level message
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -16,7 +16,6 @@ public class InfoLogging2 {
|
||||
}
|
||||
/* Output:
|
||||
___[ Error Output ]___
|
||||
Dec 15, 2015 9:58:43 PM InfoLogging2 main
|
||||
Jul 22, 2016 11:55:53 AM InfoLogging2 main
|
||||
INFO: Logging an INFO-level message
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -17,7 +17,6 @@ public class LogToFile {
|
||||
}
|
||||
/* Output:
|
||||
___[ Error Output ]___
|
||||
Dec 15, 2015 9:58:43 PM LogToFile main
|
||||
Jul 22, 2016 11:55:53 AM LogToFile main
|
||||
INFO: A message logged to the file
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -19,7 +19,6 @@ public class LogToFile2 {
|
||||
}
|
||||
/* Output:
|
||||
___[ Error Output ]___
|
||||
Dec 15, 2015 9:58:43 PM LogToFile2 main
|
||||
Jul 22, 2016 11:55:53 AM LogToFile2 main
|
||||
INFO: A message logged to the file
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -62,7 +62,7 @@ public class LoggingLevelManipulation {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
-- printing levels -- com : null com.mindviewinc : null
|
||||
-- printing levels -- com : null com.mindviewinc : null
|
||||
onjava : null com.mindviewinc.test : null random : null
|
||||
-- printing levels -- com : SEVERE com.mindviewinc : null
|
||||
onjava : null com.mindviewinc.test : null random : null
|
||||
@ -76,110 +76,109 @@ onjava : FINEST com.mindviewinc.test : FINEST random :
|
||||
FINEST
|
||||
net level: FINEST
|
||||
___[ Error Output ]___
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:53 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: com Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: com.mindviewinc Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
INFO: onjava Info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
WARNING: onjava Warning
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: onjava Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: com.mindviewinc.test Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
INFO: random Info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
WARNING: random Warning
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: random Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: com Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: com.mindviewinc Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
INFO: onjava Info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
WARNING: onjava Warning
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: onjava Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
INFO: com.mindviewinc.test Info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
WARNING: com.mindviewinc.test Warning
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: com.mindviewinc.test Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
INFO: random Info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
WARNING: random Warning
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: random Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
INFO: com Info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
WARNING: com Warning
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: com Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
INFO: com.mindviewinc Info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
WARNING: com.mindviewinc Warning
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: com.mindviewinc Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
INFO: onjava Info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
WARNING: onjava Warning
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: onjava Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
INFO: com.mindviewinc.test Info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
WARNING: com.mindviewinc.test Warning
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: com.mindviewinc.test Severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
INFO: random Info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
WARNING: random Warning
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevelManipulation
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevelManipulation
|
||||
printLogMessages
|
||||
SEVERE: random Severe
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -40,23 +40,22 @@ com level: SEVERE
|
||||
individual loggers set to FINEST
|
||||
com level: SEVERE
|
||||
___[ Error Output ]___
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevels logMessages
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevels logMessages
|
||||
INFO: util : info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevels logMessages
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevels logMessages
|
||||
SEVERE: test : severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevels logMessages
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevels logMessages
|
||||
INFO: random : info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevels logMessages
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevels logMessages
|
||||
INFO: util : info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevels logMessages
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevels logMessages
|
||||
SEVERE: test : severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevels logMessages
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevels logMessages
|
||||
INFO: random : info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevels logMessages
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevels logMessages
|
||||
INFO: util : info
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevels logMessages
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevels logMessages
|
||||
SEVERE: test : severe
|
||||
Dec 15, 2015 9:58:43 PM LoggingLevels logMessages
|
||||
Jul 22, 2016 11:55:54 AM LoggingLevels logMessages
|
||||
INFO: random : info
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -20,9 +20,8 @@ public class MultipleHandlers {
|
||||
}
|
||||
/* Output:
|
||||
___[ Error Output ]___
|
||||
Dec 15, 2015 9:58:43 PM MultipleHandlers main
|
||||
Jul 22, 2016 11:55:54 AM MultipleHandlers main
|
||||
WARNING: Output to multiple handlers
|
||||
Dec 15, 2015 9:58:43 PM MultipleHandlers main
|
||||
Jul 22, 2016 11:55:54 AM MultipleHandlers main
|
||||
WARNING: Output to multiple handlers
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -21,7 +21,6 @@ public class MultipleHandlers2 {
|
||||
}
|
||||
/* Output:
|
||||
___[ Error Output ]___
|
||||
Dec 15, 2015 9:58:43 PM MultipleHandlers2 main
|
||||
Jul 22, 2016 11:55:54 AM MultipleHandlers2 main
|
||||
WARNING: Output to multiple handlers
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -48,7 +48,7 @@ public class PrintableLogRecord extends LogRecord {
|
||||
Level<FINEST>
|
||||
LoggerName<null>
|
||||
Message<Simple Log Record>
|
||||
CurrentMillis<1434408472765>
|
||||
CurrentMillis<1469210155053>
|
||||
Params<null>
|
||||
ResourceBundle<null>
|
||||
ResourceBundleName<null>
|
||||
|
@ -34,13 +34,12 @@ public class SimpleFilter {
|
||||
}
|
||||
/* Output:
|
||||
___[ Error Output ]___
|
||||
Dec 15, 2015 9:58:44 PM SimpleFilter sendLogMessages
|
||||
Jul 22, 2016 11:55:55 AM SimpleFilter sendLogMessages
|
||||
WARNING: A duck in the house!
|
||||
Dec 15, 2015 9:58:44 PM SimpleFilter sendLogMessages
|
||||
Jul 22, 2016 11:55:55 AM SimpleFilter sendLogMessages
|
||||
WARNING: A Wombat at large!
|
||||
Dec 15, 2015 9:58:44 PM SimpleFilter main
|
||||
Jul 22, 2016 11:55:55 AM SimpleFilter main
|
||||
INFO: After setting filter..
|
||||
Dec 15, 2015 9:58:44 PM SimpleFilter sendLogMessages
|
||||
Jul 22, 2016 11:55:55 AM SimpleFilter sendLogMessages
|
||||
WARNING: A duck in the house!
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -35,5 +35,4 @@ INFO : SimpleFormatterExample -:- logMessages -:- Line
|
||||
One
|
||||
INFO : SimpleFormatterExample -:- logMessages -:- Line
|
||||
Two
|
||||
___[ Error Output is Expected ]___
|
||||
*/
|
||||
|
@ -15,6 +15,6 @@ public class WhoAmI {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
groot
|
||||
192.168.70.108
|
||||
MindviewToshibaLaptop
|
||||
192.168.0.107
|
||||
*/
|
||||
|
@ -62,7 +62,7 @@ public class BufferToText {
|
||||
}
|
||||
/* Output:
|
||||
????
|
||||
Decoded using Cp1252: Some text
|
||||
Decoded using windows-1252: Some text
|
||||
Some text
|
||||
Some textNULNULNUL
|
||||
*/
|
||||
|
@ -52,8 +52,8 @@ public class LockingMappedFiles {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
Locked: 75497471 to 113246206
|
||||
Locked: 0 to 50331647
|
||||
Locked: 75497471 to 113246206
|
||||
Released: 75497471 to 113246206
|
||||
Released: 0 to 50331647
|
||||
*/
|
||||
|
@ -22,5 +22,5 @@ public class HelloDate {
|
||||
}
|
||||
/* Output:
|
||||
Hello, it's:
|
||||
Mon Jun 15 15:47:53 PDT 2015
|
||||
Fri Jul 22 11:55:55 MDT 2016
|
||||
*/
|
||||
|
@ -15,8 +15,8 @@ public class ShowProperties {
|
||||
-- listing properties --
|
||||
java.runtime.name=Java(TM) SE Runtime Environment
|
||||
sun.boot.library.path=C:\Program Files
|
||||
(x86)\Java\jre1.8.0_...
|
||||
java.vm.version=25.60-b23
|
||||
(x86)\Java\jdk1.8.0_...
|
||||
java.vm.version=25.77-b03
|
||||
java.vm.vendor=Oracle Corporation
|
||||
java.vendor.url=http://java.oracle.com/
|
||||
path.separator=;
|
||||
@ -28,10 +28,10 @@ sun.java.launcher=SUN_STANDARD
|
||||
sun.os.patch.level=
|
||||
java.vm.specification.name=Java Virtual Machine
|
||||
Specification
|
||||
user.dir=C:\Users\Bruce\Documents\GitHub\OnJav...
|
||||
java.runtime.version=1.8.0_60-b27
|
||||
user.dir=C:\Users\Bruce\Documents\GitHub\on-ja...
|
||||
java.runtime.version=1.8.0_77-b03
|
||||
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
|
||||
java.endorsed.dirs=C:\Program Files (x86)\Java\jre1.8.0_...
|
||||
java.endorsed.dirs=C:\Program Files (x86)\Java\jdk1.8.0_...
|
||||
os.arch=x86
|
||||
java.io.tmpdir=C:\Users\Bruce\AppData\Local\Temp\
|
||||
...
|
||||
|
@ -34,11 +34,11 @@ public class Hex {
|
||||
}
|
||||
}
|
||||
/* Output: (First 6 Lines)
|
||||
00000: CA FE BA BE 00 00 00 34 00 53 0A 00 05 00 22 07
|
||||
00010: 00 23 0A 00 02 00 22 08 00 24 07 00 25 0A 00 26
|
||||
00020: 00 27 0A 00 28 00 29 0A 00 02 00 2A 08 00 2B 0A
|
||||
00030: 00 2C 00 2D 08 00 2E 0A 00 02 00 2F 09 00 30 00
|
||||
00040: 31 08 00 32 0A 00 33 00 34 0A 00 15 00 35 0A 00
|
||||
00050: 36 00 37 07 00 38 0A 00 12 00 39 0A 00 33 00 3A
|
||||
00000: CA FE BA BE 00 00 00 34 00 61 0A 00 05 00 31 07
|
||||
00010: 00 32 0A 00 02 00 31 08 00 33 07 00 34 0A 00 35
|
||||
00020: 00 36 0A 00 0F 00 37 0A 00 02 00 38 08 00 39 0A
|
||||
00030: 00 3A 00 3B 08 00 3C 0A 00 02 00 3D 09 00 3E 00
|
||||
00040: 3F 08 00 40 07 00 41 0A 00 42 00 43 0A 00 44 00
|
||||
00050: 45 0A 00 14 00 46 0A 00 47 00 48 07 00 49 01 00
|
||||
...
|
||||
*/
|
||||
|
@ -101,6 +101,7 @@ public class ClassNameFinder {
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
onjava.ArrayShow
|
||||
onjava.atunit.AtUnit$TestMethods
|
||||
onjava.atunit.AtUnit
|
||||
onjava.atunit.ClassNameFinder
|
||||
@ -108,4 +109,71 @@ onjava.atunit.Test
|
||||
onjava.atunit.TestObjectCleanup
|
||||
onjava.atunit.TestObjectCreate
|
||||
onjava.atunit.TestProperty
|
||||
onjava.BasicSupplier
|
||||
onjava.CollectionMethodDifferences
|
||||
onjava.ConvertTo
|
||||
onjava.Count$Boolean
|
||||
onjava.Count$boolean_
|
||||
onjava.Count$Byte
|
||||
onjava.Count$byte_
|
||||
onjava.Count$Character
|
||||
onjava.Count$char_
|
||||
onjava.Count$Double
|
||||
onjava.Count$double_
|
||||
onjava.Count$Float
|
||||
onjava.Count$float_
|
||||
onjava.Count$Integer
|
||||
onjava.Count$int_
|
||||
onjava.Count$Long
|
||||
onjava.Count$long_
|
||||
onjava.Count$Short
|
||||
onjava.Count$short_
|
||||
onjava.Count
|
||||
onjava.CountingIntegerList
|
||||
onjava.CountMap
|
||||
onjava.Countries
|
||||
onjava.Enums
|
||||
onjava.FillMap
|
||||
onjava.Hex
|
||||
onjava.MouseClick
|
||||
onjava.Null
|
||||
onjava.Operation
|
||||
onjava.OSExecute
|
||||
onjava.OSExecuteException
|
||||
onjava.Pair
|
||||
onjava.ProcessFiles$Strategy
|
||||
onjava.ProcessFiles
|
||||
onjava.Rand$Boolean
|
||||
onjava.Rand$boolean_
|
||||
onjava.Rand$Byte
|
||||
onjava.Rand$byte_
|
||||
onjava.Rand$Character
|
||||
onjava.Rand$char_
|
||||
onjava.Rand$Double
|
||||
onjava.Rand$double_
|
||||
onjava.Rand$Float
|
||||
onjava.Rand$float_
|
||||
onjava.Rand$Integer
|
||||
onjava.Rand$int_
|
||||
onjava.Rand$Long
|
||||
onjava.Rand$long_
|
||||
onjava.Rand$Short
|
||||
onjava.Rand$short_
|
||||
onjava.Rand$String
|
||||
onjava.Rand
|
||||
onjava.Range
|
||||
onjava.Repeat
|
||||
onjava.RmDir
|
||||
onjava.Sets
|
||||
onjava.Sleep
|
||||
onjava.Stack
|
||||
onjava.Suppliers
|
||||
onjava.TimedAbort
|
||||
onjava.TimeIt
|
||||
onjava.Tuple
|
||||
onjava.Tuple2
|
||||
onjava.Tuple3
|
||||
onjava.Tuple4
|
||||
onjava.Tuple5
|
||||
onjava.TypeCounter
|
||||
*/
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user