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