diff --git a/HelloDate.java b/HelloDate.java index dce03d0b..9b14605b 100644 --- a/HelloDate.java +++ b/HelloDate.java @@ -1,7 +1,7 @@ // HelloDate.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class HelloDate { diff --git a/annotations/AtUnitComposition.java b/annotations/AtUnitComposition.java index bab704fa..87ecb692 100644 --- a/annotations/AtUnitComposition.java +++ b/annotations/AtUnitComposition.java @@ -1,7 +1,7 @@ // annotations/AtUnitComposition.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating non-embedded tests // {java onjava.atunit.AtUnit // build/classes/main/annotations/AtUnitComposition.class} diff --git a/annotations/AtUnitExample1.java b/annotations/AtUnitExample1.java index d8573bfa..facc85e9 100644 --- a/annotations/AtUnitExample1.java +++ b/annotations/AtUnitExample1.java @@ -1,7 +1,7 @@ // annotations/AtUnitExample1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java onjava.atunit.AtUnit // build/classes/main/annotations/AtUnitExample1.class} package annotations; diff --git a/annotations/AtUnitExample2.java b/annotations/AtUnitExample2.java index 37b74567..c84667bb 100644 --- a/annotations/AtUnitExample2.java +++ b/annotations/AtUnitExample2.java @@ -1,7 +1,7 @@ // annotations/AtUnitExample2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Assertions and exceptions can be used in @Tests // {java onjava.atunit.AtUnit // build/classes/main/annotations/AtUnitExample2.class} diff --git a/annotations/AtUnitExample3.java b/annotations/AtUnitExample3.java index d253c6a2..5c1635fc 100644 --- a/annotations/AtUnitExample3.java +++ b/annotations/AtUnitExample3.java @@ -1,7 +1,7 @@ // annotations/AtUnitExample3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java onjava.atunit.AtUnit // build/classes/main/annotations/AtUnitExample3.class} package annotations; diff --git a/annotations/AtUnitExample4.java b/annotations/AtUnitExample4.java index 935d0eee..066182f2 100644 --- a/annotations/AtUnitExample4.java +++ b/annotations/AtUnitExample4.java @@ -1,7 +1,7 @@ // annotations/AtUnitExample4.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java onjava.atunit.AtUnit // build/classes/main/annotations/AtUnitExample4.class} package annotations; diff --git a/annotations/AtUnitExample5.java b/annotations/AtUnitExample5.java index 97297058..b43141ea 100644 --- a/annotations/AtUnitExample5.java +++ b/annotations/AtUnitExample5.java @@ -1,7 +1,7 @@ // annotations/AtUnitExample5.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java onjava.atunit.AtUnit // build/classes/main/annotations/AtUnitExample5.class} package annotations; diff --git a/annotations/AtUnitExternalTest.java b/annotations/AtUnitExternalTest.java index a58909be..c7659c6f 100644 --- a/annotations/AtUnitExternalTest.java +++ b/annotations/AtUnitExternalTest.java @@ -1,7 +1,7 @@ // annotations/AtUnitExternalTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating non-embedded tests // {java onjava.atunit.AtUnit // build/classes/main/annotations/AtUnitExternalTest.class} diff --git a/annotations/HashSetTest.java b/annotations/HashSetTest.java index 553378ea..7ea3ce2c 100644 --- a/annotations/HashSetTest.java +++ b/annotations/HashSetTest.java @@ -1,7 +1,7 @@ // annotations/HashSetTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java onjava.atunit.AtUnit // build/classes/main/annotations/HashSetTest.class} package annotations; diff --git a/annotations/PasswordUtils.java b/annotations/PasswordUtils.java index 46c17e0a..b5968111 100644 --- a/annotations/PasswordUtils.java +++ b/annotations/PasswordUtils.java @@ -1,7 +1,7 @@ // annotations/PasswordUtils.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class PasswordUtils { diff --git a/annotations/SimulatingNull.java b/annotations/SimulatingNull.java index 263052be..7b63b946 100644 --- a/annotations/SimulatingNull.java +++ b/annotations/SimulatingNull.java @@ -1,7 +1,7 @@ // annotations/SimulatingNull.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.lang.annotation.*; @Target(ElementType.METHOD) diff --git a/annotations/StackL.java b/annotations/StackL.java index 4ae80f9e..348871ab 100644 --- a/annotations/StackL.java +++ b/annotations/StackL.java @@ -1,7 +1,7 @@ // annotations/StackL.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A stack built on a linkedList package annotations; import java.util.*; diff --git a/annotations/StackLStringTest.java b/annotations/StackLStringTest.java index 5ceda09c..62e7783b 100644 --- a/annotations/StackLStringTest.java +++ b/annotations/StackLStringTest.java @@ -1,7 +1,7 @@ // annotations/StackLStringTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Applying @Unit to generics // {java onjava.atunit.AtUnit // build/classes/main/annotations/StackLStringTest.class} diff --git a/annotations/Testable.java b/annotations/Testable.java index 369f2768..721dabad 100644 --- a/annotations/Testable.java +++ b/annotations/Testable.java @@ -1,7 +1,7 @@ // annotations/Testable.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package annotations; import onjava.atunit.*; diff --git a/annotations/UseCase.java b/annotations/UseCase.java index c59a1463..7dc851a3 100644 --- a/annotations/UseCase.java +++ b/annotations/UseCase.java @@ -1,7 +1,7 @@ // annotations/UseCase.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.lang.annotation.*; @Target(ElementType.METHOD) diff --git a/annotations/UseCaseTracker.java b/annotations/UseCaseTracker.java index 91da32e5..84a2e21f 100644 --- a/annotations/UseCaseTracker.java +++ b/annotations/UseCaseTracker.java @@ -1,7 +1,7 @@ // annotations/UseCaseTracker.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.lang.reflect.*; import java.util.*; diff --git a/annotations/database/Constraints.java b/annotations/database/Constraints.java index b16105e5..15688233 100644 --- a/annotations/database/Constraints.java +++ b/annotations/database/Constraints.java @@ -1,7 +1,7 @@ // annotations/database/Constraints.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package annotations.database; import java.lang.annotation.*; diff --git a/annotations/database/DBTable.java b/annotations/database/DBTable.java index 2ff972fb..8cdad9b6 100644 --- a/annotations/database/DBTable.java +++ b/annotations/database/DBTable.java @@ -1,7 +1,7 @@ // annotations/database/DBTable.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package annotations.database; import java.lang.annotation.*; diff --git a/annotations/database/Member.java b/annotations/database/Member.java index c4475e90..b49c2c59 100644 --- a/annotations/database/Member.java +++ b/annotations/database/Member.java @@ -1,7 +1,7 @@ // annotations/database/Member.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package annotations.database; @DBTable(name = "MEMBER") diff --git a/annotations/database/SQLInteger.java b/annotations/database/SQLInteger.java index cffcb86b..ecd7b5f4 100644 --- a/annotations/database/SQLInteger.java +++ b/annotations/database/SQLInteger.java @@ -1,7 +1,7 @@ // annotations/database/SQLInteger.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package annotations.database; import java.lang.annotation.*; diff --git a/annotations/database/SQLString.java b/annotations/database/SQLString.java index fbb6195a..0df7eb11 100644 --- a/annotations/database/SQLString.java +++ b/annotations/database/SQLString.java @@ -1,7 +1,7 @@ // annotations/database/SQLString.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package annotations.database; import java.lang.annotation.*; diff --git a/annotations/database/TableCreator.java b/annotations/database/TableCreator.java index eeb80705..b513e378 100644 --- a/annotations/database/TableCreator.java +++ b/annotations/database/TableCreator.java @@ -1,7 +1,7 @@ // annotations/database/TableCreator.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Reflection-based annotation processor // {java annotations.database.TableCreator // annotations.database.Member} diff --git a/annotations/database/Uniqueness.java b/annotations/database/Uniqueness.java index 2ede0e41..b1adc319 100644 --- a/annotations/database/Uniqueness.java +++ b/annotations/database/Uniqueness.java @@ -1,7 +1,7 @@ // annotations/database/Uniqueness.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Sample of nested annotations package annotations.database; diff --git a/annotations/ifx/ExtractInterface.java b/annotations/ifx/ExtractInterface.java index 68c32038..bef18673 100644 --- a/annotations/ifx/ExtractInterface.java +++ b/annotations/ifx/ExtractInterface.java @@ -1,7 +1,7 @@ // annotations/ifx/ExtractInterface.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // javac-based annotation processing package annotations.ifx; import java.lang.annotation.*; diff --git a/annotations/ifx/IfaceExtractorProcessor.java b/annotations/ifx/IfaceExtractorProcessor.java index 06a95e42..9177a048 100644 --- a/annotations/ifx/IfaceExtractorProcessor.java +++ b/annotations/ifx/IfaceExtractorProcessor.java @@ -1,7 +1,7 @@ // annotations/ifx/IfaceExtractorProcessor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // javac-based annotation processing package annotations.ifx; import javax.annotation.processing.*; diff --git a/annotations/ifx/Multiplier.java b/annotations/ifx/Multiplier.java index 71322e11..dc128bf7 100644 --- a/annotations/ifx/Multiplier.java +++ b/annotations/ifx/Multiplier.java @@ -1,7 +1,7 @@ // annotations/ifx/Multiplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // javac-based annotation processing // {java annotations.ifx.Multiplier} package annotations.ifx; diff --git a/annotations/simplest/Simple.java b/annotations/simplest/Simple.java index 7e1b8ce9..db5ba7bc 100644 --- a/annotations/simplest/Simple.java +++ b/annotations/simplest/Simple.java @@ -1,7 +1,7 @@ // annotations/simplest/Simple.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A bare-bones annotation package annotations.simplest; import java.lang.annotation.Retention; diff --git a/annotations/simplest/SimpleProcessor.java b/annotations/simplest/SimpleProcessor.java index b42f2d6e..a362a3e8 100644 --- a/annotations/simplest/SimpleProcessor.java +++ b/annotations/simplest/SimpleProcessor.java @@ -1,7 +1,7 @@ // annotations/simplest/SimpleProcessor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A bare-bones annotation processor package annotations.simplest; import javax.annotation.processing.*; diff --git a/annotations/simplest/SimpleTest.java b/annotations/simplest/SimpleTest.java index 4a991d50..e2477c1b 100644 --- a/annotations/simplest/SimpleTest.java +++ b/annotations/simplest/SimpleTest.java @@ -1,7 +1,7 @@ // annotations/simplest/SimpleTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Test the "Simple" annotation // {java annotations.simplest.SimpleTest} package annotations.simplest; diff --git a/arrays/AlphabeticSearch.java b/arrays/AlphabeticSearch.java index 6b5d87ee..1ede5c2f 100644 --- a/arrays/AlphabeticSearch.java +++ b/arrays/AlphabeticSearch.java @@ -1,7 +1,7 @@ // arrays/AlphabeticSearch.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Searching with a Comparator import java.util.*; import onjava.*; diff --git a/arrays/ArrayCopying.java b/arrays/ArrayCopying.java index 459aaa17..88b84232 100644 --- a/arrays/ArrayCopying.java +++ b/arrays/ArrayCopying.java @@ -1,7 +1,7 @@ // arrays/ArrayCopying.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrate Arrays.copy() and Arrays.copyOf() import java.util.*; import onjava.*; diff --git a/arrays/ArrayOfGenericType.java b/arrays/ArrayOfGenericType.java index bd89ffdd..01b4ee4c 100644 --- a/arrays/ArrayOfGenericType.java +++ b/arrays/ArrayOfGenericType.java @@ -1,7 +1,7 @@ // arrays/ArrayOfGenericType.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class ArrayOfGenericType { T[] array; // OK diff --git a/arrays/ArrayOfGenerics.java b/arrays/ArrayOfGenerics.java index b205e82b..9b9e31a6 100644 --- a/arrays/ArrayOfGenerics.java +++ b/arrays/ArrayOfGenerics.java @@ -1,7 +1,7 @@ // arrays/ArrayOfGenerics.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ArrayOfGenerics { diff --git a/arrays/ArrayOptions.java b/arrays/ArrayOptions.java index 2107cae9..c4ebd187 100644 --- a/arrays/ArrayOptions.java +++ b/arrays/ArrayOptions.java @@ -1,7 +1,7 @@ // arrays/ArrayOptions.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Initialization & re-assignment of arrays import java.util.*; import static onjava.ArrayShow.*; diff --git a/arrays/ArraySearching.java b/arrays/ArraySearching.java index b76bade6..baf7878f 100644 --- a/arrays/ArraySearching.java +++ b/arrays/ArraySearching.java @@ -1,7 +1,7 @@ // arrays/ArraySearching.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using Arrays.binarySearch() import java.util.*; import onjava.*; diff --git a/arrays/AssemblingMultidimensionalArrays.java b/arrays/AssemblingMultidimensionalArrays.java index 5667961f..aadfd055 100644 --- a/arrays/AssemblingMultidimensionalArrays.java +++ b/arrays/AssemblingMultidimensionalArrays.java @@ -1,7 +1,7 @@ // arrays/AssemblingMultidimensionalArrays.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating multidimensional arrays import java.util.*; diff --git a/arrays/AutoboxingArrays.java b/arrays/AutoboxingArrays.java index 08cbe713..b39f4e8d 100644 --- a/arrays/AutoboxingArrays.java +++ b/arrays/AutoboxingArrays.java @@ -1,7 +1,7 @@ // arrays/AutoboxingArrays.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class AutoboxingArrays { diff --git a/arrays/CollectionComparison.java b/arrays/CollectionComparison.java index 51ae19ad..f37bcda5 100644 --- a/arrays/CollectionComparison.java +++ b/arrays/CollectionComparison.java @@ -1,7 +1,7 @@ // arrays/CollectionComparison.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import onjava.*; import static onjava.ArrayShow.*; diff --git a/arrays/CompType.java b/arrays/CompType.java index ae13e85e..21b4fa2a 100644 --- a/arrays/CompType.java +++ b/arrays/CompType.java @@ -1,7 +1,7 @@ // arrays/CompType.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Implementing Comparable in a class import java.util.*; import java.util.function.*; diff --git a/arrays/ComparatorTest.java b/arrays/ComparatorTest.java index 07cc0a92..c981a673 100644 --- a/arrays/ComparatorTest.java +++ b/arrays/ComparatorTest.java @@ -1,7 +1,7 @@ // arrays/ComparatorTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Implementing a Comparator for a class import java.util.*; import onjava.*; diff --git a/arrays/ComparingArrays.java b/arrays/ComparingArrays.java index 0a31fb9c..b146e3dd 100644 --- a/arrays/ComparingArrays.java +++ b/arrays/ComparingArrays.java @@ -1,7 +1,7 @@ // arrays/ComparingArrays.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using Arrays.equals() import java.util.*; import onjava.*; diff --git a/arrays/CountUpward.java b/arrays/CountUpward.java index 79f7afa1..a49a0a13 100644 --- a/arrays/CountUpward.java +++ b/arrays/CountUpward.java @@ -1,7 +1,7 @@ // arrays/CountUpward.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import static onjava.ArrayShow.*; diff --git a/arrays/FillingArrays.java b/arrays/FillingArrays.java index 6a7a247c..91df974c 100644 --- a/arrays/FillingArrays.java +++ b/arrays/FillingArrays.java @@ -1,7 +1,7 @@ // arrays/FillingArrays.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using Arrays.fill() import java.util.*; import static onjava.ArrayShow.*; diff --git a/arrays/IceCream.java b/arrays/IceCream.java index 3db2a2f4..c47e3afb 100644 --- a/arrays/IceCream.java +++ b/arrays/IceCream.java @@ -1,7 +1,7 @@ // arrays/IceCream.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Returning arrays from methods import java.util.*; import static onjava.ArrayShow.*; diff --git a/arrays/ModifyExisting.java b/arrays/ModifyExisting.java index 1199c705..664c4fe6 100644 --- a/arrays/ModifyExisting.java +++ b/arrays/ModifyExisting.java @@ -1,7 +1,7 @@ // arrays/ModifyExisting.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import onjava.*; import static onjava.ArrayShow.*; diff --git a/arrays/MultiDimWrapperArray.java b/arrays/MultiDimWrapperArray.java index 9c6c927a..2bab4e83 100644 --- a/arrays/MultiDimWrapperArray.java +++ b/arrays/MultiDimWrapperArray.java @@ -1,7 +1,7 @@ // arrays/MultiDimWrapperArray.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Multidimensional arrays of "wrapper" objects import java.util.*; diff --git a/arrays/MultidimensionalObjectArrays.java b/arrays/MultidimensionalObjectArrays.java index 465e5ea2..a288d176 100644 --- a/arrays/MultidimensionalObjectArrays.java +++ b/arrays/MultidimensionalObjectArrays.java @@ -1,7 +1,7 @@ // arrays/MultidimensionalObjectArrays.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class MultidimensionalObjectArrays { diff --git a/arrays/MultidimensionalPrimitiveArray.java b/arrays/MultidimensionalPrimitiveArray.java index 1162f60f..35f3fa1b 100644 --- a/arrays/MultidimensionalPrimitiveArray.java +++ b/arrays/MultidimensionalPrimitiveArray.java @@ -1,7 +1,7 @@ // arrays/MultidimensionalPrimitiveArray.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class MultidimensionalPrimitiveArray { diff --git a/arrays/ParallelPrefix1.java b/arrays/ParallelPrefix1.java index 85b55267..1e3a45b8 100644 --- a/arrays/ParallelPrefix1.java +++ b/arrays/ParallelPrefix1.java @@ -1,7 +1,7 @@ // arrays/ParallelPrefix1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import onjava.*; import static onjava.ArrayShow.*; diff --git a/arrays/ParallelPrefix2.java b/arrays/ParallelPrefix2.java index 8dec930a..e8c27b36 100644 --- a/arrays/ParallelPrefix2.java +++ b/arrays/ParallelPrefix2.java @@ -1,7 +1,7 @@ // arrays/ParallelPrefix2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import onjava.*; import static onjava.ArrayShow.*; diff --git a/arrays/ParallelPrefix3.java b/arrays/ParallelPrefix3.java index bd46fcdd..0fcab413 100644 --- a/arrays/ParallelPrefix3.java +++ b/arrays/ParallelPrefix3.java @@ -1,7 +1,7 @@ // arrays/ParallelPrefix3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ParallelPrefix3 { diff --git a/arrays/ParallelSetAll.java b/arrays/ParallelSetAll.java index a7285032..cda4a8a0 100644 --- a/arrays/ParallelSetAll.java +++ b/arrays/ParallelSetAll.java @@ -1,7 +1,7 @@ // arrays/ParallelSetAll.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import onjava.*; diff --git a/arrays/ParameterizedArrayType.java b/arrays/ParameterizedArrayType.java index b8fff08a..dba0bd46 100644 --- a/arrays/ParameterizedArrayType.java +++ b/arrays/ParameterizedArrayType.java @@ -1,7 +1,7 @@ // arrays/ParameterizedArrayType.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class ClassParameter { public T[] f(T[] arg) { return arg; } diff --git a/arrays/PythonLists.py b/arrays/PythonLists.py index f7d7fbe1..ead7ab7b 100644 --- a/arrays/PythonLists.py +++ b/arrays/PythonLists.py @@ -1,7 +1,7 @@ # arrays/PythonLists.py # (c)2016 MindView LLC: see Copyright.txt # We make no guarantees that this code is fit for any purpose. -# Visit http://mindviewinc.com/Books/OnJava/ for more book information. +# Visit http://OnJava8.com for more book information. aList = [1, 2, 3, 4, 5] print(type(aList)) # diff --git a/arrays/RaggedArray.java b/arrays/RaggedArray.java index b09d99b4..b667a2b9 100644 --- a/arrays/RaggedArray.java +++ b/arrays/RaggedArray.java @@ -1,7 +1,7 @@ // arrays/RaggedArray.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class RaggedArray { diff --git a/arrays/Reverse.java b/arrays/Reverse.java index 1862dd52..e7aa535c 100644 --- a/arrays/Reverse.java +++ b/arrays/Reverse.java @@ -1,7 +1,7 @@ // arrays/Reverse.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The Collections.reverseOrder() Comparator import java.util.*; import onjava.*; diff --git a/arrays/SimpleSetAll.java b/arrays/SimpleSetAll.java index 698fc0c3..74cccbe4 100644 --- a/arrays/SimpleSetAll.java +++ b/arrays/SimpleSetAll.java @@ -1,7 +1,7 @@ // arrays/SimpleSetAll.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import static onjava.ArrayShow.*; diff --git a/arrays/StreamFromArray.java b/arrays/StreamFromArray.java index 9808bdaa..b5c5176f 100644 --- a/arrays/StreamFromArray.java +++ b/arrays/StreamFromArray.java @@ -1,7 +1,7 @@ // arrays/StreamFromArray.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import onjava.*; diff --git a/arrays/StringSorting.java b/arrays/StringSorting.java index c07325a4..58224f57 100644 --- a/arrays/StringSorting.java +++ b/arrays/StringSorting.java @@ -1,7 +1,7 @@ // arrays/StringSorting.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Sorting an array of Strings import java.util.*; import onjava.*; diff --git a/arrays/TestConvertTo.java b/arrays/TestConvertTo.java index 1970be8b..fe312688 100644 --- a/arrays/TestConvertTo.java +++ b/arrays/TestConvertTo.java @@ -1,7 +1,7 @@ // arrays/TestConvertTo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import onjava.*; import static onjava.ArrayShow.*; diff --git a/arrays/TestCount.java b/arrays/TestCount.java index 89b0cf39..ba02c046 100644 --- a/arrays/TestCount.java +++ b/arrays/TestCount.java @@ -1,7 +1,7 @@ // arrays/TestCount.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Test counting generators import java.util.*; import java.util.stream.*; diff --git a/arrays/TestRand.java b/arrays/TestRand.java index 43e1695b..f9d61ef2 100644 --- a/arrays/TestRand.java +++ b/arrays/TestRand.java @@ -1,7 +1,7 @@ // arrays/TestRand.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Test random generators import java.util.*; import java.util.stream.*; diff --git a/arrays/ThreeDWithNew.java b/arrays/ThreeDWithNew.java index ca175fa2..dcc3a0ad 100644 --- a/arrays/ThreeDWithNew.java +++ b/arrays/ThreeDWithNew.java @@ -1,7 +1,7 @@ // arrays/ThreeDWithNew.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ThreeDWithNew { diff --git a/arrays/jmh/ParallelSort.java b/arrays/jmh/ParallelSort.java index b02de40c..20216fa3 100644 --- a/arrays/jmh/ParallelSort.java +++ b/arrays/jmh/ParallelSort.java @@ -1,7 +1,7 @@ // arrays/jmh/ParallelSort.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package arrays.jmh; import java.util.*; import onjava.*; diff --git a/collections/AdapterMethodIdiom.java b/collections/AdapterMethodIdiom.java index 5d7d4a27..6944c526 100644 --- a/collections/AdapterMethodIdiom.java +++ b/collections/AdapterMethodIdiom.java @@ -1,7 +1,7 @@ // collections/AdapterMethodIdiom.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The "Adapter Method" idiom uses for-in // with additional kinds of Iterables import java.util.*; diff --git a/collections/AddingGroups.java b/collections/AddingGroups.java index 9551639f..661de5bc 100644 --- a/collections/AddingGroups.java +++ b/collections/AddingGroups.java @@ -1,7 +1,7 @@ // collections/AddingGroups.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Adding groups of elements to Collection objects import java.util.*; diff --git a/collections/ApplesAndOrangesWithGenerics.java b/collections/ApplesAndOrangesWithGenerics.java index ee5db4f0..3d2e955c 100644 --- a/collections/ApplesAndOrangesWithGenerics.java +++ b/collections/ApplesAndOrangesWithGenerics.java @@ -1,7 +1,7 @@ // collections/ApplesAndOrangesWithGenerics.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ApplesAndOrangesWithGenerics { diff --git a/collections/ApplesAndOrangesWithoutGenerics.java b/collections/ApplesAndOrangesWithoutGenerics.java index 2b16df21..f003d5fd 100644 --- a/collections/ApplesAndOrangesWithoutGenerics.java +++ b/collections/ApplesAndOrangesWithoutGenerics.java @@ -1,7 +1,7 @@ // collections/ApplesAndOrangesWithoutGenerics.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Simple collection use (suppressing compiler warnings) // {ThrowsException} import java.util.*; diff --git a/collections/ArrayIsNotIterable.java b/collections/ArrayIsNotIterable.java index 87177d44..e87af4a3 100644 --- a/collections/ArrayIsNotIterable.java +++ b/collections/ArrayIsNotIterable.java @@ -1,7 +1,7 @@ // collections/ArrayIsNotIterable.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ArrayIsNotIterable { diff --git a/collections/AsListInference.java b/collections/AsListInference.java index 1d47b3c5..5d58ae1f 100644 --- a/collections/AsListInference.java +++ b/collections/AsListInference.java @@ -1,7 +1,7 @@ // collections/AsListInference.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; class Snow {} diff --git a/collections/CollectionMethods.java b/collections/CollectionMethods.java index 7339f93a..0a6986cf 100644 --- a/collections/CollectionMethods.java +++ b/collections/CollectionMethods.java @@ -1,7 +1,7 @@ // collections/CollectionMethods.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import onjava.*; public class CollectionMethods { diff --git a/collections/CollectionSequence.java b/collections/CollectionSequence.java index a444be71..0bfbd265 100644 --- a/collections/CollectionSequence.java +++ b/collections/CollectionSequence.java @@ -1,7 +1,7 @@ // collections/CollectionSequence.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import typeinfo.pets.*; import java.util.*; diff --git a/collections/CrossCollectionIteration.java b/collections/CrossCollectionIteration.java index 470da4a2..e2dec7a1 100644 --- a/collections/CrossCollectionIteration.java +++ b/collections/CrossCollectionIteration.java @@ -1,7 +1,7 @@ // collections/CrossCollectionIteration.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import typeinfo.pets.*; import java.util.*; diff --git a/collections/CrossCollectionIteration2.java b/collections/CrossCollectionIteration2.java index 8eb85f07..45616c65 100644 --- a/collections/CrossCollectionIteration2.java +++ b/collections/CrossCollectionIteration2.java @@ -1,7 +1,7 @@ // collections/CrossCollectionIteration2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import typeinfo.pets.*; import java.util.*; diff --git a/collections/EnvironmentVariables.java b/collections/EnvironmentVariables.java index a8f7bb6e..99723fd8 100644 --- a/collections/EnvironmentVariables.java +++ b/collections/EnvironmentVariables.java @@ -1,7 +1,7 @@ // collections/EnvironmentVariables.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {ValidateByHand} import java.util.*; diff --git a/collections/ForInCollections.java b/collections/ForInCollections.java index b37f1766..c52bce87 100644 --- a/collections/ForInCollections.java +++ b/collections/ForInCollections.java @@ -1,7 +1,7 @@ // collections/ForInCollections.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // All collections work with for-in import java.util.*; diff --git a/collections/GenericsAndUpcasting.java b/collections/GenericsAndUpcasting.java index df42b729..70a70c89 100644 --- a/collections/GenericsAndUpcasting.java +++ b/collections/GenericsAndUpcasting.java @@ -1,7 +1,7 @@ // collections/GenericsAndUpcasting.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; class GrannySmith extends Apple {} diff --git a/collections/InterfaceVsIterator.java b/collections/InterfaceVsIterator.java index eda990c2..2e68ecb2 100644 --- a/collections/InterfaceVsIterator.java +++ b/collections/InterfaceVsIterator.java @@ -1,7 +1,7 @@ // collections/InterfaceVsIterator.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import typeinfo.pets.*; import java.util.*; diff --git a/collections/IterableClass.java b/collections/IterableClass.java index 8f1d43fa..d0bf4908 100644 --- a/collections/IterableClass.java +++ b/collections/IterableClass.java @@ -1,7 +1,7 @@ // collections/IterableClass.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Anything Iterable works with for-in import java.util.*; diff --git a/collections/LinkedListFeatures.java b/collections/LinkedListFeatures.java index 3e794e81..24e18147 100644 --- a/collections/LinkedListFeatures.java +++ b/collections/LinkedListFeatures.java @@ -1,7 +1,7 @@ // collections/LinkedListFeatures.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import typeinfo.pets.*; import java.util.*; diff --git a/collections/ListFeatures.java b/collections/ListFeatures.java index 68c32664..eeb5ddb8 100644 --- a/collections/ListFeatures.java +++ b/collections/ListFeatures.java @@ -1,7 +1,7 @@ // collections/ListFeatures.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import typeinfo.pets.*; import java.util.*; diff --git a/collections/ListIteration.java b/collections/ListIteration.java index 0754768f..57d52fed 100644 --- a/collections/ListIteration.java +++ b/collections/ListIteration.java @@ -1,7 +1,7 @@ // collections/ListIteration.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import typeinfo.pets.*; import java.util.*; diff --git a/collections/MapOfList.java b/collections/MapOfList.java index d6ca5e29..35ed1c2d 100644 --- a/collections/MapOfList.java +++ b/collections/MapOfList.java @@ -1,7 +1,7 @@ // collections/MapOfList.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java collections.MapOfList} package collections; import typeinfo.pets.*; diff --git a/collections/ModifyingArraysAsList.java b/collections/ModifyingArraysAsList.java index 9c3fd86e..3d4d1d5b 100644 --- a/collections/ModifyingArraysAsList.java +++ b/collections/ModifyingArraysAsList.java @@ -1,7 +1,7 @@ // collections/ModifyingArraysAsList.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ModifyingArraysAsList { diff --git a/collections/MultiIterableClass.java b/collections/MultiIterableClass.java index 00f4245f..2a2a6c56 100644 --- a/collections/MultiIterableClass.java +++ b/collections/MultiIterableClass.java @@ -1,7 +1,7 @@ // collections/MultiIterableClass.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Adding several Adapter Methods import java.util.*; diff --git a/collections/NonCollectionSequence.java b/collections/NonCollectionSequence.java index 5ca490cf..56417459 100644 --- a/collections/NonCollectionSequence.java +++ b/collections/NonCollectionSequence.java @@ -1,7 +1,7 @@ // collections/NonCollectionSequence.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import typeinfo.pets.*; import java.util.*; diff --git a/collections/PetMap.java b/collections/PetMap.java index e229ff8b..ec160585 100644 --- a/collections/PetMap.java +++ b/collections/PetMap.java @@ -1,7 +1,7 @@ // collections/PetMap.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import typeinfo.pets.*; import java.util.*; diff --git a/collections/PrintingCollections.java b/collections/PrintingCollections.java index c5d75af4..7c8b3c73 100644 --- a/collections/PrintingCollections.java +++ b/collections/PrintingCollections.java @@ -1,7 +1,7 @@ // collections/PrintingCollections.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Collections print themselves automatically import java.util.*; diff --git a/collections/PriorityQueueDemo.java b/collections/PriorityQueueDemo.java index 3527e97a..abc6f0f3 100644 --- a/collections/PriorityQueueDemo.java +++ b/collections/PriorityQueueDemo.java @@ -1,7 +1,7 @@ // collections/PriorityQueueDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class PriorityQueueDemo { diff --git a/collections/QueueDemo.java b/collections/QueueDemo.java index 066decc2..d1155d6c 100644 --- a/collections/QueueDemo.java +++ b/collections/QueueDemo.java @@ -1,7 +1,7 @@ // collections/QueueDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Upcasting to a Queue from a LinkedList import java.util.*; diff --git a/collections/SetOfInteger.java b/collections/SetOfInteger.java index 2135fea7..b16b3991 100644 --- a/collections/SetOfInteger.java +++ b/collections/SetOfInteger.java @@ -1,7 +1,7 @@ // collections/SetOfInteger.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class SetOfInteger { diff --git a/collections/SetOfString.java b/collections/SetOfString.java index 4d0201b8..1407bbd6 100644 --- a/collections/SetOfString.java +++ b/collections/SetOfString.java @@ -1,7 +1,7 @@ // collections/SetOfString.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class SetOfString { diff --git a/collections/SetOperations.java b/collections/SetOperations.java index 72a2f98c..492b48a0 100644 --- a/collections/SetOperations.java +++ b/collections/SetOperations.java @@ -1,7 +1,7 @@ // collections/SetOperations.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class SetOperations { diff --git a/collections/SimpleCollection.java b/collections/SimpleCollection.java index 8fb2347e..758584a8 100644 --- a/collections/SimpleCollection.java +++ b/collections/SimpleCollection.java @@ -1,7 +1,7 @@ // collections/SimpleCollection.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class SimpleCollection { diff --git a/collections/SimpleIteration.java b/collections/SimpleIteration.java index 071339ca..814b4e57 100644 --- a/collections/SimpleIteration.java +++ b/collections/SimpleIteration.java @@ -1,7 +1,7 @@ // collections/SimpleIteration.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import typeinfo.pets.*; import java.util.*; diff --git a/collections/SortedSetOfString.java b/collections/SortedSetOfString.java index 139a7469..3f885ff7 100644 --- a/collections/SortedSetOfString.java +++ b/collections/SortedSetOfString.java @@ -1,7 +1,7 @@ // collections/SortedSetOfString.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class SortedSetOfString { diff --git a/collections/StackCollision.java b/collections/StackCollision.java index b6d0986a..96863cf0 100644 --- a/collections/StackCollision.java +++ b/collections/StackCollision.java @@ -1,7 +1,7 @@ // collections/StackCollision.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class StackCollision { public static void main(String[] args) { diff --git a/collections/StackTest.java b/collections/StackTest.java index 86c308ec..5ca489e9 100644 --- a/collections/StackTest.java +++ b/collections/StackTest.java @@ -1,7 +1,7 @@ // collections/StackTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class StackTest { diff --git a/collections/StackTest2.java b/collections/StackTest2.java index f36c62b1..d8a15a94 100644 --- a/collections/StackTest2.java +++ b/collections/StackTest2.java @@ -1,7 +1,7 @@ // collections/StackTest2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import onjava.*; public class StackTest2 { diff --git a/collections/Statistics.java b/collections/Statistics.java index 862b17d0..c22ed96c 100644 --- a/collections/Statistics.java +++ b/collections/Statistics.java @@ -1,7 +1,7 @@ // collections/Statistics.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Simple demonstration of HashMap import java.util.*; diff --git a/collections/UniqueWords.java b/collections/UniqueWords.java index f8c3b096..3713c5cd 100644 --- a/collections/UniqueWords.java +++ b/collections/UniqueWords.java @@ -1,7 +1,7 @@ // collections/UniqueWords.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.nio.file.*; diff --git a/collections/UniqueWordsAlphabetic.java b/collections/UniqueWordsAlphabetic.java index 584fa650..bc6ffcf3 100644 --- a/collections/UniqueWordsAlphabetic.java +++ b/collections/UniqueWordsAlphabetic.java @@ -1,7 +1,7 @@ // collections/UniqueWordsAlphabetic.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Producing an alphabetic listing import java.util.*; import java.nio.file.*; diff --git a/com/mindviewinc/simple/List.java b/com/mindviewinc/simple/List.java index 8f9d5787..6e59515e 100644 --- a/com/mindviewinc/simple/List.java +++ b/com/mindviewinc/simple/List.java @@ -1,7 +1,7 @@ // com/mindviewinc/simple/List.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating a package package com.mindviewinc.simple; diff --git a/com/mindviewinc/simple/Vector.java b/com/mindviewinc/simple/Vector.java index 086b1339..a2fda6ee 100644 --- a/com/mindviewinc/simple/Vector.java +++ b/com/mindviewinc/simple/Vector.java @@ -1,7 +1,7 @@ // com/mindviewinc/simple/Vector.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating a package package com.mindviewinc.simple; diff --git a/compression/GZIPcompress.java b/compression/GZIPcompress.java index 7ab5c376..170a8b9e 100644 --- a/compression/GZIPcompress.java +++ b/compression/GZIPcompress.java @@ -1,7 +1,7 @@ // compression/GZIPcompress.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java GZIPcompress GZIPcompress.java} // {ValidateByHand} import java.util.zip.*; diff --git a/compression/ZipCompress.java b/compression/ZipCompress.java index 86631bbe..86927f9c 100644 --- a/compression/ZipCompress.java +++ b/compression/ZipCompress.java @@ -1,7 +1,7 @@ // compression/ZipCompress.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Uses Zip compression to compress any // number of files given on the command line // {java ZipCompress ZipCompress.java} diff --git a/control/BreakAndContinue.java b/control/BreakAndContinue.java index 82a369cc..80a42c2f 100644 --- a/control/BreakAndContinue.java +++ b/control/BreakAndContinue.java @@ -1,7 +1,7 @@ // control/BreakAndContinue.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Break and continue keywords import static onjava.Range.*; diff --git a/control/CommaOperator.java b/control/CommaOperator.java index 81163733..18d2caee 100644 --- a/control/CommaOperator.java +++ b/control/CommaOperator.java @@ -1,7 +1,7 @@ // control/CommaOperator.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class CommaOperator { public static void main(String[] args) { diff --git a/control/ForInFloat.java b/control/ForInFloat.java index 3288b3fe..8b3b4591 100644 --- a/control/ForInFloat.java +++ b/control/ForInFloat.java @@ -1,7 +1,7 @@ // control/ForInFloat.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ForInFloat { diff --git a/control/ForInInt.java b/control/ForInInt.java index bca55ebf..b28ef53e 100644 --- a/control/ForInInt.java +++ b/control/ForInInt.java @@ -1,7 +1,7 @@ // control/ForInInt.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import static onjava.Range.*; public class ForInInt { diff --git a/control/ForInString.java b/control/ForInString.java index 41d4de81..0ebbbb5a 100644 --- a/control/ForInString.java +++ b/control/ForInString.java @@ -1,7 +1,7 @@ // control/ForInString.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class ForInString { public static void main(String[] args) { diff --git a/control/IfElse.java b/control/IfElse.java index 2aaa3bb1..279f8f5b 100644 --- a/control/IfElse.java +++ b/control/IfElse.java @@ -1,7 +1,7 @@ // control/IfElse.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class IfElse { static int result = 0; diff --git a/control/LabeledFor.java b/control/LabeledFor.java index 4ce2ca01..5f863c3b 100644 --- a/control/LabeledFor.java +++ b/control/LabeledFor.java @@ -1,7 +1,7 @@ // control/LabeledFor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // For loops with "labeled break" and "labeled continue." public class LabeledFor { diff --git a/control/LabeledWhile.java b/control/LabeledWhile.java index 4ebb27c5..4cc4f86b 100644 --- a/control/LabeledWhile.java +++ b/control/LabeledWhile.java @@ -1,7 +1,7 @@ // control/LabeledWhile.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // "While" with "labeled break" and "labeled continue." public class LabeledWhile { diff --git a/control/ListCharacters.java b/control/ListCharacters.java index 281c9e4e..3e08f5e9 100644 --- a/control/ListCharacters.java +++ b/control/ListCharacters.java @@ -1,7 +1,7 @@ // control/ListCharacters.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // List all the lowercase ASCII letters public class ListCharacters { diff --git a/control/RandomBounds.java b/control/RandomBounds.java index 3ea7e966..cb3b47b4 100644 --- a/control/RandomBounds.java +++ b/control/RandomBounds.java @@ -1,7 +1,7 @@ // control/RandomBounds.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Does Math.random() produce 0.0 and 1.0? // {java RandomBounds lower} import onjava.*; diff --git a/control/StringSwitch.java b/control/StringSwitch.java index 24772ca9..7771d017 100644 --- a/control/StringSwitch.java +++ b/control/StringSwitch.java @@ -1,7 +1,7 @@ // control/StringSwitch.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class StringSwitch { public static void main(String[] args) { diff --git a/control/TestWithReturn.java b/control/TestWithReturn.java index 33c61893..e6c609ea 100644 --- a/control/TestWithReturn.java +++ b/control/TestWithReturn.java @@ -1,7 +1,7 @@ // control/TestWithReturn.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class TestWithReturn { static int test(int testval, int target) { diff --git a/control/TrueFalse.java b/control/TrueFalse.java index 9321ef1a..89097229 100644 --- a/control/TrueFalse.java +++ b/control/TrueFalse.java @@ -1,7 +1,7 @@ // control/TrueFalse.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class TrueFalse { public static void main(String[] args) { diff --git a/control/VowelsAndConsonants.java b/control/VowelsAndConsonants.java index fbe9a631..2272bc10 100644 --- a/control/VowelsAndConsonants.java +++ b/control/VowelsAndConsonants.java @@ -1,7 +1,7 @@ // control/VowelsAndConsonants.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates the switch statement import java.util.*; diff --git a/control/WhileTest.java b/control/WhileTest.java index a85418d7..b54450b0 100644 --- a/control/WhileTest.java +++ b/control/WhileTest.java @@ -1,7 +1,7 @@ // control/WhileTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates the while loop public class WhileTest { diff --git a/enums/AlarmPoints.java b/enums/AlarmPoints.java index 84e95d3d..b906a9cc 100644 --- a/enums/AlarmPoints.java +++ b/enums/AlarmPoints.java @@ -1,7 +1,7 @@ // enums/AlarmPoints.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package enums; public enum AlarmPoints { STAIR1, STAIR2, LOBBY, OFFICE1, OFFICE2, OFFICE3, diff --git a/enums/BigEnumSet.java b/enums/BigEnumSet.java index 4aabae13..565d9937 100644 --- a/enums/BigEnumSet.java +++ b/enums/BigEnumSet.java @@ -1,7 +1,7 @@ // enums/BigEnumSet.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class BigEnumSet { diff --git a/enums/Burrito.java b/enums/Burrito.java index aff22b78..25e1ac64 100644 --- a/enums/Burrito.java +++ b/enums/Burrito.java @@ -1,7 +1,7 @@ // enums/Burrito.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java enums.Burrito} package enums; import static enums.Spiciness.*; diff --git a/enums/CarWash.java b/enums/CarWash.java index 47c9f9e3..bb478cf1 100644 --- a/enums/CarWash.java +++ b/enums/CarWash.java @@ -1,7 +1,7 @@ // enums/CarWash.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class CarWash { diff --git a/enums/Competitor.java b/enums/Competitor.java index 234008d4..e25cadbb 100644 --- a/enums/Competitor.java +++ b/enums/Competitor.java @@ -1,7 +1,7 @@ // enums/Competitor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Switching one enum on another package enums; diff --git a/enums/ConstantSpecificMethod.java b/enums/ConstantSpecificMethod.java index 0946337b..80f9c12f 100644 --- a/enums/ConstantSpecificMethod.java +++ b/enums/ConstantSpecificMethod.java @@ -1,7 +1,7 @@ // enums/ConstantSpecificMethod.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.text.*; diff --git a/enums/EnumClass.java b/enums/EnumClass.java index e44203d3..c92bab20 100644 --- a/enums/EnumClass.java +++ b/enums/EnumClass.java @@ -1,7 +1,7 @@ // enums/EnumClass.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Capabilities of the Enum class enum Shrubbery { GROUND, CRAWLING, HANGING } diff --git a/enums/EnumMaps.java b/enums/EnumMaps.java index 3698f85f..b041bbf7 100644 --- a/enums/EnumMaps.java +++ b/enums/EnumMaps.java @@ -1,7 +1,7 @@ // enums/EnumMaps.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Basics of EnumMaps // {java enums.EnumMaps} package enums; diff --git a/enums/EnumSets.java b/enums/EnumSets.java index f394b1db..58cd7184 100644 --- a/enums/EnumSets.java +++ b/enums/EnumSets.java @@ -1,7 +1,7 @@ // enums/EnumSets.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Operations on EnumSets // {java enums.EnumSets} package enums; diff --git a/enums/Input.java b/enums/Input.java index 56dc2dc9..db6f52cc 100644 --- a/enums/Input.java +++ b/enums/Input.java @@ -1,7 +1,7 @@ // enums/Input.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public enum Input { diff --git a/enums/NonEnum.java b/enums/NonEnum.java index ddfcc0ad..4011afca 100644 --- a/enums/NonEnum.java +++ b/enums/NonEnum.java @@ -1,7 +1,7 @@ // enums/NonEnum.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class NonEnum { public static void main(String[] args) { diff --git a/enums/NotClasses.java b/enums/NotClasses.java index 810e6d05..049704ab 100644 --- a/enums/NotClasses.java +++ b/enums/NotClasses.java @@ -1,7 +1,7 @@ // enums/NotClasses.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {javap -c LikeClasses} enum LikeClasses { diff --git a/enums/Outcome.java b/enums/Outcome.java index 5255ee6e..4d8448d9 100644 --- a/enums/Outcome.java +++ b/enums/Outcome.java @@ -1,6 +1,6 @@ // enums/Outcome.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package enums; public enum Outcome { WIN, LOSE, DRAW } diff --git a/enums/OverrideConstantSpecific.java b/enums/OverrideConstantSpecific.java index d3a9824d..62f4d2a1 100644 --- a/enums/OverrideConstantSpecific.java +++ b/enums/OverrideConstantSpecific.java @@ -1,7 +1,7 @@ // enums/OverrideConstantSpecific.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public enum OverrideConstantSpecific { NUT, BOLT, diff --git a/enums/OzWitch.java b/enums/OzWitch.java index 9d56b7fb..b7df47ad 100644 --- a/enums/OzWitch.java +++ b/enums/OzWitch.java @@ -1,7 +1,7 @@ // enums/OzWitch.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The witches in the land of Oz public enum OzWitch { diff --git a/enums/PostOffice.java b/enums/PostOffice.java index b975b904..6be64931 100644 --- a/enums/PostOffice.java +++ b/enums/PostOffice.java @@ -1,7 +1,7 @@ // enums/PostOffice.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Modeling a post office import java.util.*; import onjava.*; diff --git a/enums/RandomTest.java b/enums/RandomTest.java index aae5caba..874be316 100644 --- a/enums/RandomTest.java +++ b/enums/RandomTest.java @@ -1,7 +1,7 @@ // enums/RandomTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import onjava.*; enum Activity { SITTING, LYING, STANDING, HOPPING, diff --git a/enums/Reflection.java b/enums/Reflection.java index 88601c96..8e6b9307 100644 --- a/enums/Reflection.java +++ b/enums/Reflection.java @@ -1,7 +1,7 @@ // enums/Reflection.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Analyzing enums using reflection import java.lang.reflect.*; import java.util.*; diff --git a/enums/RoShamBo.java b/enums/RoShamBo.java index 168b3202..ed8d4782 100644 --- a/enums/RoShamBo.java +++ b/enums/RoShamBo.java @@ -1,7 +1,7 @@ // enums/RoShamBo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Common tools for RoShamBo examples package enums; import onjava.*; diff --git a/enums/RoShamBo1.java b/enums/RoShamBo1.java index 4dc1c3d5..bb141c81 100644 --- a/enums/RoShamBo1.java +++ b/enums/RoShamBo1.java @@ -1,7 +1,7 @@ // enums/RoShamBo1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstration of multiple dispatching // {java enums.RoShamBo1} package enums; diff --git a/enums/RoShamBo2.java b/enums/RoShamBo2.java index 0da102e4..43205176 100644 --- a/enums/RoShamBo2.java +++ b/enums/RoShamBo2.java @@ -1,7 +1,7 @@ // enums/RoShamBo2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Switching one enum on another // {java enums.RoShamBo2} package enums; diff --git a/enums/RoShamBo3.java b/enums/RoShamBo3.java index c502f65f..1a25b906 100644 --- a/enums/RoShamBo3.java +++ b/enums/RoShamBo3.java @@ -1,7 +1,7 @@ // enums/RoShamBo3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using constant-specific methods // {java enums.RoShamBo3} package enums; diff --git a/enums/RoShamBo4.java b/enums/RoShamBo4.java index 60d9f25c..e76ddfef 100644 --- a/enums/RoShamBo4.java +++ b/enums/RoShamBo4.java @@ -1,7 +1,7 @@ // enums/RoShamBo4.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java enums.RoShamBo4} package enums; diff --git a/enums/RoShamBo5.java b/enums/RoShamBo5.java index 2206d181..2d5114f7 100644 --- a/enums/RoShamBo5.java +++ b/enums/RoShamBo5.java @@ -1,7 +1,7 @@ // enums/RoShamBo5.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Multiple dispatching using an EnumMap of EnumMaps // {java enums.RoShamBo5} package enums; diff --git a/enums/RoShamBo6.java b/enums/RoShamBo6.java index a74784c0..99c4ec8b 100644 --- a/enums/RoShamBo6.java +++ b/enums/RoShamBo6.java @@ -1,7 +1,7 @@ // enums/RoShamBo6.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Enums using "tables" instead of multiple dispatch // {java enums.RoShamBo6} package enums; diff --git a/enums/SecurityCategory.java b/enums/SecurityCategory.java index 469af033..2ba65569 100644 --- a/enums/SecurityCategory.java +++ b/enums/SecurityCategory.java @@ -1,7 +1,7 @@ // enums/SecurityCategory.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // More succinct subcategorization of enums import onjava.*; diff --git a/enums/SpaceShip.java b/enums/SpaceShip.java index 9ff2e3b7..22cd8f8b 100644 --- a/enums/SpaceShip.java +++ b/enums/SpaceShip.java @@ -1,7 +1,7 @@ // enums/SpaceShip.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; public enum SpaceShip { diff --git a/enums/Spiciness.java b/enums/Spiciness.java index 5eedaf3e..43aefdf2 100644 --- a/enums/Spiciness.java +++ b/enums/Spiciness.java @@ -1,7 +1,7 @@ // enums/Spiciness.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package enums; public enum Spiciness { diff --git a/enums/TrafficLight.java b/enums/TrafficLight.java index f315f8d2..4ca4813d 100644 --- a/enums/TrafficLight.java +++ b/enums/TrafficLight.java @@ -1,7 +1,7 @@ // enums/TrafficLight.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Enums in switch statements // Define an enum type: diff --git a/enums/UpcastEnum.java b/enums/UpcastEnum.java index 85745cec..d5cca2c9 100644 --- a/enums/UpcastEnum.java +++ b/enums/UpcastEnum.java @@ -1,7 +1,7 @@ // enums/UpcastEnum.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // No values() method if you upcast an enum enum Search { HITHER, YON } diff --git a/enums/VendingMachine.java b/enums/VendingMachine.java index d78fde2e..db27a45a 100644 --- a/enums/VendingMachine.java +++ b/enums/VendingMachine.java @@ -1,7 +1,7 @@ // enums/VendingMachine.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java VendingMachine VendingMachineInput.txt} import java.util.*; import java.io.IOException; diff --git a/enums/cartoons/EnumImplementation.java b/enums/cartoons/EnumImplementation.java index 40cd6cfb..15a7c24a 100644 --- a/enums/cartoons/EnumImplementation.java +++ b/enums/cartoons/EnumImplementation.java @@ -1,7 +1,7 @@ // enums/cartoons/EnumImplementation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // An enum can implement an interface // {java enums.cartoons.EnumImplementation} package enums.cartoons; diff --git a/enums/menu/Course.java b/enums/menu/Course.java index ed5ae1d9..ea97f62d 100644 --- a/enums/menu/Course.java +++ b/enums/menu/Course.java @@ -1,7 +1,7 @@ // enums/menu/Course.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package enums.menu; import onjava.*; diff --git a/enums/menu/Food.java b/enums/menu/Food.java index 4c226678..49db3867 100644 --- a/enums/menu/Food.java +++ b/enums/menu/Food.java @@ -1,7 +1,7 @@ // enums/menu/Food.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Subcategorization of enums within interfaces package enums.menu; diff --git a/enums/menu/Meal.java b/enums/menu/Meal.java index 2baab82d..efb3b40b 100644 --- a/enums/menu/Meal.java +++ b/enums/menu/Meal.java @@ -1,7 +1,7 @@ // enums/menu/Meal.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java enums.menu.Meal} package enums.menu; diff --git a/enums/menu/Meal2.java b/enums/menu/Meal2.java index 52737655..2214a94c 100644 --- a/enums/menu/Meal2.java +++ b/enums/menu/Meal2.java @@ -1,7 +1,7 @@ // enums/menu/Meal2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java enums.menu.Meal2} package enums.menu; import onjava.*; diff --git a/enums/menu/TypeOfFood.java b/enums/menu/TypeOfFood.java index c4017559..6e5ba899 100644 --- a/enums/menu/TypeOfFood.java +++ b/enums/menu/TypeOfFood.java @@ -1,7 +1,7 @@ // enums/menu/TypeOfFood.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java enums.menu.TypeOfFood} package enums.menu; import static enums.menu.Food.*; diff --git a/exceptions/AlwaysFinally.java b/exceptions/AlwaysFinally.java index 29ab2b7e..16f2333e 100644 --- a/exceptions/AlwaysFinally.java +++ b/exceptions/AlwaysFinally.java @@ -1,7 +1,7 @@ // exceptions/AlwaysFinally.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Finally is always executed class FourException extends Exception {} diff --git a/exceptions/AutoCloseableDetails.java b/exceptions/AutoCloseableDetails.java index af498150..76c67af6 100644 --- a/exceptions/AutoCloseableDetails.java +++ b/exceptions/AutoCloseableDetails.java @@ -1,7 +1,7 @@ // exceptions/AutoCloseableDetails.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Reporter implements AutoCloseable { String name = getClass().getSimpleName(); diff --git a/exceptions/BodyException.java b/exceptions/BodyException.java index 7b0fce9e..38679bb2 100644 --- a/exceptions/BodyException.java +++ b/exceptions/BodyException.java @@ -1,7 +1,7 @@ // exceptions/BodyException.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Third extends Reporter {} diff --git a/exceptions/Cleanup.java b/exceptions/Cleanup.java index 43be678f..fe29d6b1 100644 --- a/exceptions/Cleanup.java +++ b/exceptions/Cleanup.java @@ -1,7 +1,7 @@ // exceptions/Cleanup.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Guaranteeing proper cleanup of a resource public class Cleanup { diff --git a/exceptions/CleanupIdiom.java b/exceptions/CleanupIdiom.java index 2728d045..75613e48 100644 --- a/exceptions/CleanupIdiom.java +++ b/exceptions/CleanupIdiom.java @@ -1,7 +1,7 @@ // exceptions/CleanupIdiom.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Disposable objects must be followed by a try-finally class NeedsCleanup { // Construction can't fail diff --git a/exceptions/CloseExceptions.java b/exceptions/CloseExceptions.java index 6c72df2b..638aa0cd 100644 --- a/exceptions/CloseExceptions.java +++ b/exceptions/CloseExceptions.java @@ -1,7 +1,7 @@ // exceptions/CloseExceptions.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class CloseException extends Exception {} diff --git a/exceptions/ConstructorException.java b/exceptions/ConstructorException.java index 4a56f0d1..09ec36fc 100644 --- a/exceptions/ConstructorException.java +++ b/exceptions/ConstructorException.java @@ -1,7 +1,7 @@ // exceptions/ConstructorException.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class CE extends Exception {} diff --git a/exceptions/DynamicFields.java b/exceptions/DynamicFields.java index 1e115500..0aa7056d 100644 --- a/exceptions/DynamicFields.java +++ b/exceptions/DynamicFields.java @@ -1,7 +1,7 @@ // exceptions/DynamicFields.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A Class that dynamically adds fields to itself to // demonstrate exception chaining diff --git a/exceptions/ExceptionMethods.java b/exceptions/ExceptionMethods.java index ac4c6261..b8067424 100644 --- a/exceptions/ExceptionMethods.java +++ b/exceptions/ExceptionMethods.java @@ -1,7 +1,7 @@ // exceptions/ExceptionMethods.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrating the Exception Methods public class ExceptionMethods { diff --git a/exceptions/ExceptionSilencer.java b/exceptions/ExceptionSilencer.java index d65a3b5a..d0e8df61 100644 --- a/exceptions/ExceptionSilencer.java +++ b/exceptions/ExceptionSilencer.java @@ -1,7 +1,7 @@ // exceptions/ExceptionSilencer.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class ExceptionSilencer { public static void main(String[] args) { diff --git a/exceptions/ExtraFeatures.java b/exceptions/ExtraFeatures.java index 1dc318f0..04c0f59b 100644 --- a/exceptions/ExtraFeatures.java +++ b/exceptions/ExtraFeatures.java @@ -1,7 +1,7 @@ // exceptions/ExtraFeatures.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Further embellishment of exception classes class MyException2 extends Exception { diff --git a/exceptions/FinallyWorks.java b/exceptions/FinallyWorks.java index 9856af23..9c3a6c23 100644 --- a/exceptions/FinallyWorks.java +++ b/exceptions/FinallyWorks.java @@ -1,7 +1,7 @@ // exceptions/FinallyWorks.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The finally clause is always executed class ThreeException extends Exception {} diff --git a/exceptions/FullConstructors.java b/exceptions/FullConstructors.java index 2bff925a..9936573b 100644 --- a/exceptions/FullConstructors.java +++ b/exceptions/FullConstructors.java @@ -1,7 +1,7 @@ // exceptions/FullConstructors.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class MyException extends Exception { public MyException() {} diff --git a/exceptions/Human.java b/exceptions/Human.java index a382a908..b989c268 100644 --- a/exceptions/Human.java +++ b/exceptions/Human.java @@ -1,7 +1,7 @@ // exceptions/Human.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Catching exception hierarchies class Annoyance extends Exception {} diff --git a/exceptions/InheritingExceptions.java b/exceptions/InheritingExceptions.java index 2e853411..55a7a251 100644 --- a/exceptions/InheritingExceptions.java +++ b/exceptions/InheritingExceptions.java @@ -1,7 +1,7 @@ // exceptions/InheritingExceptions.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating your own exceptions class SimpleException extends Exception {} diff --git a/exceptions/InputFile.java b/exceptions/InputFile.java index 7522d848..a9fba8de 100644 --- a/exceptions/InputFile.java +++ b/exceptions/InputFile.java @@ -1,7 +1,7 @@ // exceptions/InputFile.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Paying attention to exceptions in constructors import java.io.*; diff --git a/exceptions/InputFile2.java b/exceptions/InputFile2.java index 2544da60..834547cc 100644 --- a/exceptions/InputFile2.java +++ b/exceptions/InputFile2.java @@ -1,7 +1,7 @@ // exceptions/InputFile2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; import java.nio.file.*; import java.util.stream.*; diff --git a/exceptions/LoggingExceptions.java b/exceptions/LoggingExceptions.java index 6797400f..d279388f 100644 --- a/exceptions/LoggingExceptions.java +++ b/exceptions/LoggingExceptions.java @@ -1,7 +1,7 @@ // exceptions/LoggingExceptions.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // An exception that reports through a Logger // {ErrorOutputExpected} import java.util.logging.*; diff --git a/exceptions/LoggingExceptions2.java b/exceptions/LoggingExceptions2.java index ab99446c..586622e7 100644 --- a/exceptions/LoggingExceptions2.java +++ b/exceptions/LoggingExceptions2.java @@ -1,7 +1,7 @@ // exceptions/LoggingExceptions2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Logging caught exceptions // {ErrorOutputExpected} import java.util.logging.*; diff --git a/exceptions/LostMessage.java b/exceptions/LostMessage.java index e4876e67..145cc85f 100644 --- a/exceptions/LostMessage.java +++ b/exceptions/LostMessage.java @@ -1,7 +1,7 @@ // exceptions/LostMessage.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // How an exception can be lost class VeryImportantException extends Exception { diff --git a/exceptions/MainException.java b/exceptions/MainException.java index d42e01a8..7749aa2a 100644 --- a/exceptions/MainException.java +++ b/exceptions/MainException.java @@ -1,7 +1,7 @@ // exceptions/MainException.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.nio.file.*; diff --git a/exceptions/MessyExceptions.java b/exceptions/MessyExceptions.java index a672556c..25c0648e 100644 --- a/exceptions/MessyExceptions.java +++ b/exceptions/MessyExceptions.java @@ -1,7 +1,7 @@ // exceptions/MessyExceptions.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; public class MessyExceptions { diff --git a/exceptions/MultiCatch.java b/exceptions/MultiCatch.java index 74e3667b..76405b43 100644 --- a/exceptions/MultiCatch.java +++ b/exceptions/MultiCatch.java @@ -1,7 +1,7 @@ // exceptions/MultiCatch.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class MultiCatch { void x() throws Except1, Except2, Except3, Except4 {} diff --git a/exceptions/MultiCatch2.java b/exceptions/MultiCatch2.java index b997d48e..8e491405 100644 --- a/exceptions/MultiCatch2.java +++ b/exceptions/MultiCatch2.java @@ -1,7 +1,7 @@ // exceptions/MultiCatch2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class MultiCatch2 { void x() throws Except1, Except2, Except3, Except4 {} diff --git a/exceptions/MultipleReturns.java b/exceptions/MultipleReturns.java index 0b201f72..cea55355 100644 --- a/exceptions/MultipleReturns.java +++ b/exceptions/MultipleReturns.java @@ -1,7 +1,7 @@ // exceptions/MultipleReturns.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class MultipleReturns { public static void f(int i) { diff --git a/exceptions/NeverCaught.java b/exceptions/NeverCaught.java index 974ccecd..96d2129f 100644 --- a/exceptions/NeverCaught.java +++ b/exceptions/NeverCaught.java @@ -1,7 +1,7 @@ // exceptions/NeverCaught.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Ignoring RuntimeExceptions // {ThrowsException} diff --git a/exceptions/OnOffException1.java b/exceptions/OnOffException1.java index e459aad2..9ff3e1af 100644 --- a/exceptions/OnOffException1.java +++ b/exceptions/OnOffException1.java @@ -1,5 +1,5 @@ // exceptions/OnOffException1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class OnOffException1 extends Exception {} diff --git a/exceptions/OnOffException2.java b/exceptions/OnOffException2.java index 22c0b6af..cc76b45b 100644 --- a/exceptions/OnOffException2.java +++ b/exceptions/OnOffException2.java @@ -1,5 +1,5 @@ // exceptions/OnOffException2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class OnOffException2 extends Exception {} diff --git a/exceptions/OnOffSwitch.java b/exceptions/OnOffSwitch.java index cee3501b..756da148 100644 --- a/exceptions/OnOffSwitch.java +++ b/exceptions/OnOffSwitch.java @@ -1,7 +1,7 @@ // exceptions/OnOffSwitch.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Why use finally? public class OnOffSwitch { diff --git a/exceptions/PreciseRethrow.java b/exceptions/PreciseRethrow.java index 81f0a1cc..c5164e0e 100644 --- a/exceptions/PreciseRethrow.java +++ b/exceptions/PreciseRethrow.java @@ -1,7 +1,7 @@ // exceptions/PreciseRethrow.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class BaseException extends Exception {} class DerivedException extends BaseException {} diff --git a/exceptions/RethrowNew.java b/exceptions/RethrowNew.java index 8e327ffb..fc174920 100644 --- a/exceptions/RethrowNew.java +++ b/exceptions/RethrowNew.java @@ -1,7 +1,7 @@ // exceptions/RethrowNew.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Rethrow a different object from the one you caught class OneException extends Exception { diff --git a/exceptions/Rethrowing.java b/exceptions/Rethrowing.java index 734a6180..869dc924 100644 --- a/exceptions/Rethrowing.java +++ b/exceptions/Rethrowing.java @@ -1,7 +1,7 @@ // exceptions/Rethrowing.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrating fillInStackTrace() public class Rethrowing { diff --git a/exceptions/SameHandler.java b/exceptions/SameHandler.java index 9b319bfa..230083d6 100644 --- a/exceptions/SameHandler.java +++ b/exceptions/SameHandler.java @@ -1,7 +1,7 @@ // exceptions/SameHandler.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class EBase1 extends Exception {} class Except1 extends EBase1 {} diff --git a/exceptions/StormyInning.java b/exceptions/StormyInning.java index 6a792bd2..c1db5222 100644 --- a/exceptions/StormyInning.java +++ b/exceptions/StormyInning.java @@ -1,7 +1,7 @@ // exceptions/StormyInning.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Overridden methods can throw only the exceptions // specified in their base-class versions, or exceptions // derived from the base-class exceptions diff --git a/exceptions/StreamsAreAutoCloseable.java b/exceptions/StreamsAreAutoCloseable.java index 0fc3617c..8c69144e 100644 --- a/exceptions/StreamsAreAutoCloseable.java +++ b/exceptions/StreamsAreAutoCloseable.java @@ -1,7 +1,7 @@ // exceptions/StreamsAreAutoCloseable.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; import java.nio.file.*; import java.util.stream.*; diff --git a/exceptions/Switch.java b/exceptions/Switch.java index ead8ba04..d525ac3c 100644 --- a/exceptions/Switch.java +++ b/exceptions/Switch.java @@ -1,7 +1,7 @@ // exceptions/Switch.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Switch { private boolean state = false; diff --git a/exceptions/TryAnything.java b/exceptions/TryAnything.java index bef67573..edf0d1e6 100644 --- a/exceptions/TryAnything.java +++ b/exceptions/TryAnything.java @@ -1,7 +1,7 @@ // exceptions/TryAnything.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) class Anything {} diff --git a/exceptions/TryWithResources.java b/exceptions/TryWithResources.java index 367b1626..776ebe38 100644 --- a/exceptions/TryWithResources.java +++ b/exceptions/TryWithResources.java @@ -1,7 +1,7 @@ // exceptions/TryWithResources.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; public class TryWithResources { diff --git a/exceptions/TurnOffChecking.java b/exceptions/TurnOffChecking.java index 7f916aee..4ad43fb3 100644 --- a/exceptions/TurnOffChecking.java +++ b/exceptions/TurnOffChecking.java @@ -1,7 +1,7 @@ // exceptions/TurnOffChecking.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // "Turning off" Checked exceptions import java.io.*; diff --git a/exceptions/WhoCalled.java b/exceptions/WhoCalled.java index dbe1ff7c..a3d18973 100644 --- a/exceptions/WhoCalled.java +++ b/exceptions/WhoCalled.java @@ -1,7 +1,7 @@ // exceptions/WhoCalled.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Programmatic access to stack trace information public class WhoCalled { diff --git a/exceptions/WithFinally.java b/exceptions/WithFinally.java index 40bb5c27..e699d4f7 100644 --- a/exceptions/WithFinally.java +++ b/exceptions/WithFinally.java @@ -1,7 +1,7 @@ // exceptions/WithFinally.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Finally Guarantees cleanup public class WithFinally { diff --git a/files/AddAndSubtractPaths.java b/files/AddAndSubtractPaths.java index 55506f69..c8587fcd 100644 --- a/files/AddAndSubtractPaths.java +++ b/files/AddAndSubtractPaths.java @@ -1,7 +1,7 @@ // files/AddAndSubtractPaths.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.nio.file.*; import java.io.IOException; diff --git a/files/Directories.java b/files/Directories.java index 62724c3e..2b26fa60 100644 --- a/files/Directories.java +++ b/files/Directories.java @@ -1,7 +1,7 @@ // files/Directories.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.nio.file.*; import onjava.RmDir; diff --git a/files/File_System.java b/files/File_System.java index 24014ae2..b8cf516a 100644 --- a/files/File_System.java +++ b/files/File_System.java @@ -1,7 +1,7 @@ // files/File_System.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.nio.file.*; public class File_System { diff --git a/files/Find.java b/files/Find.java index 35d0b4d3..57b0d8d8 100644 --- a/files/Find.java +++ b/files/Find.java @@ -1,7 +1,7 @@ // files/Find.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.nio.file.*; public class Find { diff --git a/files/ListOfLines.java b/files/ListOfLines.java index 21c4ebc0..d3f8f559 100644 --- a/files/ListOfLines.java +++ b/files/ListOfLines.java @@ -1,7 +1,7 @@ // files/ListOfLines.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.nio.file.*; diff --git a/files/PartsOfPaths.java b/files/PartsOfPaths.java index 3122a05d..f7ba7a01 100644 --- a/files/PartsOfPaths.java +++ b/files/PartsOfPaths.java @@ -1,7 +1,7 @@ // files/PartsOfPaths.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.nio.file.*; public class PartsOfPaths { diff --git a/files/PathAnalysis.java b/files/PathAnalysis.java index 71e7ec36..c5e5a22f 100644 --- a/files/PathAnalysis.java +++ b/files/PathAnalysis.java @@ -1,7 +1,7 @@ // files/PathAnalysis.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.nio.file.*; import java.io.IOException; diff --git a/files/PathInfo.java b/files/PathInfo.java index 2dcdc1b0..7c77775a 100644 --- a/files/PathInfo.java +++ b/files/PathInfo.java @@ -1,7 +1,7 @@ // files/PathInfo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.nio.file.*; import java.net.URI; import java.io.File; diff --git a/files/PathWatcher.java b/files/PathWatcher.java index bee1dcdd..c22751c2 100644 --- a/files/PathWatcher.java +++ b/files/PathWatcher.java @@ -1,7 +1,7 @@ // files/PathWatcher.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.IOException; import java.nio.file.*; import static java.nio.file.StandardWatchEventKinds.*; diff --git a/files/ReadLineStream.java b/files/ReadLineStream.java index be32d9d0..efb266fc 100644 --- a/files/ReadLineStream.java +++ b/files/ReadLineStream.java @@ -1,7 +1,7 @@ // files/ReadLineStream.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.nio.file.*; public class ReadLineStream { diff --git a/files/StreamInAndOut.java b/files/StreamInAndOut.java index 6210addb..27682fff 100644 --- a/files/StreamInAndOut.java +++ b/files/StreamInAndOut.java @@ -1,7 +1,7 @@ // files/StreamInAndOut.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; import java.nio.file.*; import java.util.stream.*; diff --git a/files/TreeWatcher.java b/files/TreeWatcher.java index 53915d88..e45c46b7 100644 --- a/files/TreeWatcher.java +++ b/files/TreeWatcher.java @@ -1,7 +1,7 @@ // files/TreeWatcher.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.IOException; import java.nio.file.*; import static java.nio.file.StandardWatchEventKinds.*; diff --git a/files/Writing.java b/files/Writing.java index f26d1fb4..40a6a99a 100644 --- a/files/Writing.java +++ b/files/Writing.java @@ -1,7 +1,7 @@ // files/Writing.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.nio.file.*; diff --git a/functional/AnonymousClosure.java b/functional/AnonymousClosure.java index 9f5b4645..1a1ba346 100644 --- a/functional/AnonymousClosure.java +++ b/functional/AnonymousClosure.java @@ -1,7 +1,7 @@ // functional/AnonymousClosure.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class AnonymousClosure { diff --git a/functional/BiConsumerPermutations.java b/functional/BiConsumerPermutations.java index e9f63225..3cd01a33 100644 --- a/functional/BiConsumerPermutations.java +++ b/functional/BiConsumerPermutations.java @@ -1,7 +1,7 @@ // functional/BiConsumerPermutations.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class BiConsumerPermutations { diff --git a/functional/ClassFunctionals.java b/functional/ClassFunctionals.java index 112a7464..eb3cbdc7 100644 --- a/functional/ClassFunctionals.java +++ b/functional/ClassFunctionals.java @@ -1,7 +1,7 @@ // functional/ClassFunctionals.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.function.*; diff --git a/functional/Closure1.java b/functional/Closure1.java index c20798cd..505009d2 100644 --- a/functional/Closure1.java +++ b/functional/Closure1.java @@ -1,7 +1,7 @@ // functional/Closure1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class Closure1 { diff --git a/functional/Closure2.java b/functional/Closure2.java index 6e198602..cdcd9cf3 100644 --- a/functional/Closure2.java +++ b/functional/Closure2.java @@ -1,7 +1,7 @@ // functional/Closure2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class Closure2 { diff --git a/functional/Closure3.java b/functional/Closure3.java index 7700838b..25fd443f 100644 --- a/functional/Closure3.java +++ b/functional/Closure3.java @@ -1,7 +1,7 @@ // functional/Closure3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) import java.util.function.*; diff --git a/functional/Closure4.java b/functional/Closure4.java index c253aaf8..96cdd3b9 100644 --- a/functional/Closure4.java +++ b/functional/Closure4.java @@ -1,7 +1,7 @@ // functional/Closure4.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class Closure4 { diff --git a/functional/Closure5.java b/functional/Closure5.java index d16d1e3c..82fba731 100644 --- a/functional/Closure5.java +++ b/functional/Closure5.java @@ -1,7 +1,7 @@ // functional/Closure5.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) import java.util.function.*; diff --git a/functional/Closure6.java b/functional/Closure6.java index 0251a3e6..6f116d95 100644 --- a/functional/Closure6.java +++ b/functional/Closure6.java @@ -1,7 +1,7 @@ // functional/Closure6.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class Closure6 { diff --git a/functional/Closure7.java b/functional/Closure7.java index e0036ece..4ccb0e92 100644 --- a/functional/Closure7.java +++ b/functional/Closure7.java @@ -1,7 +1,7 @@ // functional/Closure7.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) import java.util.function.*; diff --git a/functional/Closure8.java b/functional/Closure8.java index 655dcf45..8ecb583b 100644 --- a/functional/Closure8.java +++ b/functional/Closure8.java @@ -1,7 +1,7 @@ // functional/Closure8.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.function.*; diff --git a/functional/Closure9.java b/functional/Closure9.java index 391f042f..6ed827f8 100644 --- a/functional/Closure9.java +++ b/functional/Closure9.java @@ -1,7 +1,7 @@ // functional/Closure9.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) import java.util.*; import java.util.function.*; diff --git a/functional/ConsumeFunction.java b/functional/ConsumeFunction.java index 9da3e2ce..f7eb9a1a 100644 --- a/functional/ConsumeFunction.java +++ b/functional/ConsumeFunction.java @@ -1,7 +1,7 @@ // functional/ConsumeFunction.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; class One {} diff --git a/functional/CtorReference.java b/functional/CtorReference.java index 7027d6e1..fcf8ea75 100644 --- a/functional/CtorReference.java +++ b/functional/CtorReference.java @@ -1,7 +1,7 @@ // functional/CtorReference.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Dog { String name; diff --git a/functional/CurriedIntAdd.java b/functional/CurriedIntAdd.java index 041a94be..98c740d1 100644 --- a/functional/CurriedIntAdd.java +++ b/functional/CurriedIntAdd.java @@ -1,7 +1,7 @@ // functional/CurriedIntAdd.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class CurriedIntAdd { diff --git a/functional/Curry3Args.java b/functional/Curry3Args.java index 44dc342c..8055e3b3 100644 --- a/functional/Curry3Args.java +++ b/functional/Curry3Args.java @@ -1,7 +1,7 @@ // functional/Curry3Args.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class Curry3Args { diff --git a/functional/CurryingAndPartials.java b/functional/CurryingAndPartials.java index 01b45f67..aa5f7457 100644 --- a/functional/CurryingAndPartials.java +++ b/functional/CurryingAndPartials.java @@ -1,7 +1,7 @@ // functional/CurryingAndPartials.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class CurryingAndPartials { diff --git a/functional/FunctionComposition.java b/functional/FunctionComposition.java index 9caed6dc..49bdcc07 100644 --- a/functional/FunctionComposition.java +++ b/functional/FunctionComposition.java @@ -1,7 +1,7 @@ // functional/FunctionComposition.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class FunctionComposition { diff --git a/functional/FunctionVariants.java b/functional/FunctionVariants.java index ae6f544e..d78932ca 100644 --- a/functional/FunctionVariants.java +++ b/functional/FunctionVariants.java @@ -1,7 +1,7 @@ // functional/FunctionVariants.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; class Foo {} diff --git a/functional/FunctionWithWrapped.java b/functional/FunctionWithWrapped.java index 9f493f17..5f43734a 100644 --- a/functional/FunctionWithWrapped.java +++ b/functional/FunctionWithWrapped.java @@ -1,7 +1,7 @@ // functional/FunctionWithWrapped.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class FunctionWithWrapped { diff --git a/functional/FunctionalAnnotation.java b/functional/FunctionalAnnotation.java index 780bf78e..31bc7d25 100644 --- a/functional/FunctionalAnnotation.java +++ b/functional/FunctionalAnnotation.java @@ -1,7 +1,7 @@ // functional/FunctionalAnnotation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. @FunctionalInterface interface Functional { diff --git a/functional/IntCall.java b/functional/IntCall.java index ed62e307..9748742f 100644 --- a/functional/IntCall.java +++ b/functional/IntCall.java @@ -1,7 +1,7 @@ // functional/IntCall.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. interface IntCall { int call(int arg); diff --git a/functional/LambdaExpressions.java b/functional/LambdaExpressions.java index 23245a11..adb3f5da 100644 --- a/functional/LambdaExpressions.java +++ b/functional/LambdaExpressions.java @@ -1,7 +1,7 @@ // functional/LambdaExpressions.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. interface Description { String brief(); diff --git a/functional/MethodConversion.java b/functional/MethodConversion.java index 2b6a7117..e33c9a82 100644 --- a/functional/MethodConversion.java +++ b/functional/MethodConversion.java @@ -1,7 +1,7 @@ // functional/MethodConversion.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; class In1 {} diff --git a/functional/MethodReferences.java b/functional/MethodReferences.java index c2e4176f..5becd371 100644 --- a/functional/MethodReferences.java +++ b/functional/MethodReferences.java @@ -1,7 +1,7 @@ // functional/MethodReferences.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; interface Callable { // (1) diff --git a/functional/MultiUnbound.java b/functional/MultiUnbound.java index db0aef3d..fa2ada8f 100644 --- a/functional/MultiUnbound.java +++ b/functional/MultiUnbound.java @@ -1,7 +1,7 @@ // functional/MultiUnbound.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Unbound methods with multiple arguments class This { diff --git a/functional/PredicateComposition.java b/functional/PredicateComposition.java index 841ccf6b..1a8bbf3a 100644 --- a/functional/PredicateComposition.java +++ b/functional/PredicateComposition.java @@ -1,7 +1,7 @@ // functional/PredicateComposition.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; import java.util.stream.*; diff --git a/functional/ProduceFunction.java b/functional/ProduceFunction.java index 79f0c9c7..5b2ce9ad 100644 --- a/functional/ProduceFunction.java +++ b/functional/ProduceFunction.java @@ -1,7 +1,7 @@ // functional/ProduceFunction.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; interface diff --git a/functional/RecursiveFactorial.java b/functional/RecursiveFactorial.java index 6cb972e6..a0ab4ca1 100644 --- a/functional/RecursiveFactorial.java +++ b/functional/RecursiveFactorial.java @@ -1,7 +1,7 @@ // functional/RecursiveFactorial.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class RecursiveFactorial { static IntCall fact; diff --git a/functional/RecursiveFibonacci.java b/functional/RecursiveFibonacci.java index 02ee25c1..b7e243c8 100644 --- a/functional/RecursiveFibonacci.java +++ b/functional/RecursiveFibonacci.java @@ -1,7 +1,7 @@ // functional/RecursiveFibonacci.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class RecursiveFibonacci { IntCall fib; diff --git a/functional/RunnableMethodReference.java b/functional/RunnableMethodReference.java index 86700a22..5e230429 100644 --- a/functional/RunnableMethodReference.java +++ b/functional/RunnableMethodReference.java @@ -1,7 +1,7 @@ // functional/RunnableMethodReference.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Method references with interface Runnable class Go { diff --git a/functional/SharedStorage.java b/functional/SharedStorage.java index 08161a5a..789255c6 100644 --- a/functional/SharedStorage.java +++ b/functional/SharedStorage.java @@ -1,7 +1,7 @@ // functional/SharedStorage.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class SharedStorage { diff --git a/functional/Strategize.java b/functional/Strategize.java index cd046dd3..92b83a44 100644 --- a/functional/Strategize.java +++ b/functional/Strategize.java @@ -1,7 +1,7 @@ // functional/Strategize.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. interface Strategy { String approach(String msg); diff --git a/functional/TransformFunction.java b/functional/TransformFunction.java index 4b747d72..534fd98e 100644 --- a/functional/TransformFunction.java +++ b/functional/TransformFunction.java @@ -1,7 +1,7 @@ // functional/TransformFunction.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; class I { diff --git a/functional/TriFunction.java b/functional/TriFunction.java index 742b0b22..3a12ce70 100644 --- a/functional/TriFunction.java +++ b/functional/TriFunction.java @@ -1,7 +1,7 @@ // functional/TriFunction.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. @FunctionalInterface public interface TriFunction { diff --git a/functional/TriFunctionTest.java b/functional/TriFunctionTest.java index 649b7477..3b270609 100644 --- a/functional/TriFunctionTest.java +++ b/functional/TriFunctionTest.java @@ -1,7 +1,7 @@ // functional/TriFunctionTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class TriFunctionTest { static int f(int i, long l, double d) { return 99; } diff --git a/functional/UnboundMethodReference.java b/functional/UnboundMethodReference.java index 99b72c91..d0240dec 100644 --- a/functional/UnboundMethodReference.java +++ b/functional/UnboundMethodReference.java @@ -1,7 +1,7 @@ // functional/UnboundMethodReference.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Method reference without an object class X { diff --git a/generics/Amphibian.java b/generics/Amphibian.java index 6809ef71..eb9644a9 100644 --- a/generics/Amphibian.java +++ b/generics/Amphibian.java @@ -1,5 +1,5 @@ // generics/Amphibian.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Amphibian {} diff --git a/generics/Apply.java b/generics/Apply.java index 115a8482..7b1e0970 100644 --- a/generics/Apply.java +++ b/generics/Apply.java @@ -1,7 +1,7 @@ // generics/Apply.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.lang.reflect.*; import java.util.*; diff --git a/generics/ApplyFunctional.java b/generics/ApplyFunctional.java index bda661f4..68377556 100644 --- a/generics/ApplyFunctional.java +++ b/generics/ApplyFunctional.java @@ -1,7 +1,7 @@ // generics/ApplyFunctional.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import java.util.function.*; diff --git a/generics/ApplyTest.java b/generics/ApplyTest.java index aa273cd8..da39b2d8 100644 --- a/generics/ApplyTest.java +++ b/generics/ApplyTest.java @@ -1,7 +1,7 @@ // generics/ApplyTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.function.*; import onjava.*; diff --git a/generics/ArrayMaker.java b/generics/ArrayMaker.java index fa33c14b..993a6a9f 100644 --- a/generics/ArrayMaker.java +++ b/generics/ArrayMaker.java @@ -1,7 +1,7 @@ // generics/ArrayMaker.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.lang.reflect.*; import java.util.*; diff --git a/generics/ArrayOfGeneric.java b/generics/ArrayOfGeneric.java index 43b9d460..8f5c57ad 100644 --- a/generics/ArrayOfGeneric.java +++ b/generics/ArrayOfGeneric.java @@ -1,7 +1,7 @@ // generics/ArrayOfGeneric.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class ArrayOfGeneric { static final int SIZE = 100; diff --git a/generics/ArrayOfGenericReference.java b/generics/ArrayOfGenericReference.java index 345a86c2..2eac659b 100644 --- a/generics/ArrayOfGenericReference.java +++ b/generics/ArrayOfGenericReference.java @@ -1,7 +1,7 @@ // generics/ArrayOfGenericReference.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Generic {} diff --git a/generics/BankTeller.java b/generics/BankTeller.java index 4b282f13..22540a0e 100644 --- a/generics/BankTeller.java +++ b/generics/BankTeller.java @@ -1,7 +1,7 @@ // generics/BankTeller.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A very simple bank teller simulation import java.util.*; import onjava.*; diff --git a/generics/BasicBounds.java b/generics/BasicBounds.java index 2a33cc53..2e23da5c 100644 --- a/generics/BasicBounds.java +++ b/generics/BasicBounds.java @@ -1,7 +1,7 @@ // generics/BasicBounds.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. interface HasColor { java.awt.Color getColor(); } diff --git a/generics/BasicHolder.java b/generics/BasicHolder.java index 5d63c599..49090af5 100644 --- a/generics/BasicHolder.java +++ b/generics/BasicHolder.java @@ -1,7 +1,7 @@ // generics/BasicHolder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class BasicHolder { T element; diff --git a/generics/BasicSupplierDemo.java b/generics/BasicSupplierDemo.java index 6613fb9e..7f63342a 100644 --- a/generics/BasicSupplierDemo.java +++ b/generics/BasicSupplierDemo.java @@ -1,7 +1,7 @@ // generics/BasicSupplierDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import onjava.*; import java.util.stream.*; diff --git a/generics/ByteSet.java b/generics/ByteSet.java index b32f8395..68d7e9c2 100644 --- a/generics/ByteSet.java +++ b/generics/ByteSet.java @@ -1,7 +1,7 @@ // generics/ByteSet.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ByteSet { diff --git a/generics/CRGWithBasicHolder.java b/generics/CRGWithBasicHolder.java index 52f7f213..d70c13cb 100644 --- a/generics/CRGWithBasicHolder.java +++ b/generics/CRGWithBasicHolder.java @@ -1,7 +1,7 @@ // generics/CRGWithBasicHolder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Subtype extends BasicHolder {} diff --git a/generics/CaptureConversion.java b/generics/CaptureConversion.java index 702e50d4..775c5882 100644 --- a/generics/CaptureConversion.java +++ b/generics/CaptureConversion.java @@ -1,7 +1,7 @@ // generics/CaptureConversion.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class CaptureConversion { static void f1(Holder holder) { diff --git a/generics/CheckedList.java b/generics/CheckedList.java index e287dbf0..9bdcda2e 100644 --- a/generics/CheckedList.java +++ b/generics/CheckedList.java @@ -1,7 +1,7 @@ // generics/CheckedList.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using Collection.checkedList() import typeinfo.pets.*; import java.util.*; diff --git a/generics/ClassCasting.java b/generics/ClassCasting.java index 62e344f6..f5b42ad1 100644 --- a/generics/ClassCasting.java +++ b/generics/ClassCasting.java @@ -1,7 +1,7 @@ // generics/ClassCasting.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; import java.util.*; diff --git a/generics/ClassTypeCapture.java b/generics/ClassTypeCapture.java index 7d4da530..2a829b27 100644 --- a/generics/ClassTypeCapture.java +++ b/generics/ClassTypeCapture.java @@ -1,7 +1,7 @@ // generics/ClassTypeCapture.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Building {} class House extends Building {} diff --git a/generics/ComparablePet.java b/generics/ComparablePet.java index 17365835..15368197 100644 --- a/generics/ComparablePet.java +++ b/generics/ComparablePet.java @@ -1,7 +1,7 @@ // generics/ComparablePet.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class ComparablePet implements Comparable { diff --git a/generics/CompilerIntelligence.java b/generics/CompilerIntelligence.java index 1b967382..85df9bf3 100644 --- a/generics/CompilerIntelligence.java +++ b/generics/CompilerIntelligence.java @@ -1,7 +1,7 @@ // generics/CompilerIntelligence.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class CompilerIntelligence { diff --git a/generics/CountedObject.java b/generics/CountedObject.java index b49b5e8c..d6ed6295 100644 --- a/generics/CountedObject.java +++ b/generics/CountedObject.java @@ -1,7 +1,7 @@ // generics/CountedObject.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class CountedObject { private static long counter = 0; diff --git a/generics/CovariantArrays.java b/generics/CovariantArrays.java index e15120bf..9136a015 100644 --- a/generics/CovariantArrays.java +++ b/generics/CovariantArrays.java @@ -1,7 +1,7 @@ // generics/CovariantArrays.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Fruit {} class Apple extends Fruit {} diff --git a/generics/CovariantReturnTypes.java b/generics/CovariantReturnTypes.java index 4789739f..2949faff 100644 --- a/generics/CovariantReturnTypes.java +++ b/generics/CovariantReturnTypes.java @@ -1,7 +1,7 @@ // generics/CovariantReturnTypes.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Base {} class Derived extends Base {} diff --git a/generics/CreatorGeneric.java b/generics/CreatorGeneric.java index 571df572..87713446 100644 --- a/generics/CreatorGeneric.java +++ b/generics/CreatorGeneric.java @@ -1,7 +1,7 @@ // generics/CreatorGeneric.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. abstract class GenericWithCreate { final T element; diff --git a/generics/CuriouslyRecurringGeneric.java b/generics/CuriouslyRecurringGeneric.java index d0f6b5e4..d73b1ba4 100644 --- a/generics/CuriouslyRecurringGeneric.java +++ b/generics/CuriouslyRecurringGeneric.java @@ -1,7 +1,7 @@ // generics/CuriouslyRecurringGeneric.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class GenericType {} diff --git a/generics/Diamond.java b/generics/Diamond.java index 3d946572..de58b0eb 100644 --- a/generics/Diamond.java +++ b/generics/Diamond.java @@ -1,7 +1,7 @@ // generics/Diamond.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Bob {} diff --git a/generics/DogsAndRobotMethodReferences.java b/generics/DogsAndRobotMethodReferences.java index 2a2328b3..cae8c018 100644 --- a/generics/DogsAndRobotMethodReferences.java +++ b/generics/DogsAndRobotMethodReferences.java @@ -1,7 +1,7 @@ // generics/DogsAndRobotMethodReferences.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // "Assisted Latent Typing" import typeinfo.pets.*; import java.util.function.*; diff --git a/generics/DogsAndRobots.cpp b/generics/DogsAndRobots.cpp index 354a2fa3..c3cab35b 100644 --- a/generics/DogsAndRobots.cpp +++ b/generics/DogsAndRobots.cpp @@ -1,7 +1,7 @@ // generics/DogsAndRobots.cpp // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. #include using namespace std; diff --git a/generics/DogsAndRobots.java b/generics/DogsAndRobots.java index 2d145452..2aa4d03d 100644 --- a/generics/DogsAndRobots.java +++ b/generics/DogsAndRobots.java @@ -1,7 +1,7 @@ // generics/DogsAndRobots.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // No (direct) latent typing in Java import typeinfo.pets.*; diff --git a/generics/DogsAndRobots.py b/generics/DogsAndRobots.py index 33cce802..aca33fa5 100644 --- a/generics/DogsAndRobots.py +++ b/generics/DogsAndRobots.py @@ -1,7 +1,7 @@ # generics/DogsAndRobots.py # (c)2016 MindView LLC: see Copyright.txt # We make no guarantees that this code is fit for any purpose. -# Visit http://mindviewinc.com/Books/OnJava/ for more book information. +# Visit http://OnJava8.com for more book information. class Dog: def speak(self): diff --git a/generics/DynamicProxyMixin.java b/generics/DynamicProxyMixin.java index 9f7ac013..2c886f92 100644 --- a/generics/DynamicProxyMixin.java +++ b/generics/DynamicProxyMixin.java @@ -1,7 +1,7 @@ // generics/DynamicProxyMixin.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.lang.reflect.*; import java.util.*; import onjava.*; diff --git a/generics/EpicBattle.java b/generics/EpicBattle.java index 87729083..8c3e61ae 100644 --- a/generics/EpicBattle.java +++ b/generics/EpicBattle.java @@ -1,7 +1,7 @@ // generics/EpicBattle.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Bounds in Java generics import java.util.*; diff --git a/generics/Erased.java b/generics/Erased.java index 12fa95fc..f564bcd3 100644 --- a/generics/Erased.java +++ b/generics/Erased.java @@ -1,7 +1,7 @@ // generics/Erased.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) public class Erased { diff --git a/generics/ErasedTypeEquivalence.java b/generics/ErasedTypeEquivalence.java index 7d3cec74..843503b2 100644 --- a/generics/ErasedTypeEquivalence.java +++ b/generics/ErasedTypeEquivalence.java @@ -1,7 +1,7 @@ // generics/ErasedTypeEquivalence.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ErasedTypeEquivalence { diff --git a/generics/ErasureAndInheritance.java b/generics/ErasureAndInheritance.java index f31e0355..70888752 100644 --- a/generics/ErasureAndInheritance.java +++ b/generics/ErasureAndInheritance.java @@ -1,7 +1,7 @@ // generics/ErasureAndInheritance.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class GenericBase { private T element; diff --git a/generics/FactoryConstraint.java b/generics/FactoryConstraint.java index 6e6aaa99..45d4a8d8 100644 --- a/generics/FactoryConstraint.java +++ b/generics/FactoryConstraint.java @@ -1,7 +1,7 @@ // generics/FactoryConstraint.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.function.*; import onjava.*; diff --git a/generics/Fibonacci.java b/generics/Fibonacci.java index 48725bd7..e0d402ea 100644 --- a/generics/Fibonacci.java +++ b/generics/Fibonacci.java @@ -1,7 +1,7 @@ // generics/Fibonacci.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Generate a Fibonacci sequence import java.util.function.*; import java.util.stream.*; diff --git a/generics/FilledList.java b/generics/FilledList.java index efffa3bb..7647ec4a 100644 --- a/generics/FilledList.java +++ b/generics/FilledList.java @@ -1,7 +1,7 @@ // generics/FilledList.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.function.*; import onjava.*; diff --git a/generics/GenericArray.java b/generics/GenericArray.java index 022630e2..cf61acf7 100644 --- a/generics/GenericArray.java +++ b/generics/GenericArray.java @@ -1,7 +1,7 @@ // generics/GenericArray.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class GenericArray { private T[] array; diff --git a/generics/GenericArray2.java b/generics/GenericArray2.java index d3df5a9a..35fff96d 100644 --- a/generics/GenericArray2.java +++ b/generics/GenericArray2.java @@ -1,7 +1,7 @@ // generics/GenericArray2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class GenericArray2 { private Object[] array; diff --git a/generics/GenericArrayWithTypeToken.java b/generics/GenericArrayWithTypeToken.java index 46e42754..57ea150d 100644 --- a/generics/GenericArrayWithTypeToken.java +++ b/generics/GenericArrayWithTypeToken.java @@ -1,7 +1,7 @@ // generics/GenericArrayWithTypeToken.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.lang.reflect.*; public class GenericArrayWithTypeToken { diff --git a/generics/GenericCast.java b/generics/GenericCast.java index 6c4470ce..48428b2e 100644 --- a/generics/GenericCast.java +++ b/generics/GenericCast.java @@ -1,7 +1,7 @@ // generics/GenericCast.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; class FixedSizeStack { diff --git a/generics/GenericHolder.java b/generics/GenericHolder.java index 185d4660..d352ec63 100644 --- a/generics/GenericHolder.java +++ b/generics/GenericHolder.java @@ -1,7 +1,7 @@ // generics/GenericHolder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class GenericHolder { private T a; diff --git a/generics/GenericHolder2.java b/generics/GenericHolder2.java index 8df17d67..032a9440 100644 --- a/generics/GenericHolder2.java +++ b/generics/GenericHolder2.java @@ -1,7 +1,7 @@ // generics/GenericHolder2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class GenericHolder2 { private T obj; diff --git a/generics/GenericMethods.java b/generics/GenericMethods.java index 08e41ade..54edacb3 100644 --- a/generics/GenericMethods.java +++ b/generics/GenericMethods.java @@ -1,7 +1,7 @@ // generics/GenericMethods.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class GenericMethods { public void f(T x) { diff --git a/generics/GenericReading.java b/generics/GenericReading.java index 95964b23..5b3646a4 100644 --- a/generics/GenericReading.java +++ b/generics/GenericReading.java @@ -1,7 +1,7 @@ // generics/GenericReading.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class GenericReading { diff --git a/generics/GenericVarargs.java b/generics/GenericVarargs.java index e93383fc..feed33b5 100644 --- a/generics/GenericVarargs.java +++ b/generics/GenericVarargs.java @@ -1,7 +1,7 @@ // generics/GenericVarargs.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class GenericVarargs { diff --git a/generics/GenericsAndCovariance.java b/generics/GenericsAndCovariance.java index ffd906d6..b96a43a6 100644 --- a/generics/GenericsAndCovariance.java +++ b/generics/GenericsAndCovariance.java @@ -1,7 +1,7 @@ // generics/GenericsAndCovariance.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class GenericsAndCovariance { diff --git a/generics/GenericsAndReturnTypes.java b/generics/GenericsAndReturnTypes.java index afb05e1a..36342dd4 100644 --- a/generics/GenericsAndReturnTypes.java +++ b/generics/GenericsAndReturnTypes.java @@ -1,7 +1,7 @@ // generics/GenericsAndReturnTypes.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. interface GenericGetter> { T get(); diff --git a/generics/HasF.java b/generics/HasF.java index 71eb2760..f74378dc 100644 --- a/generics/HasF.java +++ b/generics/HasF.java @@ -1,7 +1,7 @@ // generics/HasF.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class HasF { public void f() { System.out.println("HasF.f()"); } diff --git a/generics/HijackedInterface.java b/generics/HijackedInterface.java index 305c08e7..bb849fba 100644 --- a/generics/HijackedInterface.java +++ b/generics/HijackedInterface.java @@ -1,7 +1,7 @@ // generics/HijackedInterface.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) class Cat diff --git a/generics/Holder.java b/generics/Holder.java index 75c6a59e..5937a813 100644 --- a/generics/Holder.java +++ b/generics/Holder.java @@ -1,7 +1,7 @@ // generics/Holder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Holder { private T value; diff --git a/generics/Holder1.java b/generics/Holder1.java index 767551f9..b1f50559 100644 --- a/generics/Holder1.java +++ b/generics/Holder1.java @@ -1,7 +1,7 @@ // generics/Holder1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Automobile {} diff --git a/generics/InheritBounds.java b/generics/InheritBounds.java index fea74c3d..6cb875be 100644 --- a/generics/InheritBounds.java +++ b/generics/InheritBounds.java @@ -1,7 +1,7 @@ // generics/InheritBounds.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class HoldItem { T item; diff --git a/generics/InstantiateGenericType.cpp b/generics/InstantiateGenericType.cpp index b66b74af..761935fe 100644 --- a/generics/InstantiateGenericType.cpp +++ b/generics/InstantiateGenericType.cpp @@ -1,7 +1,7 @@ // generics/InstantiateGenericType.cpp // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // C++, not Java! template class Foo { diff --git a/generics/InstantiateGenericType.java b/generics/InstantiateGenericType.java index d4a05636..663f7a0e 100644 --- a/generics/InstantiateGenericType.java +++ b/generics/InstantiateGenericType.java @@ -1,7 +1,7 @@ // generics/InstantiateGenericType.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; class ClassAsFactory implements Supplier { diff --git a/generics/IterableFibonacci.java b/generics/IterableFibonacci.java index ff34d040..2622c521 100644 --- a/generics/IterableFibonacci.java +++ b/generics/IterableFibonacci.java @@ -1,7 +1,7 @@ // generics/IterableFibonacci.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Adapt the Fibonacci class to make it Iterable import java.util.*; diff --git a/generics/LatentReflection.java b/generics/LatentReflection.java index 4a49a139..5c9408a5 100644 --- a/generics/LatentReflection.java +++ b/generics/LatentReflection.java @@ -1,7 +1,7 @@ // generics/LatentReflection.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using reflection for latent typing import java.lang.reflect.*; diff --git a/generics/LinkedStack.java b/generics/LinkedStack.java index 8b9a9b7d..8aacf42b 100644 --- a/generics/LinkedStack.java +++ b/generics/LinkedStack.java @@ -1,7 +1,7 @@ // generics/LinkedStack.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A stack implemented with an internal linked structure public class LinkedStack { diff --git a/generics/ListMaker.java b/generics/ListMaker.java index 2760aaee..df13ebb2 100644 --- a/generics/ListMaker.java +++ b/generics/ListMaker.java @@ -1,7 +1,7 @@ // generics/ListMaker.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ListMaker { diff --git a/generics/ListOfGenerics.java b/generics/ListOfGenerics.java index f66997eb..530c54a5 100644 --- a/generics/ListOfGenerics.java +++ b/generics/ListOfGenerics.java @@ -1,7 +1,7 @@ // generics/ListOfGenerics.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ListOfGenerics { diff --git a/generics/ListOfInt.java b/generics/ListOfInt.java index 0d08a5a2..9c0dab92 100644 --- a/generics/ListOfInt.java +++ b/generics/ListOfInt.java @@ -1,7 +1,7 @@ // generics/ListOfInt.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Autoboxing compensates for the inability // to use primitives in generics import java.util.*; diff --git a/generics/LostInformation.java b/generics/LostInformation.java index 140cb46e..94791fd5 100644 --- a/generics/LostInformation.java +++ b/generics/LostInformation.java @@ -1,7 +1,7 @@ // generics/LostInformation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; class Frob {} diff --git a/generics/Manipulation.java b/generics/Manipulation.java index 400afada..354ab98d 100644 --- a/generics/Manipulation.java +++ b/generics/Manipulation.java @@ -1,7 +1,7 @@ // generics/Manipulation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) class Manipulator { diff --git a/generics/Manipulator2.java b/generics/Manipulator2.java index b1f7f969..7b00cd14 100644 --- a/generics/Manipulator2.java +++ b/generics/Manipulator2.java @@ -1,7 +1,7 @@ // generics/Manipulator2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Manipulator2 { private T obj; diff --git a/generics/Manipulator3.java b/generics/Manipulator3.java index b51edcf8..00d96ae9 100644 --- a/generics/Manipulator3.java +++ b/generics/Manipulator3.java @@ -1,7 +1,7 @@ // generics/Manipulator3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Manipulator3 { private HasF obj; diff --git a/generics/Mixins.cpp b/generics/Mixins.cpp index e7bba20e..18df5c32 100644 --- a/generics/Mixins.cpp +++ b/generics/Mixins.cpp @@ -1,7 +1,7 @@ // generics/Mixins.cpp // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. #include #include #include diff --git a/generics/Mixins.java b/generics/Mixins.java index 4183e72a..0425145c 100644 --- a/generics/Mixins.java +++ b/generics/Mixins.java @@ -1,7 +1,7 @@ // generics/Mixins.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; interface TimeStamped { long getStamp(); } diff --git a/generics/MultipleInterfaceVariants.java b/generics/MultipleInterfaceVariants.java index 8badc843..f6c35103 100644 --- a/generics/MultipleInterfaceVariants.java +++ b/generics/MultipleInterfaceVariants.java @@ -1,7 +1,7 @@ // generics/MultipleInterfaceVariants.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) package generics; diff --git a/generics/NeedCasting.java b/generics/NeedCasting.java index a47ec23a..4a524c3f 100644 --- a/generics/NeedCasting.java +++ b/generics/NeedCasting.java @@ -1,7 +1,7 @@ // generics/NeedCasting.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; import java.util.*; diff --git a/generics/NonCovariantGenerics.java b/generics/NonCovariantGenerics.java index e5b656f7..b3ab48d6 100644 --- a/generics/NonCovariantGenerics.java +++ b/generics/NonCovariantGenerics.java @@ -1,7 +1,7 @@ // generics/NonCovariantGenerics.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) import java.util.*; diff --git a/generics/NotSelfBounded.java b/generics/NotSelfBounded.java index 62370f5a..edc1fe48 100644 --- a/generics/NotSelfBounded.java +++ b/generics/NotSelfBounded.java @@ -1,7 +1,7 @@ // generics/NotSelfBounded.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class NotSelfBounded { T element; diff --git a/generics/ObjectHolder.java b/generics/ObjectHolder.java index 9088db51..b56167a3 100644 --- a/generics/ObjectHolder.java +++ b/generics/ObjectHolder.java @@ -1,7 +1,7 @@ // generics/ObjectHolder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class ObjectHolder { private Object a; diff --git a/generics/OrdinaryArguments.java b/generics/OrdinaryArguments.java index 051b4eb4..66a62e51 100644 --- a/generics/OrdinaryArguments.java +++ b/generics/OrdinaryArguments.java @@ -1,7 +1,7 @@ // generics/OrdinaryArguments.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class OrdinarySetter { void set(Base base) { diff --git a/generics/Performs.java b/generics/Performs.java index 49573e73..7fd55af7 100644 --- a/generics/Performs.java +++ b/generics/Performs.java @@ -1,7 +1,7 @@ // generics/Performs.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public interface Performs { void speak(); diff --git a/generics/PlainGenericInheritance.java b/generics/PlainGenericInheritance.java index 6365d653..02202da2 100644 --- a/generics/PlainGenericInheritance.java +++ b/generics/PlainGenericInheritance.java @@ -1,7 +1,7 @@ // generics/PlainGenericInheritance.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class GenericSetter { // Not self-bounded void set(T arg) { diff --git a/generics/PrimitiveGenericTest.java b/generics/PrimitiveGenericTest.java index 883e2512..934c1ba3 100644 --- a/generics/PrimitiveGenericTest.java +++ b/generics/PrimitiveGenericTest.java @@ -1,7 +1,7 @@ // generics/PrimitiveGenericTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import onjava.*; import java.util.*; import java.util.function.*; diff --git a/generics/RandomList.java b/generics/RandomList.java index 3d68999c..502a67fd 100644 --- a/generics/RandomList.java +++ b/generics/RandomList.java @@ -1,7 +1,7 @@ // generics/RandomList.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; diff --git a/generics/RestrictedComparablePets.java b/generics/RestrictedComparablePets.java index 87f4af3a..aff84c2a 100644 --- a/generics/RestrictedComparablePets.java +++ b/generics/RestrictedComparablePets.java @@ -1,7 +1,7 @@ // generics/RestrictedComparablePets.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Hamster extends ComparablePet implements Comparable { diff --git a/generics/ReturnGenericType.java b/generics/ReturnGenericType.java index 7571cc00..7813f8d6 100644 --- a/generics/ReturnGenericType.java +++ b/generics/ReturnGenericType.java @@ -1,7 +1,7 @@ // generics/ReturnGenericType.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class ReturnGenericType { private T obj; diff --git a/generics/SelfBounding.java b/generics/SelfBounding.java index e5e3afd0..d021795c 100644 --- a/generics/SelfBounding.java +++ b/generics/SelfBounding.java @@ -1,7 +1,7 @@ // generics/SelfBounding.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class SelfBounded> { T element; diff --git a/generics/SelfBoundingAndCovariantArguments.java b/generics/SelfBoundingAndCovariantArguments.java index 89d688d0..b4db4d9b 100644 --- a/generics/SelfBoundingAndCovariantArguments.java +++ b/generics/SelfBoundingAndCovariantArguments.java @@ -1,7 +1,7 @@ // generics/SelfBoundingAndCovariantArguments.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. interface SelfBoundSetter> { void set(T arg); diff --git a/generics/SelfBoundingMethods.java b/generics/SelfBoundingMethods.java index 87aadd0e..28ac4298 100644 --- a/generics/SelfBoundingMethods.java +++ b/generics/SelfBoundingMethods.java @@ -1,7 +1,7 @@ // generics/SelfBoundingMethods.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class SelfBoundingMethods { static > T f(T arg) { diff --git a/generics/Shape.java b/generics/Shape.java index 42363dee..5de00353 100644 --- a/generics/Shape.java +++ b/generics/Shape.java @@ -1,7 +1,7 @@ // generics/Shape.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Shape { private static long counter = 0; diff --git a/generics/SimpleDogsAndRobots.java b/generics/SimpleDogsAndRobots.java index 564147d8..d52ed0a0 100644 --- a/generics/SimpleDogsAndRobots.java +++ b/generics/SimpleDogsAndRobots.java @@ -1,7 +1,7 @@ // generics/SimpleDogsAndRobots.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Removing the generic; code still works class CommunicateSimply { diff --git a/generics/SimpleHolder.java b/generics/SimpleHolder.java index c06b6761..da2ae538 100644 --- a/generics/SimpleHolder.java +++ b/generics/SimpleHolder.java @@ -1,7 +1,7 @@ // generics/SimpleHolder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class SimpleHolder { private Object obj; diff --git a/generics/SimpleQueue.java b/generics/SimpleQueue.java index 385b438b..a8e6620f 100644 --- a/generics/SimpleQueue.java +++ b/generics/SimpleQueue.java @@ -1,7 +1,7 @@ // generics/SimpleQueue.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A different kind of Iterable collection import java.util.*; diff --git a/generics/Square.java b/generics/Square.java index 9aa16d80..1dd389df 100644 --- a/generics/Square.java +++ b/generics/Square.java @@ -1,5 +1,5 @@ // generics/Square.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Square extends Shape {} diff --git a/generics/Store.java b/generics/Store.java index fe514fb3..ec447263 100644 --- a/generics/Store.java +++ b/generics/Store.java @@ -1,7 +1,7 @@ // generics/Store.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Building a complex model using generic collections import java.util.*; import java.util.function.*; diff --git a/generics/SuperTypeWildcards.java b/generics/SuperTypeWildcards.java index 814fca82..269c46f1 100644 --- a/generics/SuperTypeWildcards.java +++ b/generics/SuperTypeWildcards.java @@ -1,7 +1,7 @@ // generics/SuperTypeWildcards.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class SuperTypeWildcards { diff --git a/generics/Templates.cpp b/generics/Templates.cpp index 556c08d8..23e315a5 100644 --- a/generics/Templates.cpp +++ b/generics/Templates.cpp @@ -1,7 +1,7 @@ // generics/Templates.cpp // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. #include using namespace std; diff --git a/generics/ThrowGenericException.java b/generics/ThrowGenericException.java index 679fc8bc..9e429b88 100644 --- a/generics/ThrowGenericException.java +++ b/generics/ThrowGenericException.java @@ -1,7 +1,7 @@ // generics/ThrowGenericException.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; interface Processor { diff --git a/generics/TupleList.java b/generics/TupleList.java index 6003fb72..aed0d76d 100644 --- a/generics/TupleList.java +++ b/generics/TupleList.java @@ -1,7 +1,7 @@ // generics/TupleList.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Combining generic types to make complex generic types import java.util.*; import onjava.*; diff --git a/generics/TupleTest.java b/generics/TupleTest.java index 35126980..f85e5125 100644 --- a/generics/TupleTest.java +++ b/generics/TupleTest.java @@ -1,7 +1,7 @@ // generics/TupleTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import onjava.*; public class TupleTest { diff --git a/generics/TupleTest2.java b/generics/TupleTest2.java index c3f65cae..581a9996 100644 --- a/generics/TupleTest2.java +++ b/generics/TupleTest2.java @@ -1,7 +1,7 @@ // generics/TupleTest2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import onjava.*; import static onjava.Tuple.*; diff --git a/generics/UnboundedWildcards1.java b/generics/UnboundedWildcards1.java index 513e5211..a978a87d 100644 --- a/generics/UnboundedWildcards1.java +++ b/generics/UnboundedWildcards1.java @@ -1,7 +1,7 @@ // generics/UnboundedWildcards1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class UnboundedWildcards1 { diff --git a/generics/UnboundedWildcards2.java b/generics/UnboundedWildcards2.java index a0146164..8f49eee1 100644 --- a/generics/UnboundedWildcards2.java +++ b/generics/UnboundedWildcards2.java @@ -1,7 +1,7 @@ // generics/UnboundedWildcards2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class UnboundedWildcards2 { diff --git a/generics/Unconstrained.java b/generics/Unconstrained.java index 051ccdb8..2200a919 100644 --- a/generics/Unconstrained.java +++ b/generics/Unconstrained.java @@ -1,7 +1,7 @@ // generics/Unconstrained.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Other {} class BasicOther extends BasicHolder {} diff --git a/generics/UseList.java b/generics/UseList.java index e526b743..0cceadf1 100644 --- a/generics/UseList.java +++ b/generics/UseList.java @@ -1,7 +1,7 @@ // generics/UseList.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) import java.util.*; diff --git a/generics/UseList2.java b/generics/UseList2.java index c6e05533..25db296d 100644 --- a/generics/UseList2.java +++ b/generics/UseList2.java @@ -1,7 +1,7 @@ // generics/UseList2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class UseList2 { diff --git a/generics/Vehicle.java b/generics/Vehicle.java index 0e742ca4..3f686fa9 100644 --- a/generics/Vehicle.java +++ b/generics/Vehicle.java @@ -1,5 +1,5 @@ // generics/Vehicle.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Vehicle {} diff --git a/generics/WatercolorSets.java b/generics/WatercolorSets.java index b5248eeb..011decc4 100644 --- a/generics/WatercolorSets.java +++ b/generics/WatercolorSets.java @@ -1,7 +1,7 @@ // generics/WatercolorSets.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import generics.watercolors.*; import java.util.*; import static onjava.Sets.*; diff --git a/generics/Wildcards.java b/generics/Wildcards.java index 549a93bc..960356b5 100644 --- a/generics/Wildcards.java +++ b/generics/Wildcards.java @@ -1,7 +1,7 @@ // generics/Wildcards.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Exploring the meaning of wildcards public class Wildcards { diff --git a/generics/coffee/Americano.java b/generics/coffee/Americano.java index f8174744..c488757d 100644 --- a/generics/coffee/Americano.java +++ b/generics/coffee/Americano.java @@ -1,6 +1,6 @@ // generics/coffee/Americano.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package generics.coffee; public class Americano extends Coffee {} diff --git a/generics/coffee/Breve.java b/generics/coffee/Breve.java index 8f32b139..a2ddb382 100644 --- a/generics/coffee/Breve.java +++ b/generics/coffee/Breve.java @@ -1,6 +1,6 @@ // generics/coffee/Breve.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package generics.coffee; public class Breve extends Coffee {} diff --git a/generics/coffee/Cappuccino.java b/generics/coffee/Cappuccino.java index f5b93638..77c62e33 100644 --- a/generics/coffee/Cappuccino.java +++ b/generics/coffee/Cappuccino.java @@ -1,6 +1,6 @@ // generics/coffee/Cappuccino.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package generics.coffee; public class Cappuccino extends Coffee {} diff --git a/generics/coffee/Coffee.java b/generics/coffee/Coffee.java index 81f653c7..dd457d9e 100644 --- a/generics/coffee/Coffee.java +++ b/generics/coffee/Coffee.java @@ -1,7 +1,7 @@ // generics/coffee/Coffee.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package generics.coffee; public class Coffee { diff --git a/generics/coffee/CoffeeSupplier.java b/generics/coffee/CoffeeSupplier.java index 00d59cdb..4dd37cc0 100644 --- a/generics/coffee/CoffeeSupplier.java +++ b/generics/coffee/CoffeeSupplier.java @@ -1,7 +1,7 @@ // generics/coffee/CoffeeSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java generics.coffee.CoffeeSupplier} package generics.coffee; import java.util.*; diff --git a/generics/coffee/Latte.java b/generics/coffee/Latte.java index 95bf319f..5c1b54b2 100644 --- a/generics/coffee/Latte.java +++ b/generics/coffee/Latte.java @@ -1,6 +1,6 @@ // generics/coffee/Latte.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package generics.coffee; public class Latte extends Coffee {} diff --git a/generics/coffee/Mocha.java b/generics/coffee/Mocha.java index 9c73fcd5..89e70627 100644 --- a/generics/coffee/Mocha.java +++ b/generics/coffee/Mocha.java @@ -1,6 +1,6 @@ // generics/coffee/Mocha.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package generics.coffee; public class Mocha extends Coffee {} diff --git a/generics/decorator/Decoration.java b/generics/decorator/Decoration.java index ff1bbc4a..f1603d96 100644 --- a/generics/decorator/Decoration.java +++ b/generics/decorator/Decoration.java @@ -1,7 +1,7 @@ // generics/decorator/Decoration.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java generics.decorator.Decoration} package generics.decorator; import java.util.*; diff --git a/generics/dogsandrobots.go b/generics/dogsandrobots.go index 6c949302..9466e2c7 100644 --- a/generics/dogsandrobots.go +++ b/generics/dogsandrobots.go @@ -1,7 +1,7 @@ // generics/dogsandrobots.go // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package main import "fmt" diff --git a/generics/watercolors/Watercolors.java b/generics/watercolors/Watercolors.java index aa5e8097..47dee913 100644 --- a/generics/watercolors/Watercolors.java +++ b/generics/watercolors/Watercolors.java @@ -1,7 +1,7 @@ // generics/watercolors/Watercolors.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package generics.watercolors; public enum Watercolors { diff --git a/hiding/Cake.java b/hiding/Cake.java index 833149b3..581760f5 100644 --- a/hiding/Cake.java +++ b/hiding/Cake.java @@ -1,7 +1,7 @@ // hiding/Cake.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Accesses a class in a separate compilation unit class Cake { diff --git a/hiding/ChocolateChip.java b/hiding/ChocolateChip.java index e058f14d..17dea4e6 100644 --- a/hiding/ChocolateChip.java +++ b/hiding/ChocolateChip.java @@ -1,7 +1,7 @@ // hiding/ChocolateChip.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Can't use package-access member from another package import hiding.dessert.*; diff --git a/hiding/ChocolateChip2.java b/hiding/ChocolateChip2.java index 96226a47..fc154081 100644 --- a/hiding/ChocolateChip2.java +++ b/hiding/ChocolateChip2.java @@ -1,7 +1,7 @@ // hiding/ChocolateChip2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import hiding.cookie2.*; public class ChocolateChip2 extends Cookie { diff --git a/hiding/Dinner.java b/hiding/Dinner.java index 69f6e416..9f2fbea6 100644 --- a/hiding/Dinner.java +++ b/hiding/Dinner.java @@ -1,7 +1,7 @@ // hiding/Dinner.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Uses the library import hiding.dessert.*; diff --git a/hiding/FullQualification.java b/hiding/FullQualification.java index 9de01e4e..96ec55de 100644 --- a/hiding/FullQualification.java +++ b/hiding/FullQualification.java @@ -1,7 +1,7 @@ // hiding/FullQualification.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class FullQualification { public static void main(String[] args) { diff --git a/hiding/IceCream.java b/hiding/IceCream.java index 765b97f9..8262b256 100644 --- a/hiding/IceCream.java +++ b/hiding/IceCream.java @@ -1,7 +1,7 @@ // hiding/IceCream.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates "private" keyword class Sundae { diff --git a/hiding/ImportedMyClass.java b/hiding/ImportedMyClass.java index d26f347d..10d5a0ce 100644 --- a/hiding/ImportedMyClass.java +++ b/hiding/ImportedMyClass.java @@ -1,7 +1,7 @@ // hiding/ImportedMyClass.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import hiding.mypackage.*; public class ImportedMyClass { diff --git a/hiding/LibTest.java b/hiding/LibTest.java index 70d092a0..f7c848c0 100644 --- a/hiding/LibTest.java +++ b/hiding/LibTest.java @@ -1,7 +1,7 @@ // hiding/LibTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Uses the library import com.mindviewinc.simple.*; diff --git a/hiding/Lunch.java b/hiding/Lunch.java index e470fcc8..a0b9e789 100644 --- a/hiding/Lunch.java +++ b/hiding/Lunch.java @@ -1,7 +1,7 @@ // hiding/Lunch.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates class access specifiers. Make a class // effectively private with private constructors: diff --git a/hiding/OrganizedByAccess.java b/hiding/OrganizedByAccess.java index 5709f77a..b38d44fc 100644 --- a/hiding/OrganizedByAccess.java +++ b/hiding/OrganizedByAccess.java @@ -1,7 +1,7 @@ // hiding/OrganizedByAccess.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class OrganizedByAccess { public void pub1() { /* ... */ } diff --git a/hiding/Pie.java b/hiding/Pie.java index 1cf63321..dab8880d 100644 --- a/hiding/Pie.java +++ b/hiding/Pie.java @@ -1,7 +1,7 @@ // hiding/Pie.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The other class class Pie { diff --git a/hiding/QualifiedMyClass.java b/hiding/QualifiedMyClass.java index cf4a6ee5..bdf3d5e9 100644 --- a/hiding/QualifiedMyClass.java +++ b/hiding/QualifiedMyClass.java @@ -1,7 +1,7 @@ // hiding/QualifiedMyClass.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class QualifiedMyClass { public static void main(String[] args) { diff --git a/hiding/SingleImport.java b/hiding/SingleImport.java index 200b4ef6..fde469a7 100644 --- a/hiding/SingleImport.java +++ b/hiding/SingleImport.java @@ -1,7 +1,7 @@ // hiding/SingleImport.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.ArrayList; public class SingleImport { diff --git a/hiding/cookie2/Cookie.java b/hiding/cookie2/Cookie.java index 25865ab4..adfca0bd 100644 --- a/hiding/cookie2/Cookie.java +++ b/hiding/cookie2/Cookie.java @@ -1,7 +1,7 @@ // hiding/cookie2/Cookie.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package hiding.cookie2; public class Cookie { diff --git a/hiding/dessert/Cookie.java b/hiding/dessert/Cookie.java index cb63ff69..f9681998 100644 --- a/hiding/dessert/Cookie.java +++ b/hiding/dessert/Cookie.java @@ -1,7 +1,7 @@ // hiding/dessert/Cookie.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creates a library package hiding.dessert; diff --git a/hiding/mypackage/MyClass.java b/hiding/mypackage/MyClass.java index b4281de6..194f81cb 100644 --- a/hiding/mypackage/MyClass.java +++ b/hiding/mypackage/MyClass.java @@ -1,7 +1,7 @@ // hiding/mypackage/MyClass.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package hiding.mypackage; public class MyClass { diff --git a/housekeeping/Apricot.java b/housekeeping/Apricot.java index ee15434f..c5089867 100644 --- a/housekeeping/Apricot.java +++ b/housekeeping/Apricot.java @@ -1,7 +1,7 @@ // housekeeping/Apricot.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Apricot { void pick() { /* ... */ } void pit() { pick(); /* ... */ } diff --git a/housekeeping/ArrayClassObj.java b/housekeeping/ArrayClassObj.java index 397699ad..0bc6c0ea 100644 --- a/housekeeping/ArrayClassObj.java +++ b/housekeeping/ArrayClassObj.java @@ -1,7 +1,7 @@ // housekeeping/ArrayClassObj.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating an array of nonprimitive objects import java.util.*; diff --git a/housekeeping/ArrayInit.java b/housekeeping/ArrayInit.java index 0b59bde1..779fad0c 100644 --- a/housekeeping/ArrayInit.java +++ b/housekeeping/ArrayInit.java @@ -1,7 +1,7 @@ // housekeeping/ArrayInit.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Array initialization import java.util.*; diff --git a/housekeeping/ArrayNew.java b/housekeeping/ArrayNew.java index 74a6466a..f764fea7 100644 --- a/housekeeping/ArrayNew.java +++ b/housekeeping/ArrayNew.java @@ -1,7 +1,7 @@ // housekeeping/ArrayNew.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating arrays with new import java.util.*; diff --git a/housekeeping/ArraysOfPrimitives.java b/housekeeping/ArraysOfPrimitives.java index 66565013..1692c4c4 100644 --- a/housekeeping/ArraysOfPrimitives.java +++ b/housekeeping/ArraysOfPrimitives.java @@ -1,7 +1,7 @@ // housekeeping/ArraysOfPrimitives.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class ArraysOfPrimitives { public static void main(String[] args) { diff --git a/housekeeping/AutoboxingVarargs.java b/housekeeping/AutoboxingVarargs.java index 5d25d4dc..58c02c67 100644 --- a/housekeeping/AutoboxingVarargs.java +++ b/housekeeping/AutoboxingVarargs.java @@ -1,7 +1,7 @@ // housekeeping/AutoboxingVarargs.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class AutoboxingVarargs { public static void f(Integer... args) { diff --git a/housekeeping/BananaPeel.java b/housekeeping/BananaPeel.java index 4eadf14b..2ec9516c 100644 --- a/housekeeping/BananaPeel.java +++ b/housekeeping/BananaPeel.java @@ -1,7 +1,7 @@ // housekeeping/BananaPeel.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Banana { void peel(int i) { /* ... */ } } diff --git a/housekeeping/Burrito.java b/housekeeping/Burrito.java index d356d48a..ea7e5b36 100644 --- a/housekeeping/Burrito.java +++ b/housekeeping/Burrito.java @@ -1,7 +1,7 @@ // housekeeping/Burrito.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Burrito { Spiciness degree; diff --git a/housekeeping/Counter.java b/housekeeping/Counter.java index 7bb5c683..65927e68 100644 --- a/housekeeping/Counter.java +++ b/housekeeping/Counter.java @@ -1,7 +1,7 @@ // housekeeping/Counter.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Counter { int i; Counter() { i = 7; } diff --git a/housekeeping/DefaultConstructor.java b/housekeeping/DefaultConstructor.java index f74eb10c..0f95d83b 100644 --- a/housekeeping/DefaultConstructor.java +++ b/housekeeping/DefaultConstructor.java @@ -1,7 +1,7 @@ // housekeeping/DefaultConstructor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Bird {} diff --git a/housekeeping/Demotion.java b/housekeeping/Demotion.java index cd87c11e..0d054659 100644 --- a/housekeeping/Demotion.java +++ b/housekeeping/Demotion.java @@ -1,7 +1,7 @@ // housekeeping/Demotion.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demotion of primitives public class Demotion { diff --git a/housekeeping/DynamicArray.java b/housekeeping/DynamicArray.java index ac7a2770..578ef775 100644 --- a/housekeeping/DynamicArray.java +++ b/housekeeping/DynamicArray.java @@ -1,7 +1,7 @@ // housekeeping/DynamicArray.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Array initialization public class DynamicArray { diff --git a/housekeeping/EnumOrder.java b/housekeeping/EnumOrder.java index 7a311ff2..42244c9c 100644 --- a/housekeeping/EnumOrder.java +++ b/housekeeping/EnumOrder.java @@ -1,7 +1,7 @@ // housekeeping/EnumOrder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class EnumOrder { public static void main(String[] args) { diff --git a/housekeeping/ExplicitStatic.java b/housekeeping/ExplicitStatic.java index 761beb96..8e86b003 100644 --- a/housekeeping/ExplicitStatic.java +++ b/housekeeping/ExplicitStatic.java @@ -1,7 +1,7 @@ // housekeeping/ExplicitStatic.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Explicit static initialization with the "static" clause class Cup { diff --git a/housekeeping/Flower.java b/housekeeping/Flower.java index adf106ca..b7a6137f 100644 --- a/housekeeping/Flower.java +++ b/housekeeping/Flower.java @@ -1,7 +1,7 @@ // housekeeping/Flower.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Calling constructors with "this" public class Flower { diff --git a/housekeeping/InitialValues.java b/housekeeping/InitialValues.java index 826a924c..9c256bec 100644 --- a/housekeeping/InitialValues.java +++ b/housekeeping/InitialValues.java @@ -1,7 +1,7 @@ // housekeeping/InitialValues.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Shows default initial values public class InitialValues { diff --git a/housekeeping/InitialValues2.java b/housekeeping/InitialValues2.java index 9361381b..710307bc 100644 --- a/housekeeping/InitialValues2.java +++ b/housekeeping/InitialValues2.java @@ -1,7 +1,7 @@ // housekeeping/InitialValues2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Providing explicit initial values public class InitialValues2 { diff --git a/housekeeping/Leaf.java b/housekeeping/Leaf.java index b75ae315..a16539a4 100644 --- a/housekeeping/Leaf.java +++ b/housekeeping/Leaf.java @@ -1,7 +1,7 @@ // housekeeping/Leaf.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Simple use of the "this" keyword public class Leaf { diff --git a/housekeeping/Measurement.java b/housekeeping/Measurement.java index 20912a42..4d6be143 100644 --- a/housekeeping/Measurement.java +++ b/housekeeping/Measurement.java @@ -1,7 +1,7 @@ // housekeeping/Measurement.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Depth {} public class Measurement { diff --git a/housekeeping/MethodInit.java b/housekeeping/MethodInit.java index 77edae51..7c77bdd9 100644 --- a/housekeeping/MethodInit.java +++ b/housekeeping/MethodInit.java @@ -1,7 +1,7 @@ // housekeeping/MethodInit.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class MethodInit { int i = f(); int f() { return 11; } diff --git a/housekeeping/MethodInit2.java b/housekeeping/MethodInit2.java index 14f3fb02..394ef523 100644 --- a/housekeeping/MethodInit2.java +++ b/housekeeping/MethodInit2.java @@ -1,7 +1,7 @@ // housekeeping/MethodInit2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class MethodInit2 { int i = f(); int j = g(i); diff --git a/housekeeping/MethodInit3.java b/housekeeping/MethodInit3.java index 5a39920a..15c0f674 100644 --- a/housekeeping/MethodInit3.java +++ b/housekeeping/MethodInit3.java @@ -1,7 +1,7 @@ // housekeeping/MethodInit3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class MethodInit3 { //- int j = g(i); // Illegal forward reference int i = f(); diff --git a/housekeeping/Mugs.java b/housekeeping/Mugs.java index 645e3a77..373471a2 100644 --- a/housekeeping/Mugs.java +++ b/housekeeping/Mugs.java @@ -1,7 +1,7 @@ // housekeeping/Mugs.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Instance initialization class Mug { diff --git a/housekeeping/NewVarArgs.java b/housekeeping/NewVarArgs.java index 5f94b54d..a1d080c6 100644 --- a/housekeeping/NewVarArgs.java +++ b/housekeeping/NewVarArgs.java @@ -1,7 +1,7 @@ // housekeeping/NewVarArgs.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using array syntax to create variable argument lists public class NewVarArgs { diff --git a/housekeeping/NoSynthesis.java b/housekeeping/NoSynthesis.java index ee5c1f1e..a5448366 100644 --- a/housekeeping/NoSynthesis.java +++ b/housekeeping/NoSynthesis.java @@ -1,7 +1,7 @@ // housekeeping/NoSynthesis.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Bird2 { Bird2(int i) {} diff --git a/housekeeping/OptionalTrailingArguments.java b/housekeeping/OptionalTrailingArguments.java index dc96aba7..96415c00 100644 --- a/housekeeping/OptionalTrailingArguments.java +++ b/housekeeping/OptionalTrailingArguments.java @@ -1,7 +1,7 @@ // housekeeping/OptionalTrailingArguments.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class OptionalTrailingArguments { static void f(int required, String... trailing) { diff --git a/housekeeping/OrderOfInitialization.java b/housekeeping/OrderOfInitialization.java index 6bb1977e..4ac8e217 100644 --- a/housekeeping/OrderOfInitialization.java +++ b/housekeeping/OrderOfInitialization.java @@ -1,7 +1,7 @@ // housekeeping/OrderOfInitialization.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates initialization order // When the constructor is called to create a diff --git a/housekeeping/Overloading.java b/housekeeping/Overloading.java index 7cc506db..0309a509 100644 --- a/housekeeping/Overloading.java +++ b/housekeeping/Overloading.java @@ -1,7 +1,7 @@ // housekeeping/Overloading.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Both constructor and ordinary method overloading class Tree { diff --git a/housekeeping/OverloadingOrder.java b/housekeeping/OverloadingOrder.java index 4d239dec..47a7a923 100644 --- a/housekeeping/OverloadingOrder.java +++ b/housekeeping/OverloadingOrder.java @@ -1,7 +1,7 @@ // housekeeping/OverloadingOrder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Overloading based on the order of the arguments public class OverloadingOrder { diff --git a/housekeeping/OverloadingVarargs.java b/housekeeping/OverloadingVarargs.java index a9757c97..444d19f0 100644 --- a/housekeeping/OverloadingVarargs.java +++ b/housekeeping/OverloadingVarargs.java @@ -1,7 +1,7 @@ // housekeeping/OverloadingVarargs.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class OverloadingVarargs { static void f(Character... args) { diff --git a/housekeeping/OverloadingVarargs2.java b/housekeeping/OverloadingVarargs2.java index 9b4c4ef6..45ab8848 100644 --- a/housekeeping/OverloadingVarargs2.java +++ b/housekeeping/OverloadingVarargs2.java @@ -1,7 +1,7 @@ // housekeeping/OverloadingVarargs2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) public class OverloadingVarargs2 { diff --git a/housekeeping/OverloadingVarargs3.java b/housekeeping/OverloadingVarargs3.java index 03db29fe..42db0329 100644 --- a/housekeeping/OverloadingVarargs3.java +++ b/housekeeping/OverloadingVarargs3.java @@ -1,7 +1,7 @@ // housekeeping/OverloadingVarargs3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class OverloadingVarargs3 { static void f(float i, Character... args) { diff --git a/housekeeping/PassingThis.java b/housekeeping/PassingThis.java index ae4310a1..64b5b31a 100644 --- a/housekeeping/PassingThis.java +++ b/housekeeping/PassingThis.java @@ -1,7 +1,7 @@ // housekeeping/PassingThis.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Person { public void eat(Apple apple) { diff --git a/housekeeping/PrimitiveOverloading.java b/housekeeping/PrimitiveOverloading.java index d8dca151..3f4494b5 100644 --- a/housekeeping/PrimitiveOverloading.java +++ b/housekeeping/PrimitiveOverloading.java @@ -1,7 +1,7 @@ // housekeeping/PrimitiveOverloading.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Promotion of primitives and overloading public class PrimitiveOverloading { diff --git a/housekeeping/SimpleConstructor.java b/housekeeping/SimpleConstructor.java index 06a73e73..7bee9bfe 100644 --- a/housekeeping/SimpleConstructor.java +++ b/housekeeping/SimpleConstructor.java @@ -1,7 +1,7 @@ // housekeeping/SimpleConstructor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstration of a simple constructor class Rock { diff --git a/housekeeping/SimpleConstructor2.java b/housekeeping/SimpleConstructor2.java index e08e79e2..679571c4 100644 --- a/housekeeping/SimpleConstructor2.java +++ b/housekeeping/SimpleConstructor2.java @@ -1,7 +1,7 @@ // housekeeping/SimpleConstructor2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Constructors can have arguments class Rock2 { diff --git a/housekeeping/SimpleEnumUse.java b/housekeeping/SimpleEnumUse.java index bc24bddd..72d0dbd5 100644 --- a/housekeeping/SimpleEnumUse.java +++ b/housekeeping/SimpleEnumUse.java @@ -1,7 +1,7 @@ // housekeeping/SimpleEnumUse.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class SimpleEnumUse { public static void main(String[] args) { diff --git a/housekeeping/Spiciness.java b/housekeeping/Spiciness.java index aeff179f..39f7d72e 100644 --- a/housekeeping/Spiciness.java +++ b/housekeeping/Spiciness.java @@ -1,7 +1,7 @@ // housekeeping/Spiciness.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public enum Spiciness { NOT, MILD, MEDIUM, HOT, FLAMING diff --git a/housekeeping/Spoon.java b/housekeeping/Spoon.java index e18afe84..ef379ac1 100644 --- a/housekeeping/Spoon.java +++ b/housekeeping/Spoon.java @@ -1,7 +1,7 @@ // housekeeping/Spoon.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Spoon { static int i; static { diff --git a/housekeeping/StaticInitialization.java b/housekeeping/StaticInitialization.java index e7bd12a5..82a1929b 100644 --- a/housekeeping/StaticInitialization.java +++ b/housekeeping/StaticInitialization.java @@ -1,7 +1,7 @@ // housekeeping/StaticInitialization.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Specifying initial values in a class definition class Bowl { diff --git a/housekeeping/TerminationCondition.java b/housekeeping/TerminationCondition.java index 32d05bc3..4a316c3f 100644 --- a/housekeeping/TerminationCondition.java +++ b/housekeeping/TerminationCondition.java @@ -1,7 +1,7 @@ // housekeeping/TerminationCondition.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using finalize() to detect an object that // hasn't been properly cleaned up import onjava.*; diff --git a/housekeeping/VarArgs.java b/housekeeping/VarArgs.java index af8e3939..5c323a20 100644 --- a/housekeeping/VarArgs.java +++ b/housekeeping/VarArgs.java @@ -1,7 +1,7 @@ // housekeeping/VarArgs.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using array syntax to create variable argument lists class A {} diff --git a/housekeeping/VarargType.java b/housekeeping/VarargType.java index 67be35c3..c8c41619 100644 --- a/housekeeping/VarargType.java +++ b/housekeeping/VarargType.java @@ -1,7 +1,7 @@ // housekeeping/VarargType.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class VarargType { static void f(Character... args) { diff --git a/innerclasses/AnonymousConstructor.java b/innerclasses/AnonymousConstructor.java index 5398c0fc..dd0deb8c 100644 --- a/innerclasses/AnonymousConstructor.java +++ b/innerclasses/AnonymousConstructor.java @@ -1,7 +1,7 @@ // innerclasses/AnonymousConstructor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating a constructor for an anonymous inner class abstract class Base { diff --git a/innerclasses/BigEgg.java b/innerclasses/BigEgg.java index 6f430bd3..b55ac35f 100644 --- a/innerclasses/BigEgg.java +++ b/innerclasses/BigEgg.java @@ -1,7 +1,7 @@ // innerclasses/BigEgg.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // An inner class cannot be overriden like a method class Egg { diff --git a/innerclasses/BigEgg2.java b/innerclasses/BigEgg2.java index 5de93267..b9b4fc6e 100644 --- a/innerclasses/BigEgg2.java +++ b/innerclasses/BigEgg2.java @@ -1,7 +1,7 @@ // innerclasses/BigEgg2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Proper inheritance of an inner class class Egg2 { diff --git a/innerclasses/Callbacks.java b/innerclasses/Callbacks.java index 89bb33a9..bf944f1f 100644 --- a/innerclasses/Callbacks.java +++ b/innerclasses/Callbacks.java @@ -1,7 +1,7 @@ // innerclasses/Callbacks.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using inner classes for callbacks // {java innerclasses.Callbacks} package innerclasses; diff --git a/innerclasses/ClassInInterface.java b/innerclasses/ClassInInterface.java index 99f409c5..048c23ab 100644 --- a/innerclasses/ClassInInterface.java +++ b/innerclasses/ClassInInterface.java @@ -1,7 +1,7 @@ // innerclasses/ClassInInterface.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java ClassInInterface$Test} public interface ClassInInterface { diff --git a/innerclasses/Contents.java b/innerclasses/Contents.java index f770e413..874040b8 100644 --- a/innerclasses/Contents.java +++ b/innerclasses/Contents.java @@ -1,7 +1,7 @@ // innerclasses/Contents.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public interface Contents { int value(); } diff --git a/innerclasses/Destination.java b/innerclasses/Destination.java index a87b7bb0..be479d2a 100644 --- a/innerclasses/Destination.java +++ b/innerclasses/Destination.java @@ -1,7 +1,7 @@ // innerclasses/Destination.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public interface Destination { String readLabel(); } diff --git a/innerclasses/DotNew.java b/innerclasses/DotNew.java index 2846907c..229dc2a2 100644 --- a/innerclasses/DotNew.java +++ b/innerclasses/DotNew.java @@ -1,7 +1,7 @@ // innerclasses/DotNew.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating an inner class directly using the .new syntax public class DotNew { diff --git a/innerclasses/DotThis.java b/innerclasses/DotThis.java index 20b9ab8c..ea2a37a2 100644 --- a/innerclasses/DotThis.java +++ b/innerclasses/DotThis.java @@ -1,7 +1,7 @@ // innerclasses/DotThis.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Accessing the outer-class object public class DotThis { diff --git a/innerclasses/GreenhouseController.java b/innerclasses/GreenhouseController.java index d3fbfddb..89379f6c 100644 --- a/innerclasses/GreenhouseController.java +++ b/innerclasses/GreenhouseController.java @@ -1,7 +1,7 @@ // innerclasses/GreenhouseController.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Configure and execute the greenhouse system // {java GreenhouseController 5000} import innerclasses.controller.*; diff --git a/innerclasses/GreenhouseControls.java b/innerclasses/GreenhouseControls.java index aac65a36..a69c9771 100644 --- a/innerclasses/GreenhouseControls.java +++ b/innerclasses/GreenhouseControls.java @@ -1,7 +1,7 @@ // innerclasses/GreenhouseControls.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // This produces a specific application of the // control system, all in a single class. Inner // classes allow you to encapsulate different diff --git a/innerclasses/InheritInner.java b/innerclasses/InheritInner.java index 5450d5ce..cd2cb525 100644 --- a/innerclasses/InheritInner.java +++ b/innerclasses/InheritInner.java @@ -1,7 +1,7 @@ // innerclasses/InheritInner.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Inheriting an inner class class WithInner { diff --git a/innerclasses/LocalInnerClass.java b/innerclasses/LocalInnerClass.java index 019dd4ce..cf52a214 100644 --- a/innerclasses/LocalInnerClass.java +++ b/innerclasses/LocalInnerClass.java @@ -1,7 +1,7 @@ // innerclasses/LocalInnerClass.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Holds a sequence of Objects interface Counter { diff --git a/innerclasses/MultiImplementation.java b/innerclasses/MultiImplementation.java index faa4ebd5..b4577c93 100644 --- a/innerclasses/MultiImplementation.java +++ b/innerclasses/MultiImplementation.java @@ -1,7 +1,7 @@ // innerclasses/MultiImplementation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // For concrete or abstract classes, inner classes // produce "multiple implementation inheritance" // {java innerclasses.MultiImplementation} diff --git a/innerclasses/MultiNestingAccess.java b/innerclasses/MultiNestingAccess.java index c90999ee..79abc7db 100644 --- a/innerclasses/MultiNestingAccess.java +++ b/innerclasses/MultiNestingAccess.java @@ -1,7 +1,7 @@ // innerclasses/MultiNestingAccess.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Nested classes can access all members of all // levels of the classes they are nested within diff --git a/innerclasses/Parcel1.java b/innerclasses/Parcel1.java index 0fe971da..9b8f22df 100644 --- a/innerclasses/Parcel1.java +++ b/innerclasses/Parcel1.java @@ -1,7 +1,7 @@ // innerclasses/Parcel1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating inner classes public class Parcel1 { diff --git a/innerclasses/Parcel10.java b/innerclasses/Parcel10.java index 7f0bfdc2..10f13b71 100644 --- a/innerclasses/Parcel10.java +++ b/innerclasses/Parcel10.java @@ -1,7 +1,7 @@ // innerclasses/Parcel10.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using "instance initialization" to perform // construction on an anonymous inner class diff --git a/innerclasses/Parcel11.java b/innerclasses/Parcel11.java index 0a91afba..d9f6f46a 100644 --- a/innerclasses/Parcel11.java +++ b/innerclasses/Parcel11.java @@ -1,7 +1,7 @@ // innerclasses/Parcel11.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Nested classes (static inner classes) public class Parcel11 { diff --git a/innerclasses/Parcel2.java b/innerclasses/Parcel2.java index 384d0028..3e7eb437 100644 --- a/innerclasses/Parcel2.java +++ b/innerclasses/Parcel2.java @@ -1,7 +1,7 @@ // innerclasses/Parcel2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Returning a reference to an inner class public class Parcel2 { diff --git a/innerclasses/Parcel3.java b/innerclasses/Parcel3.java index 18435451..75163e1d 100644 --- a/innerclasses/Parcel3.java +++ b/innerclasses/Parcel3.java @@ -1,7 +1,7 @@ // innerclasses/Parcel3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using .new to create instances of inner classes public class Parcel3 { diff --git a/innerclasses/Parcel5.java b/innerclasses/Parcel5.java index fe425975..3b469419 100644 --- a/innerclasses/Parcel5.java +++ b/innerclasses/Parcel5.java @@ -1,7 +1,7 @@ // innerclasses/Parcel5.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Nesting a class within a method public class Parcel5 { diff --git a/innerclasses/Parcel6.java b/innerclasses/Parcel6.java index 20c9c5b6..14699c4a 100644 --- a/innerclasses/Parcel6.java +++ b/innerclasses/Parcel6.java @@ -1,7 +1,7 @@ // innerclasses/Parcel6.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Nesting a class within a scope public class Parcel6 { diff --git a/innerclasses/Parcel7.java b/innerclasses/Parcel7.java index 36355523..e3435900 100644 --- a/innerclasses/Parcel7.java +++ b/innerclasses/Parcel7.java @@ -1,7 +1,7 @@ // innerclasses/Parcel7.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Returning an instance of an anonymous inner class public class Parcel7 { diff --git a/innerclasses/Parcel7b.java b/innerclasses/Parcel7b.java index ab194144..99b85a25 100644 --- a/innerclasses/Parcel7b.java +++ b/innerclasses/Parcel7b.java @@ -1,7 +1,7 @@ // innerclasses/Parcel7b.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Expanded version of Parcel7.java public class Parcel7b { diff --git a/innerclasses/Parcel8.java b/innerclasses/Parcel8.java index 3846839c..c8385b4e 100644 --- a/innerclasses/Parcel8.java +++ b/innerclasses/Parcel8.java @@ -1,7 +1,7 @@ // innerclasses/Parcel8.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Calling the base-class constructor public class Parcel8 { diff --git a/innerclasses/Parcel9.java b/innerclasses/Parcel9.java index c68a7247..3b1362ec 100644 --- a/innerclasses/Parcel9.java +++ b/innerclasses/Parcel9.java @@ -1,7 +1,7 @@ // innerclasses/Parcel9.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Parcel9 { // Argument must be final or "effectively final" diff --git a/innerclasses/Sequence.java b/innerclasses/Sequence.java index 983881a6..490a6677 100644 --- a/innerclasses/Sequence.java +++ b/innerclasses/Sequence.java @@ -1,7 +1,7 @@ // innerclasses/Sequence.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Holds a sequence of Objects interface Selector { diff --git a/innerclasses/TestBed.java b/innerclasses/TestBed.java index 87a453f4..8b4e00c4 100644 --- a/innerclasses/TestBed.java +++ b/innerclasses/TestBed.java @@ -1,7 +1,7 @@ // innerclasses/TestBed.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Putting test code in a nested class // {java TestBed$Tester} diff --git a/innerclasses/TestParcel.java b/innerclasses/TestParcel.java index c87fcd1a..970b2c3a 100644 --- a/innerclasses/TestParcel.java +++ b/innerclasses/TestParcel.java @@ -1,7 +1,7 @@ // innerclasses/TestParcel.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Parcel4 { private class PContents implements Contents { diff --git a/innerclasses/Wrapping.java b/innerclasses/Wrapping.java index 33584d4c..272fcac7 100644 --- a/innerclasses/Wrapping.java +++ b/innerclasses/Wrapping.java @@ -1,7 +1,7 @@ // innerclasses/Wrapping.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Wrapping { private int i; public Wrapping(int x) { i = x; } diff --git a/innerclasses/controller/Controller.java b/innerclasses/controller/Controller.java index 05c74b6b..befc46eb 100644 --- a/innerclasses/controller/Controller.java +++ b/innerclasses/controller/Controller.java @@ -1,7 +1,7 @@ // innerclasses/controller/Controller.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The reusable framework for control systems package innerclasses.controller; import java.util.*; diff --git a/innerclasses/controller/Event.java b/innerclasses/controller/Event.java index bb21a2f5..afdb4510 100644 --- a/innerclasses/controller/Event.java +++ b/innerclasses/controller/Event.java @@ -1,7 +1,7 @@ // innerclasses/controller/Event.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The common methods for any control event package innerclasses.controller; import java.time.*; // Java 8 time classes diff --git a/innerclasses/mui/MultiInterfaces.java b/innerclasses/mui/MultiInterfaces.java index 7c7f0186..0782b7b8 100644 --- a/innerclasses/mui/MultiInterfaces.java +++ b/innerclasses/mui/MultiInterfaces.java @@ -1,7 +1,7 @@ // innerclasses/mui/MultiInterfaces.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Two ways that a class can implement multiple interfaces // {java innerclasses.mui.MultiInterfaces} package innerclasses.mui; diff --git a/interfaces/AbstractAccess.java b/interfaces/AbstractAccess.java index c58988dd..8c72c2c5 100644 --- a/interfaces/AbstractAccess.java +++ b/interfaces/AbstractAccess.java @@ -1,7 +1,7 @@ // interfaces/AbstractAccess.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. abstract class AbstractAccess { private void m1() {} diff --git a/interfaces/AbstractWithoutAbstracts.java b/interfaces/AbstractWithoutAbstracts.java index d2a84fda..26c98daf 100644 --- a/interfaces/AbstractWithoutAbstracts.java +++ b/interfaces/AbstractWithoutAbstracts.java @@ -1,7 +1,7 @@ // interfaces/AbstractWithoutAbstracts.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. abstract class Basic3 { int f() { return 111; } diff --git a/interfaces/AdaptedRandomDoubles.java b/interfaces/AdaptedRandomDoubles.java index 7dd6be66..8d7cbb6b 100644 --- a/interfaces/AdaptedRandomDoubles.java +++ b/interfaces/AdaptedRandomDoubles.java @@ -1,7 +1,7 @@ // interfaces/AdaptedRandomDoubles.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating an adapter with inheritance import java.nio.*; import java.util.*; diff --git a/interfaces/Adventure.java b/interfaces/Adventure.java index dacd9414..07f42e6a 100644 --- a/interfaces/Adventure.java +++ b/interfaces/Adventure.java @@ -1,7 +1,7 @@ // interfaces/Adventure.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Multiple interfaces interface CanFight { diff --git a/interfaces/AnImplementation.java b/interfaces/AnImplementation.java index 7b510d2e..74a88dc6 100644 --- a/interfaces/AnImplementation.java +++ b/interfaces/AnImplementation.java @@ -1,7 +1,7 @@ // interfaces/AnImplementation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class AnImplementation implements AnInterface { public void firstMethod() { diff --git a/interfaces/AnInterface.java b/interfaces/AnInterface.java index 925da520..ae6a4278 100644 --- a/interfaces/AnInterface.java +++ b/interfaces/AnInterface.java @@ -1,7 +1,7 @@ // interfaces/AnInterface.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. interface AnInterface { void firstMethod(); diff --git a/interfaces/Applicator.java b/interfaces/Applicator.java index ce148e75..3e992f15 100644 --- a/interfaces/Applicator.java +++ b/interfaces/Applicator.java @@ -1,7 +1,7 @@ // interfaces/Applicator.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; class Processor { diff --git a/interfaces/AttemptToUseBasic.java b/interfaces/AttemptToUseBasic.java index 07a23cd6..1f6fb6c1 100644 --- a/interfaces/AttemptToUseBasic.java +++ b/interfaces/AttemptToUseBasic.java @@ -1,7 +1,7 @@ // interfaces/AttemptToUseBasic.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) public class AttemptToUseBasic { diff --git a/interfaces/Basic.java b/interfaces/Basic.java index f1156994..d1794416 100644 --- a/interfaces/Basic.java +++ b/interfaces/Basic.java @@ -1,7 +1,7 @@ // interfaces/Basic.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. abstract class Basic { abstract void unimplemented(); diff --git a/interfaces/Basic2.java b/interfaces/Basic2.java index 5676ab63..2fac1d65 100644 --- a/interfaces/Basic2.java +++ b/interfaces/Basic2.java @@ -1,7 +1,7 @@ // interfaces/Basic2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. abstract class Basic2 extends Basic { int f() { return 111; } diff --git a/interfaces/Factories.java b/interfaces/Factories.java index 3d42dfed..85feb9ee 100644 --- a/interfaces/Factories.java +++ b/interfaces/Factories.java @@ -1,7 +1,7 @@ // interfaces/Factories.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. interface Service { void method1(); diff --git a/interfaces/Games.java b/interfaces/Games.java index faa04206..51e58dd3 100644 --- a/interfaces/Games.java +++ b/interfaces/Games.java @@ -1,7 +1,7 @@ // interfaces/Games.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A Game framework using Factory Methods interface Game { boolean move(); } diff --git a/interfaces/HorrorShow.java b/interfaces/HorrorShow.java index 694ac606..948f1023 100644 --- a/interfaces/HorrorShow.java +++ b/interfaces/HorrorShow.java @@ -1,7 +1,7 @@ // interfaces/HorrorShow.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Extending an interface with inheritance interface Monster { diff --git a/interfaces/Implementation2.java b/interfaces/Implementation2.java index 0d307d9a..73dc8e20 100644 --- a/interfaces/Implementation2.java +++ b/interfaces/Implementation2.java @@ -1,7 +1,7 @@ // interfaces/Implementation2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Implementation2 implements InterfaceWithDefault { diff --git a/interfaces/ImplementingAnInterface.java b/interfaces/ImplementingAnInterface.java index adc49b42..8c878669 100644 --- a/interfaces/ImplementingAnInterface.java +++ b/interfaces/ImplementingAnInterface.java @@ -1,7 +1,7 @@ // interfaces/ImplementingAnInterface.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. interface Concept { // Package access void idea1(); diff --git a/interfaces/Instantiable.java b/interfaces/Instantiable.java index 80fc254d..0567d13b 100644 --- a/interfaces/Instantiable.java +++ b/interfaces/Instantiable.java @@ -1,7 +1,7 @@ // interfaces/Instantiable.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. abstract class Uninstantiable { abstract void f(); diff --git a/interfaces/InterfaceCollision.java b/interfaces/InterfaceCollision.java index 4d761b9b..64d4fd31 100644 --- a/interfaces/InterfaceCollision.java +++ b/interfaces/InterfaceCollision.java @@ -1,7 +1,7 @@ // interfaces/InterfaceCollision.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. interface I1 { void f(); } interface I2 { int f(int i); } diff --git a/interfaces/InterfaceWithDefault.java b/interfaces/InterfaceWithDefault.java index 8b378d49..7edd6862 100644 --- a/interfaces/InterfaceWithDefault.java +++ b/interfaces/InterfaceWithDefault.java @@ -1,7 +1,7 @@ // interfaces/InterfaceWithDefault.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. interface InterfaceWithDefault { void firstMethod(); diff --git a/interfaces/Jim.java b/interfaces/Jim.java index 6867be77..992b5083 100644 --- a/interfaces/Jim.java +++ b/interfaces/Jim.java @@ -1,7 +1,7 @@ // interfaces/Jim.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; interface Jim1 { diff --git a/interfaces/MICollision.java b/interfaces/MICollision.java index f257c27d..f033d6f5 100644 --- a/interfaces/MICollision.java +++ b/interfaces/MICollision.java @@ -1,7 +1,7 @@ // interfaces/MICollision.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; interface Bob1 { diff --git a/interfaces/Machine.java b/interfaces/Machine.java index d807bd25..ea0ac9af 100644 --- a/interfaces/Machine.java +++ b/interfaces/Machine.java @@ -1,7 +1,7 @@ // interfaces/Machine.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import onjava.Operation; diff --git a/interfaces/Months.java b/interfaces/Months.java index baec9892..7e716b56 100644 --- a/interfaces/Months.java +++ b/interfaces/Months.java @@ -1,7 +1,7 @@ // interfaces/Months.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using interfaces to create groups of constants public interface Months { diff --git a/interfaces/MultipleInheritance.java b/interfaces/MultipleInheritance.java index ce47d8b8..f90eee23 100644 --- a/interfaces/MultipleInheritance.java +++ b/interfaces/MultipleInheritance.java @@ -1,7 +1,7 @@ // interfaces/MultipleInheritance.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; interface One { diff --git a/interfaces/PureInterface.java b/interfaces/PureInterface.java index 8b8ea0e6..12e26b8b 100644 --- a/interfaces/PureInterface.java +++ b/interfaces/PureInterface.java @@ -1,7 +1,7 @@ // interfaces/PureInterface.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Interface only looked like this before Java 8 public interface PureInterface { diff --git a/interfaces/RandVals.java b/interfaces/RandVals.java index 75631496..7602d0fc 100644 --- a/interfaces/RandVals.java +++ b/interfaces/RandVals.java @@ -1,7 +1,7 @@ // interfaces/RandVals.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Initializing interface fields with // non-constant initializers import java.util.*; diff --git a/interfaces/RandomDoubles.java b/interfaces/RandomDoubles.java index c393c4ae..19619b4c 100644 --- a/interfaces/RandomDoubles.java +++ b/interfaces/RandomDoubles.java @@ -1,7 +1,7 @@ // interfaces/RandomDoubles.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public interface RandomDoubles { diff --git a/interfaces/RandomWords.java b/interfaces/RandomWords.java index e1769bbd..f744fd9e 100644 --- a/interfaces/RandomWords.java +++ b/interfaces/RandomWords.java @@ -1,7 +1,7 @@ // interfaces/RandomWords.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Implementing an interface to conform to a method import java.nio.*; import java.util.*; diff --git a/interfaces/TestRandVals.java b/interfaces/TestRandVals.java index 17467e3c..e7104a4b 100644 --- a/interfaces/TestRandVals.java +++ b/interfaces/TestRandVals.java @@ -1,7 +1,7 @@ // interfaces/TestRandVals.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class TestRandVals { public static void main(String[] args) { diff --git a/interfaces/filters/BandPass.java b/interfaces/filters/BandPass.java index 28bad56c..cc435344 100644 --- a/interfaces/filters/BandPass.java +++ b/interfaces/filters/BandPass.java @@ -1,7 +1,7 @@ // interfaces/filters/BandPass.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package interfaces.filters; public class BandPass extends Filter { diff --git a/interfaces/filters/Filter.java b/interfaces/filters/Filter.java index 59b2661d..bea65947 100644 --- a/interfaces/filters/Filter.java +++ b/interfaces/filters/Filter.java @@ -1,7 +1,7 @@ // interfaces/filters/Filter.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package interfaces.filters; public class Filter { diff --git a/interfaces/filters/HighPass.java b/interfaces/filters/HighPass.java index 03b1600e..26e0bd3b 100644 --- a/interfaces/filters/HighPass.java +++ b/interfaces/filters/HighPass.java @@ -1,7 +1,7 @@ // interfaces/filters/HighPass.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package interfaces.filters; public class HighPass extends Filter { diff --git a/interfaces/filters/LowPass.java b/interfaces/filters/LowPass.java index 4a21ba14..d4360193 100644 --- a/interfaces/filters/LowPass.java +++ b/interfaces/filters/LowPass.java @@ -1,7 +1,7 @@ // interfaces/filters/LowPass.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package interfaces.filters; public class LowPass extends Filter { diff --git a/interfaces/filters/Waveform.java b/interfaces/filters/Waveform.java index b2a9d6f7..50dca432 100644 --- a/interfaces/filters/Waveform.java +++ b/interfaces/filters/Waveform.java @@ -1,7 +1,7 @@ // interfaces/filters/Waveform.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package interfaces.filters; public class Waveform { diff --git a/interfaces/interfaceprocessor/Applicator.java b/interfaces/interfaceprocessor/Applicator.java index 12474a77..bcf23ecc 100644 --- a/interfaces/interfaceprocessor/Applicator.java +++ b/interfaces/interfaceprocessor/Applicator.java @@ -1,7 +1,7 @@ // interfaces/interfaceprocessor/Applicator.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package interfaces.interfaceprocessor; public class Applicator { diff --git a/interfaces/interfaceprocessor/FilterProcessor.java b/interfaces/interfaceprocessor/FilterProcessor.java index 5df986d2..96475b40 100644 --- a/interfaces/interfaceprocessor/FilterProcessor.java +++ b/interfaces/interfaceprocessor/FilterProcessor.java @@ -1,7 +1,7 @@ // interfaces/interfaceprocessor/FilterProcessor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java interfaces.interfaceprocessor.FilterProcessor} package interfaces.interfaceprocessor; import interfaces.filters.*; diff --git a/interfaces/interfaceprocessor/Processor.java b/interfaces/interfaceprocessor/Processor.java index e0a1ebf5..49c576e0 100644 --- a/interfaces/interfaceprocessor/Processor.java +++ b/interfaces/interfaceprocessor/Processor.java @@ -1,7 +1,7 @@ // interfaces/interfaceprocessor/Processor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package interfaces.interfaceprocessor; public interface Processor { diff --git a/interfaces/interfaceprocessor/StringProcessor.java b/interfaces/interfaceprocessor/StringProcessor.java index f138e6f4..3078c315 100644 --- a/interfaces/interfaceprocessor/StringProcessor.java +++ b/interfaces/interfaceprocessor/StringProcessor.java @@ -1,7 +1,7 @@ // interfaces/interfaceprocessor/StringProcessor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java interfaces.interfaceprocessor.StringProcessor} package interfaces.interfaceprocessor; import java.util.*; diff --git a/interfaces/music4/Music4.java b/interfaces/music4/Music4.java index d3077fff..43e91e84 100644 --- a/interfaces/music4/Music4.java +++ b/interfaces/music4/Music4.java @@ -1,7 +1,7 @@ // interfaces/music4/Music4.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Abstract classes and methods // {java interfaces.music4.Music4} package interfaces.music4; diff --git a/interfaces/music5/Music5.java b/interfaces/music5/Music5.java index 2ac4b7f8..f2e396e0 100644 --- a/interfaces/music5/Music5.java +++ b/interfaces/music5/Music5.java @@ -1,7 +1,7 @@ // interfaces/music5/Music5.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java interfaces.music5.Music5} package interfaces.music5; import polymorphism.music.Note; diff --git a/interfaces/nesting/NestingInterfaces.java b/interfaces/nesting/NestingInterfaces.java index 4b3985ad..97c5e6c8 100644 --- a/interfaces/nesting/NestingInterfaces.java +++ b/interfaces/nesting/NestingInterfaces.java @@ -1,7 +1,7 @@ // interfaces/nesting/NestingInterfaces.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java interfaces.nesting.NestingInterfaces} package interfaces.nesting; diff --git a/iostreams/BasicFileOutput.java b/iostreams/BasicFileOutput.java index 490cb58c..24cbcf3d 100644 --- a/iostreams/BasicFileOutput.java +++ b/iostreams/BasicFileOutput.java @@ -1,7 +1,7 @@ // iostreams/BasicFileOutput.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {ValidateByHand} import java.io.*; diff --git a/iostreams/BufferedInputFile.java b/iostreams/BufferedInputFile.java index 4e3871ee..05c6ca40 100644 --- a/iostreams/BufferedInputFile.java +++ b/iostreams/BufferedInputFile.java @@ -1,7 +1,7 @@ // iostreams/BufferedInputFile.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {ValidateByHand} import java.io.*; diff --git a/iostreams/FileOutputShortcut.java b/iostreams/FileOutputShortcut.java index de0a3048..a5289389 100644 --- a/iostreams/FileOutputShortcut.java +++ b/iostreams/FileOutputShortcut.java @@ -1,7 +1,7 @@ // iostreams/FileOutputShortcut.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {ValidateByHand} import java.io.*; diff --git a/iostreams/FormattedMemoryInput.java b/iostreams/FormattedMemoryInput.java index 73a511fc..c0bf8b4c 100644 --- a/iostreams/FormattedMemoryInput.java +++ b/iostreams/FormattedMemoryInput.java @@ -1,7 +1,7 @@ // iostreams/FormattedMemoryInput.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {ValidateByHand} import java.io.*; diff --git a/iostreams/MemoryInput.java b/iostreams/MemoryInput.java index d2cb0533..82f332b8 100644 --- a/iostreams/MemoryInput.java +++ b/iostreams/MemoryInput.java @@ -1,7 +1,7 @@ // iostreams/MemoryInput.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {ValidateByHand} import java.io.*; diff --git a/iostreams/StoringAndRecoveringData.java b/iostreams/StoringAndRecoveringData.java index 8e080062..37320f24 100644 --- a/iostreams/StoringAndRecoveringData.java +++ b/iostreams/StoringAndRecoveringData.java @@ -1,7 +1,7 @@ // iostreams/StoringAndRecoveringData.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; public class StoringAndRecoveringData { diff --git a/iostreams/TestEOF.java b/iostreams/TestEOF.java index ea1168cd..8498bfa1 100644 --- a/iostreams/TestEOF.java +++ b/iostreams/TestEOF.java @@ -1,7 +1,7 @@ // iostreams/TestEOF.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Testing for end of file // {ValidateByHand} import java.io.*; diff --git a/iostreams/UsingRandomAccessFile.java b/iostreams/UsingRandomAccessFile.java index 6dcdd7e2..c9708a9b 100644 --- a/iostreams/UsingRandomAccessFile.java +++ b/iostreams/UsingRandomAccessFile.java @@ -1,7 +1,7 @@ // iostreams/UsingRandomAccessFile.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; public class UsingRandomAccessFile { diff --git a/network/ChatterClient.java b/network/ChatterClient.java index 40336154..f2547cfc 100644 --- a/network/ChatterClient.java +++ b/network/ChatterClient.java @@ -1,7 +1,7 @@ // network/ChatterClient.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Starts multiple clients, each of which sends datagrams. package network; import java.net.*; diff --git a/network/ChatterServer.java b/network/ChatterServer.java index 72974cf6..a5d679db 100644 --- a/network/ChatterServer.java +++ b/network/ChatterServer.java @@ -1,7 +1,7 @@ // network/ChatterServer.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A server that echoes datagrams package network; import java.net.*; diff --git a/network/Dgram.java b/network/Dgram.java index e1544ae6..cfd0bafc 100644 --- a/network/Dgram.java +++ b/network/Dgram.java @@ -1,7 +1,7 @@ // network/Dgram.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Converts between Strings and DataGramPackets package network; import java.net.*; diff --git a/network/LocalHost.java b/network/LocalHost.java index f191c114..1da36fda 100644 --- a/network/LocalHost.java +++ b/network/LocalHost.java @@ -1,7 +1,7 @@ // network/LocalHost.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The local loopback IP address import java.net.*; diff --git a/network/MultiServer.java b/network/MultiServer.java index e13756e2..2038c7e8 100644 --- a/network/MultiServer.java +++ b/network/MultiServer.java @@ -1,7 +1,7 @@ // network/MultiServer.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Uses threads to handle any number of clients. package network; import java.io.*; diff --git a/network/SimpleClient.java b/network/SimpleClient.java index 601d6646..a38f98ce 100644 --- a/network/SimpleClient.java +++ b/network/SimpleClient.java @@ -1,7 +1,7 @@ // network/SimpleClient.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Sends lines to the server and // reads lines the server sends. package network; diff --git a/network/SimpleClient2.java b/network/SimpleClient2.java index 0f6e0f79..06b4b22c 100644 --- a/network/SimpleClient2.java +++ b/network/SimpleClient2.java @@ -1,7 +1,7 @@ // network/SimpleClient2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package network; import java.net.*; import java.io.*; diff --git a/network/SimpleServer.java b/network/SimpleServer.java index 719aed7f..1ee721f4 100644 --- a/network/SimpleServer.java +++ b/network/SimpleServer.java @@ -1,7 +1,7 @@ // network/SimpleServer.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Echoes what the client sends. package network; import java.io.*; diff --git a/network/WhoAmI.java b/network/WhoAmI.java index 5ded836f..e09b56b0 100644 --- a/network/WhoAmI.java +++ b/network/WhoAmI.java @@ -1,7 +1,7 @@ // network/WhoAmI.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Discovers your machine name and network address. import java.net.*; diff --git a/network/tests/ChatterTest.java b/network/tests/ChatterTest.java index 1175b593..97de353c 100644 --- a/network/tests/ChatterTest.java +++ b/network/tests/ChatterTest.java @@ -1,7 +1,7 @@ // network/tests/ChatterTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package network; import java.net.*; import org.junit.jupiter.api.*; diff --git a/network/tests/MultiTest.java b/network/tests/MultiTest.java index 175e6fb4..bb0ec1e0 100644 --- a/network/tests/MultiTest.java +++ b/network/tests/MultiTest.java @@ -1,7 +1,7 @@ // network/tests/MultiTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package network; import java.net.*; import org.junit.jupiter.api.*; diff --git a/network/tests/TestSimpleServerClient.java b/network/tests/TestSimpleServerClient.java index 33c79f45..cc3618cb 100644 --- a/network/tests/TestSimpleServerClient.java +++ b/network/tests/TestSimpleServerClient.java @@ -1,7 +1,7 @@ // network/tests/TestSimpleServerClient.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package network; import java.net.*; import org.junit.jupiter.api.*; diff --git a/newio/AvailableCharSets.java b/newio/AvailableCharSets.java index 00f7326e..442ad380 100644 --- a/newio/AvailableCharSets.java +++ b/newio/AvailableCharSets.java @@ -1,7 +1,7 @@ // newio/AvailableCharSets.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Displays Charsets and aliases import java.nio.charset.*; import java.util.*; diff --git a/newio/BufferToText.java b/newio/BufferToText.java index c5bc163e..79aa21eb 100644 --- a/newio/BufferToText.java +++ b/newio/BufferToText.java @@ -1,7 +1,7 @@ // newio/BufferToText.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Converting text to and from ByteBuffers import java.nio.*; import java.nio.channels.*; diff --git a/newio/ChannelCopy.java b/newio/ChannelCopy.java index c3747482..8f335eb0 100644 --- a/newio/ChannelCopy.java +++ b/newio/ChannelCopy.java @@ -1,7 +1,7 @@ // newio/ChannelCopy.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Copying a file using channels and buffers // {java ChannelCopy ChannelCopy.java test.txt} import java.nio.*; diff --git a/newio/Endians.java b/newio/Endians.java index a0fc8760..afa516ac 100644 --- a/newio/Endians.java +++ b/newio/Endians.java @@ -1,7 +1,7 @@ // newio/Endians.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Endian differences and data storage import java.nio.*; import java.util.*; diff --git a/newio/FileLocking.java b/newio/FileLocking.java index 68e044d6..a3ba350f 100644 --- a/newio/FileLocking.java +++ b/newio/FileLocking.java @@ -1,7 +1,7 @@ // newio/FileLocking.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.nio.channels.*; import java.util.concurrent.*; import java.io.*; diff --git a/newio/GetData.java b/newio/GetData.java index 9d0421c3..22e2001b 100644 --- a/newio/GetData.java +++ b/newio/GetData.java @@ -1,7 +1,7 @@ // newio/GetData.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Getting different representations from a ByteBuffer import java.nio.*; diff --git a/newio/IntBufferDemo.java b/newio/IntBufferDemo.java index dd11d3ec..e0e17a7e 100644 --- a/newio/IntBufferDemo.java +++ b/newio/IntBufferDemo.java @@ -1,7 +1,7 @@ // newio/IntBufferDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Manipulating ints in a ByteBuffer with an IntBuffer import java.nio.*; diff --git a/newio/LargeMappedFiles.java b/newio/LargeMappedFiles.java index ff845539..c9d57705 100644 --- a/newio/LargeMappedFiles.java +++ b/newio/LargeMappedFiles.java @@ -1,7 +1,7 @@ // newio/LargeMappedFiles.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating a very large file using mapping import java.nio.*; import java.nio.channels.*; diff --git a/newio/LockingMappedFiles.java b/newio/LockingMappedFiles.java index 20c8205b..1f88945a 100644 --- a/newio/LockingMappedFiles.java +++ b/newio/LockingMappedFiles.java @@ -1,7 +1,7 @@ // newio/LockingMappedFiles.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Locking portions of a mapped file import java.nio.*; import java.nio.channels.*; diff --git a/newio/TransferTo.java b/newio/TransferTo.java index b2b883f0..7680384e 100644 --- a/newio/TransferTo.java +++ b/newio/TransferTo.java @@ -1,7 +1,7 @@ // newio/TransferTo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using transferTo() between channels // {java TransferTo TransferTo.java TransferTo.txt} import java.nio.channels.*; diff --git a/newio/UsingBuffers.java b/newio/UsingBuffers.java index 3acf6c7a..b6c9209f 100644 --- a/newio/UsingBuffers.java +++ b/newio/UsingBuffers.java @@ -1,7 +1,7 @@ // newio/UsingBuffers.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.nio.*; public class UsingBuffers { diff --git a/newio/ViewBuffers.java b/newio/ViewBuffers.java index a3fa9b05..ce6c51ee 100644 --- a/newio/ViewBuffers.java +++ b/newio/ViewBuffers.java @@ -1,7 +1,7 @@ // newio/ViewBuffers.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.nio.*; public class ViewBuffers { diff --git a/objects/Documentation1.java b/objects/Documentation1.java index a9476975..91ae9619 100644 --- a/objects/Documentation1.java +++ b/objects/Documentation1.java @@ -1,7 +1,7 @@ // objects/Documentation1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. /** A class comment */ public class Documentation1 { /** A field comment */ diff --git a/objects/Documentation2.java b/objects/Documentation2.java index 0a403f2c..88569b34 100644 --- a/objects/Documentation2.java +++ b/objects/Documentation2.java @@ -1,7 +1,7 @@ // objects/Documentation2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. /**
  * System.out.println(new Date());
  * 
diff --git a/objects/Documentation3.java b/objects/Documentation3.java index f69f452e..56e01334 100644 --- a/objects/Documentation3.java +++ b/objects/Documentation3.java @@ -1,7 +1,7 @@ // objects/Documentation3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. /** You can even insert a list: *
    *
  1. Item one diff --git a/objects/HelloDate.java b/objects/HelloDate.java index c8d103ac..73530bb3 100644 --- a/objects/HelloDate.java +++ b/objects/HelloDate.java @@ -1,7 +1,7 @@ // objects/HelloDate.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; /** The first On Java example program. diff --git a/objects/ShowProperties.java b/objects/ShowProperties.java index ef3d4de2..84471df4 100644 --- a/objects/ShowProperties.java +++ b/objects/ShowProperties.java @@ -1,7 +1,7 @@ // objects/ShowProperties.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class ShowProperties { public static void main(String[] args) { diff --git a/onjava/ArrayShow.java b/onjava/ArrayShow.java index 078d9373..4e94ad37 100644 --- a/onjava/ArrayShow.java +++ b/onjava/ArrayShow.java @@ -1,7 +1,7 @@ // onjava/ArrayShow.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; import java.util.*; diff --git a/onjava/BasicSupplier.java b/onjava/BasicSupplier.java index e1c7e855..6971478f 100644 --- a/onjava/BasicSupplier.java +++ b/onjava/BasicSupplier.java @@ -1,7 +1,7 @@ // onjava/BasicSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Supplier from a class with a no-arg constructor package onjava; import java.util.function.*; diff --git a/onjava/CollectionMethodDifferences.java b/onjava/CollectionMethodDifferences.java index dec100af..a848b333 100644 --- a/onjava/CollectionMethodDifferences.java +++ b/onjava/CollectionMethodDifferences.java @@ -1,7 +1,7 @@ // onjava/CollectionMethodDifferences.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java onjava.CollectionMethodDifferences} package onjava; import java.lang.reflect.*; diff --git a/onjava/ConvertTo.java b/onjava/ConvertTo.java index 3d4fd850..015d636b 100644 --- a/onjava/ConvertTo.java +++ b/onjava/ConvertTo.java @@ -1,7 +1,7 @@ // onjava/ConvertTo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; public interface ConvertTo { diff --git a/onjava/Count.java b/onjava/Count.java index aba21970..0a5f717e 100644 --- a/onjava/Count.java +++ b/onjava/Count.java @@ -1,7 +1,7 @@ // onjava/Count.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Generate incremental values of different types package onjava; import java.util.*; diff --git a/onjava/CountMap.java b/onjava/CountMap.java index 72a174e8..791a2fdd 100644 --- a/onjava/CountMap.java +++ b/onjava/CountMap.java @@ -1,7 +1,7 @@ // onjava/CountMap.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Unlimited-length Map containing sample data // {java onjava.CountMap} package onjava; diff --git a/onjava/CountingIntegerList.java b/onjava/CountingIntegerList.java index c457f1b8..f299424a 100644 --- a/onjava/CountingIntegerList.java +++ b/onjava/CountingIntegerList.java @@ -1,7 +1,7 @@ // onjava/CountingIntegerList.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // List of any length, containing sample data // {java onjava.CountingIntegerList} package onjava; diff --git a/onjava/Countries.java b/onjava/Countries.java index e9445899..6cc8d646 100644 --- a/onjava/Countries.java +++ b/onjava/Countries.java @@ -1,7 +1,7 @@ // onjava/Countries.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // "Flyweight" Maps and Lists of sample data // {java onjava.Countries} package onjava; diff --git a/onjava/Enums.java b/onjava/Enums.java index a9d1c85b..26f625a2 100644 --- a/onjava/Enums.java +++ b/onjava/Enums.java @@ -1,7 +1,7 @@ // onjava/Enums.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; import java.util.*; diff --git a/onjava/FillMap.java b/onjava/FillMap.java index ff271d9d..880abe2c 100644 --- a/onjava/FillMap.java +++ b/onjava/FillMap.java @@ -1,7 +1,7 @@ // onjava/FillMap.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; import java.util.*; import java.util.function.*; diff --git a/onjava/Hex.java b/onjava/Hex.java index 29c9b0dd..a1cbaf2b 100644 --- a/onjava/Hex.java +++ b/onjava/Hex.java @@ -1,7 +1,7 @@ // onjava/Hex.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java onjava.Hex} package onjava; import java.io.*; diff --git a/onjava/MouseClick.java b/onjava/MouseClick.java index 801a8ff5..39259efc 100644 --- a/onjava/MouseClick.java +++ b/onjava/MouseClick.java @@ -1,7 +1,7 @@ // onjava/MouseClick.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Helper interface to allow lambda expressions package onjava; import java.awt.event.*; diff --git a/onjava/Null.java b/onjava/Null.java index 6d5cdc67..a89f8102 100644 --- a/onjava/Null.java +++ b/onjava/Null.java @@ -1,6 +1,6 @@ // onjava/Null.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; public interface Null {} diff --git a/onjava/OSExecute.java b/onjava/OSExecute.java index 6c9a5954..df2d1e2a 100644 --- a/onjava/OSExecute.java +++ b/onjava/OSExecute.java @@ -1,7 +1,7 @@ // onjava/OSExecute.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Run an operating system command // and send the output to the console package onjava; diff --git a/onjava/OSExecuteException.java b/onjava/OSExecuteException.java index e8cb8919..aa3a372d 100644 --- a/onjava/OSExecuteException.java +++ b/onjava/OSExecuteException.java @@ -1,7 +1,7 @@ // onjava/OSExecuteException.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; public class OSExecuteException extends RuntimeException { diff --git a/onjava/Operation.java b/onjava/Operation.java index ca97d129..804500e6 100644 --- a/onjava/Operation.java +++ b/onjava/Operation.java @@ -1,7 +1,7 @@ // onjava/Operation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; import java.util.*; diff --git a/onjava/Pair.java b/onjava/Pair.java index 55455e63..7eae2909 100644 --- a/onjava/Pair.java +++ b/onjava/Pair.java @@ -1,7 +1,7 @@ // onjava/Pair.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; public class Pair { diff --git a/onjava/ProcessFiles.java b/onjava/ProcessFiles.java index 583f27f6..c2d92754 100644 --- a/onjava/ProcessFiles.java +++ b/onjava/ProcessFiles.java @@ -1,7 +1,7 @@ // onjava/ProcessFiles.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {ValidateByHand} // {java onjava.ProcessFiles} package onjava; diff --git a/onjava/Rand.java b/onjava/Rand.java index d8f075b4..10dc8b21 100644 --- a/onjava/Rand.java +++ b/onjava/Rand.java @@ -1,7 +1,7 @@ // onjava/Rand.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Generate random values of different types package onjava; import java.util.*; diff --git a/onjava/Range.java b/onjava/Range.java index 70565c69..1def5045 100644 --- a/onjava/Range.java +++ b/onjava/Range.java @@ -1,7 +1,7 @@ // onjava/Range.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Array creation methods that can be used without // qualifiers, using static imports: package onjava; diff --git a/onjava/Repeat.java b/onjava/Repeat.java index c1c954e0..97257967 100644 --- a/onjava/Repeat.java +++ b/onjava/Repeat.java @@ -1,7 +1,7 @@ // onjava/Repeat.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; import static java.util.stream.IntStream.*; diff --git a/onjava/RmDir.java b/onjava/RmDir.java index 1d4e7d65..864e1454 100644 --- a/onjava/RmDir.java +++ b/onjava/RmDir.java @@ -1,7 +1,7 @@ // onjava/RmDir.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; import java.nio.file.*; import java.nio.file.attribute.BasicFileAttributes; diff --git a/onjava/Sets.java b/onjava/Sets.java index bdd11e2f..4500349a 100644 --- a/onjava/Sets.java +++ b/onjava/Sets.java @@ -1,7 +1,7 @@ // onjava/Sets.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; import java.util.*; diff --git a/onjava/Sleep.java b/onjava/Sleep.java index d30658ae..b3c04213 100644 --- a/onjava/Sleep.java +++ b/onjava/Sleep.java @@ -1,7 +1,7 @@ // onjava/Sleep.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Sleep for n seconds package onjava; import java.util.concurrent.*; diff --git a/onjava/Stack.java b/onjava/Stack.java index 0ef58a06..a1687606 100644 --- a/onjava/Stack.java +++ b/onjava/Stack.java @@ -1,7 +1,7 @@ // onjava/Stack.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A Stack class built with an ArrayDeque package onjava; import java.util.Deque; diff --git a/onjava/Suppliers.java b/onjava/Suppliers.java index c04f4527..a7c52eb7 100644 --- a/onjava/Suppliers.java +++ b/onjava/Suppliers.java @@ -1,7 +1,7 @@ // onjava/Suppliers.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A utility to use with Suppliers package onjava; import java.util.*; diff --git a/onjava/TimedAbort.java b/onjava/TimedAbort.java index 69fbfd7c..b4be68c1 100644 --- a/onjava/TimedAbort.java +++ b/onjava/TimedAbort.java @@ -1,7 +1,7 @@ // onjava/TimedAbort.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Terminate a program after n seconds package onjava; import java.util.*; diff --git a/onjava/Tuple.java b/onjava/Tuple.java index ac6bef81..dc75b798 100644 --- a/onjava/Tuple.java +++ b/onjava/Tuple.java @@ -1,7 +1,7 @@ // onjava/Tuple.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Tuple library using type argument inference package onjava; diff --git a/onjava/Tuple2.java b/onjava/Tuple2.java index 1979dc84..ec7f86d2 100644 --- a/onjava/Tuple2.java +++ b/onjava/Tuple2.java @@ -1,7 +1,7 @@ // onjava/Tuple2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; public class Tuple2 { diff --git a/onjava/Tuple3.java b/onjava/Tuple3.java index f324a56d..aeb3c4c3 100644 --- a/onjava/Tuple3.java +++ b/onjava/Tuple3.java @@ -1,7 +1,7 @@ // onjava/Tuple3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; public class Tuple3 extends Tuple2 { diff --git a/onjava/Tuple4.java b/onjava/Tuple4.java index 3b95e62e..1adb02fd 100644 --- a/onjava/Tuple4.java +++ b/onjava/Tuple4.java @@ -1,7 +1,7 @@ // onjava/Tuple4.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; public class Tuple4 diff --git a/onjava/Tuple5.java b/onjava/Tuple5.java index b4dc16c5..b10ebfec 100644 --- a/onjava/Tuple5.java +++ b/onjava/Tuple5.java @@ -1,7 +1,7 @@ // onjava/Tuple5.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package onjava; public class Tuple5 diff --git a/onjava/TypeCounter.java b/onjava/TypeCounter.java index f94a8bd4..a314ec31 100644 --- a/onjava/TypeCounter.java +++ b/onjava/TypeCounter.java @@ -1,7 +1,7 @@ // onjava/TypeCounter.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Counts instances of a type family package onjava; import java.util.*; diff --git a/onjava/atunit/AtUnit.java b/onjava/atunit/AtUnit.java index 34b1f6c5..c2204824 100644 --- a/onjava/atunit/AtUnit.java +++ b/onjava/atunit/AtUnit.java @@ -1,7 +1,7 @@ // onjava/atunit/AtUnit.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // An annotation-based unit-test framework // {java onjava.atunit.AtUnit} package onjava.atunit; diff --git a/onjava/atunit/ClassNameFinder.java b/onjava/atunit/ClassNameFinder.java index 55e33694..8c0eff78 100644 --- a/onjava/atunit/ClassNameFinder.java +++ b/onjava/atunit/ClassNameFinder.java @@ -1,7 +1,7 @@ // onjava/atunit/ClassNameFinder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java onjava.atunit.ClassNameFinder} package onjava.atunit; import java.io.*; diff --git a/onjava/atunit/Test.java b/onjava/atunit/Test.java index 4946c4c5..f45818b0 100644 --- a/onjava/atunit/Test.java +++ b/onjava/atunit/Test.java @@ -1,7 +1,7 @@ // onjava/atunit/Test.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The @Test tag package onjava.atunit; import java.lang.annotation.*; diff --git a/onjava/atunit/TestObjectCleanup.java b/onjava/atunit/TestObjectCleanup.java index 35c6b019..69036c0e 100644 --- a/onjava/atunit/TestObjectCleanup.java +++ b/onjava/atunit/TestObjectCleanup.java @@ -1,7 +1,7 @@ // onjava/atunit/TestObjectCleanup.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The @Unit @TestObjectCleanup tag package onjava.atunit; import java.lang.annotation.*; diff --git a/onjava/atunit/TestObjectCreate.java b/onjava/atunit/TestObjectCreate.java index 8b7271b2..aa2d68ce 100644 --- a/onjava/atunit/TestObjectCreate.java +++ b/onjava/atunit/TestObjectCreate.java @@ -1,7 +1,7 @@ // onjava/atunit/TestObjectCreate.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The @Unit @TestObjectCreate tag package onjava.atunit; import java.lang.annotation.*; diff --git a/onjava/atunit/TestProperty.java b/onjava/atunit/TestProperty.java index d13fd5a1..04c41d82 100644 --- a/onjava/atunit/TestProperty.java +++ b/onjava/atunit/TestProperty.java @@ -1,7 +1,7 @@ // onjava/atunit/TestProperty.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The @Unit @TestProperty tag package onjava.atunit; import java.lang.annotation.*; diff --git a/operators/AllOps.java b/operators/AllOps.java index b0afec16..59fb13dc 100644 --- a/operators/AllOps.java +++ b/operators/AllOps.java @@ -1,7 +1,7 @@ // operators/AllOps.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Tests all operators on all primitive data types // to show which ones are accepted by the Java compiler diff --git a/operators/Assignment.java b/operators/Assignment.java index 9e57fbb6..1ca645c8 100644 --- a/operators/Assignment.java +++ b/operators/Assignment.java @@ -1,7 +1,7 @@ // operators/Assignment.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Assignment with objects is a bit tricky class Tank { diff --git a/operators/AutoInc.java b/operators/AutoInc.java index ee1ad587..bed3340c 100644 --- a/operators/AutoInc.java +++ b/operators/AutoInc.java @@ -1,7 +1,7 @@ // operators/AutoInc.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates the ++ and -- operators public class AutoInc { diff --git a/operators/BitManipulation.java b/operators/BitManipulation.java index 5541c9c2..815599a5 100644 --- a/operators/BitManipulation.java +++ b/operators/BitManipulation.java @@ -1,7 +1,7 @@ // operators/BitManipulation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using the bitwise operators import java.util.*; diff --git a/operators/Bool.java b/operators/Bool.java index e2b885a5..125d8f29 100644 --- a/operators/Bool.java +++ b/operators/Bool.java @@ -1,7 +1,7 @@ // operators/Bool.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Relational and logical operators import java.util.*; diff --git a/operators/Casting.java b/operators/Casting.java index ed2bf716..2d22475f 100644 --- a/operators/Casting.java +++ b/operators/Casting.java @@ -1,7 +1,7 @@ // operators/Casting.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Casting { public static void main(String[] args) { diff --git a/operators/CastingNumbers.java b/operators/CastingNumbers.java index 0f37c7d4..7c291650 100644 --- a/operators/CastingNumbers.java +++ b/operators/CastingNumbers.java @@ -1,7 +1,7 @@ // operators/CastingNumbers.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // What happens when you cast a float // or double to an integral value? diff --git a/operators/EqualsMethod.java b/operators/EqualsMethod.java index fbdb099c..90e38006 100644 --- a/operators/EqualsMethod.java +++ b/operators/EqualsMethod.java @@ -1,7 +1,7 @@ // operators/EqualsMethod.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class EqualsMethod { public static void main(String[] args) { diff --git a/operators/EqualsMethod2.java b/operators/EqualsMethod2.java index 2c4f8196..857c27d5 100644 --- a/operators/EqualsMethod2.java +++ b/operators/EqualsMethod2.java @@ -1,7 +1,7 @@ // operators/EqualsMethod2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Default equals() does not compare contents class Value { diff --git a/operators/Equivalence.java b/operators/Equivalence.java index e9fdcc70..4a0ddf9a 100644 --- a/operators/Equivalence.java +++ b/operators/Equivalence.java @@ -1,7 +1,7 @@ // operators/Equivalence.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Equivalence { public static void main(String[] args) { diff --git a/operators/Exponents.java b/operators/Exponents.java index 4881b6f3..21a027a0 100644 --- a/operators/Exponents.java +++ b/operators/Exponents.java @@ -1,7 +1,7 @@ // operators/Exponents.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // "e" means "10 to the power." public class Exponents { diff --git a/operators/Literals.java b/operators/Literals.java index 35947e41..c3e003da 100644 --- a/operators/Literals.java +++ b/operators/Literals.java @@ -1,7 +1,7 @@ // operators/Literals.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Literals { public static void main(String[] args) { diff --git a/operators/MathOps.java b/operators/MathOps.java index a75fd84a..1fd7b531 100644 --- a/operators/MathOps.java +++ b/operators/MathOps.java @@ -1,7 +1,7 @@ // operators/MathOps.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The mathematical operators import java.util.*; diff --git a/operators/Overflow.java b/operators/Overflow.java index 4e75edcd..dfb207ad 100644 --- a/operators/Overflow.java +++ b/operators/Overflow.java @@ -1,7 +1,7 @@ // operators/Overflow.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Surprise! Java lets you overflow public class Overflow { diff --git a/operators/PassObject.java b/operators/PassObject.java index f1e9564f..50b7793a 100644 --- a/operators/PassObject.java +++ b/operators/PassObject.java @@ -1,7 +1,7 @@ // operators/PassObject.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Passing objects to methods might not be // what you're used to diff --git a/operators/Precedence.java b/operators/Precedence.java index 8d3f95bd..b77adfe5 100644 --- a/operators/Precedence.java +++ b/operators/Precedence.java @@ -1,7 +1,7 @@ // operators/Precedence.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Precedence { public static void main(String[] args) { diff --git a/operators/RoundingNumbers.java b/operators/RoundingNumbers.java index c98d6281..d6ebcc32 100644 --- a/operators/RoundingNumbers.java +++ b/operators/RoundingNumbers.java @@ -1,7 +1,7 @@ // operators/RoundingNumbers.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Rounding floats and doubles public class RoundingNumbers { diff --git a/operators/ShortCircuit.java b/operators/ShortCircuit.java index 3f58f82e..d0c586a4 100644 --- a/operators/ShortCircuit.java +++ b/operators/ShortCircuit.java @@ -1,7 +1,7 @@ // operators/ShortCircuit.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Short-circuiting behavior with logical operators public class ShortCircuit { diff --git a/operators/StringOperators.java b/operators/StringOperators.java index d247f9b8..65da96e0 100644 --- a/operators/StringOperators.java +++ b/operators/StringOperators.java @@ -1,7 +1,7 @@ // operators/StringOperators.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class StringOperators { public static void main(String[] args) { diff --git a/operators/TernaryIfElse.java b/operators/TernaryIfElse.java index 83ad41e5..d7e36fb3 100644 --- a/operators/TernaryIfElse.java +++ b/operators/TernaryIfElse.java @@ -1,7 +1,7 @@ // operators/TernaryIfElse.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class TernaryIfElse { static int ternary(int i) { diff --git a/operators/URShift.java b/operators/URShift.java index e2ae68dd..51ebabe3 100644 --- a/operators/URShift.java +++ b/operators/URShift.java @@ -1,7 +1,7 @@ // operators/URShift.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Test of unsigned right shift public class URShift { diff --git a/operators/Underscores.java b/operators/Underscores.java index 36b6625c..de9a0c1e 100644 --- a/operators/Underscores.java +++ b/operators/Underscores.java @@ -1,7 +1,7 @@ // operators/Underscores.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Underscores { public static void main(String[] args) { diff --git a/patterns/CommandPattern.java b/patterns/CommandPattern.java index 774d9d84..3bf0a508 100644 --- a/patterns/CommandPattern.java +++ b/patterns/CommandPattern.java @@ -1,7 +1,7 @@ // patterns/CommandPattern.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class CommandPattern { diff --git a/patterns/Facade.java b/patterns/Facade.java index 606324a2..0e708ff4 100644 --- a/patterns/Facade.java +++ b/patterns/Facade.java @@ -1,7 +1,7 @@ // patterns/Facade.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class A { public A(int x) {} } class B { public B(long x) {} } diff --git a/patterns/PaperScissorsRock.java b/patterns/PaperScissorsRock.java index 29e8b0bb..247641b5 100644 --- a/patterns/PaperScissorsRock.java +++ b/patterns/PaperScissorsRock.java @@ -1,7 +1,7 @@ // patterns/PaperScissorsRock.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstration of multiple dispatching import java.util.*; import java.util.function.*; diff --git a/patterns/ProxyDemo.java b/patterns/ProxyDemo.java index 1323a97f..d7d9cd2c 100644 --- a/patterns/ProxyDemo.java +++ b/patterns/ProxyDemo.java @@ -1,7 +1,7 @@ // patterns/ProxyDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Simple demonstration of the Proxy pattern interface ProxyBase { diff --git a/patterns/ShapeFactory2.java b/patterns/ShapeFactory2.java index 692e487e..4a66eb0b 100644 --- a/patterns/ShapeFactory2.java +++ b/patterns/ShapeFactory2.java @@ -1,7 +1,7 @@ // patterns/ShapeFactory2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Polymorphic factory methods import java.util.*; import java.util.function.*; diff --git a/patterns/StateDemo.java b/patterns/StateDemo.java index 4a738b9e..e369cd1d 100644 --- a/patterns/StateDemo.java +++ b/patterns/StateDemo.java @@ -1,7 +1,7 @@ // patterns/StateDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Simple demonstration of the State pattern interface StateBase { diff --git a/patterns/TemplateMethod.java b/patterns/TemplateMethod.java index 4a98f497..b6b6ad9e 100644 --- a/patterns/TemplateMethod.java +++ b/patterns/TemplateMethod.java @@ -1,7 +1,7 @@ // patterns/TemplateMethod.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Simple demonstration of Template Method import java.util.stream.*; diff --git a/patterns/absfactory/GameEnvironment.java b/patterns/absfactory/GameEnvironment.java index 26f2e47a..79ef9d18 100644 --- a/patterns/absfactory/GameEnvironment.java +++ b/patterns/absfactory/GameEnvironment.java @@ -1,7 +1,7 @@ // patterns/absfactory/GameEnvironment.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // An example of the Abstract Factory pattern // {java patterns.absfactory.GameEnvironment} package patterns.absfactory; diff --git a/patterns/adapt/Adapter.java b/patterns/adapt/Adapter.java index 7001c878..ad699dc7 100644 --- a/patterns/adapt/Adapter.java +++ b/patterns/adapt/Adapter.java @@ -1,7 +1,7 @@ // patterns/adapt/Adapter.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Variations on the Adapter pattern // {java patterns.adapt.Adapter} package patterns.adapt; diff --git a/patterns/chain/ChainOfResponsibility.java b/patterns/chain/ChainOfResponsibility.java index f94b7cbc..c6a75a5e 100644 --- a/patterns/chain/ChainOfResponsibility.java +++ b/patterns/chain/ChainOfResponsibility.java @@ -1,7 +1,7 @@ // patterns/chain/ChainOfResponsibility.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using the Functional interface // {java patterns.chain.ChainOfResponsibility} package patterns.chain; diff --git a/patterns/doubledispatch/Aluminum.java b/patterns/doubledispatch/Aluminum.java index 75d9e724..f270036f 100644 --- a/patterns/doubledispatch/Aluminum.java +++ b/patterns/doubledispatch/Aluminum.java @@ -1,7 +1,7 @@ // patterns/doubledispatch/Aluminum.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Aluminum for double dispatching package patterns.doubledispatch; import patterns.trash.*; diff --git a/patterns/doubledispatch/Cardboard.java b/patterns/doubledispatch/Cardboard.java index 90008eda..fcaf4390 100644 --- a/patterns/doubledispatch/Cardboard.java +++ b/patterns/doubledispatch/Cardboard.java @@ -1,7 +1,7 @@ // patterns/doubledispatch/Cardboard.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Cardboard for double dispatching package patterns.doubledispatch; import patterns.trash.*; diff --git a/patterns/doubledispatch/DoubleDispatch.java b/patterns/doubledispatch/DoubleDispatch.java index ea2eab50..a1e3576b 100644 --- a/patterns/doubledispatch/DoubleDispatch.java +++ b/patterns/doubledispatch/DoubleDispatch.java @@ -1,7 +1,7 @@ // patterns/doubledispatch/DoubleDispatch.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using multiple dispatching to handle more // than one unknown type during a method call // {java patterns.doubledispatch.DoubleDispatch} diff --git a/patterns/doubledispatch/Glass.java b/patterns/doubledispatch/Glass.java index 780aeb79..19b192a4 100644 --- a/patterns/doubledispatch/Glass.java +++ b/patterns/doubledispatch/Glass.java @@ -1,7 +1,7 @@ // patterns/doubledispatch/Glass.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Glass for double dispatching package patterns.doubledispatch; import patterns.trash.*; diff --git a/patterns/doubledispatch/Paper.java b/patterns/doubledispatch/Paper.java index befca756..4a1af5c3 100644 --- a/patterns/doubledispatch/Paper.java +++ b/patterns/doubledispatch/Paper.java @@ -1,7 +1,7 @@ // patterns/doubledispatch/Paper.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Paper for double dispatching package patterns.doubledispatch; import patterns.trash.*; diff --git a/patterns/doubledispatch/TypedBin.java b/patterns/doubledispatch/TypedBin.java index 887e0663..2f211915 100644 --- a/patterns/doubledispatch/TypedBin.java +++ b/patterns/doubledispatch/TypedBin.java @@ -1,7 +1,7 @@ // patterns/doubledispatch/TypedBin.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A List that can grab the right type package patterns.doubledispatch; import patterns.trash.*; diff --git a/patterns/doubledispatch/TypedBinMember.java b/patterns/doubledispatch/TypedBinMember.java index a34d6806..870e775a 100644 --- a/patterns/doubledispatch/TypedBinMember.java +++ b/patterns/doubledispatch/TypedBinMember.java @@ -1,7 +1,7 @@ // patterns/doubledispatch/TypedBinMember.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // An interface for adding the double dispatching // method to the trash hierarchy without // modifying the original hierarchy diff --git a/patterns/dynatrash/DynaTrash.java b/patterns/dynatrash/DynaTrash.java index 89f240a7..b71f81b5 100644 --- a/patterns/dynatrash/DynaTrash.java +++ b/patterns/dynatrash/DynaTrash.java @@ -1,7 +1,7 @@ // patterns/dynatrash/DynaTrash.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using a Map of Lists and RTTI to automatically // sort trash into Lists. This solution, despite // the use of RTTI, is extensible. diff --git a/patterns/factory/ShapeFactory1.java b/patterns/factory/ShapeFactory1.java index 76706bb1..a2c75572 100644 --- a/patterns/factory/ShapeFactory1.java +++ b/patterns/factory/ShapeFactory1.java @@ -1,7 +1,7 @@ // patterns/factory/ShapeFactory1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A simple static factory method // {java patterns.factory.ShapeFactory1} package patterns.factory; diff --git a/patterns/observer/ObservedFlower.java b/patterns/observer/ObservedFlower.java index 761595a5..479ca8df 100644 --- a/patterns/observer/ObservedFlower.java +++ b/patterns/observer/ObservedFlower.java @@ -1,7 +1,7 @@ // patterns/observer/ObservedFlower.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstration of "Observer" pattern // {java patterns.observer.ObservedFlower} package patterns.observer; diff --git a/patterns/recyclea/RecycleA.java b/patterns/recyclea/RecycleA.java index c8d22847..0f09b392 100644 --- a/patterns/recyclea/RecycleA.java +++ b/patterns/recyclea/RecycleA.java @@ -1,7 +1,7 @@ // patterns/recyclea/RecycleA.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Recycling with RTTI // {java patterns.recyclea.RecycleA} package patterns.recyclea; diff --git a/patterns/recycleb/RecycleB.java b/patterns/recycleb/RecycleB.java index f5d567ce..0b8ea084 100644 --- a/patterns/recycleb/RecycleB.java +++ b/patterns/recycleb/RecycleB.java @@ -1,7 +1,7 @@ // patterns/recycleb/RecycleB.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java patterns.recycleb.RecycleB} package patterns.recycleb; import patterns.trash.*; diff --git a/patterns/recyclec/RecycleC.java b/patterns/recyclec/RecycleC.java index 3af3d0f2..d1f8c257 100644 --- a/patterns/recyclec/RecycleC.java +++ b/patterns/recyclec/RecycleC.java @@ -1,7 +1,7 @@ // patterns/recyclec/RecycleC.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Adding more objects to the recycling problem // {java patterns.recyclec.RecycleC} package patterns.recyclec; diff --git a/patterns/state/StateMachineDemo.java b/patterns/state/StateMachineDemo.java index e6ff5c26..d184a132 100644 --- a/patterns/state/StateMachineDemo.java +++ b/patterns/state/StateMachineDemo.java @@ -1,7 +1,7 @@ // patterns/state/StateMachineDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The StateMachine pattern and Template method // {java patterns.state.StateMachineDemo} package patterns.state; diff --git a/patterns/strategy/StrategyPattern.java b/patterns/strategy/StrategyPattern.java index e7d60b37..45f81388 100644 --- a/patterns/strategy/StrategyPattern.java +++ b/patterns/strategy/StrategyPattern.java @@ -1,7 +1,7 @@ // patterns/strategy/StrategyPattern.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java patterns.strategy.StrategyPattern} package patterns.strategy; import java.util.function.*; diff --git a/patterns/strategy/StrategyPattern2.java b/patterns/strategy/StrategyPattern2.java index 341447a1..89eecdbf 100644 --- a/patterns/strategy/StrategyPattern2.java +++ b/patterns/strategy/StrategyPattern2.java @@ -1,7 +1,7 @@ // patterns/strategy/StrategyPattern2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java patterns.strategy.StrategyPattern2} package patterns.strategy; import java.util.function.*; diff --git a/patterns/trash/Aluminum.java b/patterns/trash/Aluminum.java index 17e36b26..b59de04f 100644 --- a/patterns/trash/Aluminum.java +++ b/patterns/trash/Aluminum.java @@ -1,7 +1,7 @@ // patterns/trash/Aluminum.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package patterns.trash; public class Aluminum extends Trash { diff --git a/patterns/trash/Cardboard.java b/patterns/trash/Cardboard.java index f15ba6a3..122bce84 100644 --- a/patterns/trash/Cardboard.java +++ b/patterns/trash/Cardboard.java @@ -1,7 +1,7 @@ // patterns/trash/Cardboard.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package patterns.trash; public class Cardboard extends Trash { diff --git a/patterns/trash/Fillable.java b/patterns/trash/Fillable.java index f012fe0a..b4f37fe0 100644 --- a/patterns/trash/Fillable.java +++ b/patterns/trash/Fillable.java @@ -1,7 +1,7 @@ // patterns/trash/Fillable.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Any object that can be filled with Trash package patterns.trash; diff --git a/patterns/trash/FillableList.java b/patterns/trash/FillableList.java index 44822abc..349abae3 100644 --- a/patterns/trash/FillableList.java +++ b/patterns/trash/FillableList.java @@ -1,7 +1,7 @@ // patterns/trash/FillableList.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Adapter that makes a List Fillable package patterns.trash; import java.util.*; diff --git a/patterns/trash/Glass.java b/patterns/trash/Glass.java index 8b1e21ef..65e93bdf 100644 --- a/patterns/trash/Glass.java +++ b/patterns/trash/Glass.java @@ -1,7 +1,7 @@ // patterns/trash/Glass.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package patterns.trash; public class Glass extends Trash { diff --git a/patterns/trash/Paper.java b/patterns/trash/Paper.java index 023da2c8..3e738170 100644 --- a/patterns/trash/Paper.java +++ b/patterns/trash/Paper.java @@ -1,7 +1,7 @@ // patterns/trash/Paper.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package patterns.trash; public class Paper extends Trash { diff --git a/patterns/trash/ParseTrash.java b/patterns/trash/ParseTrash.java index f91a2cbf..63523a39 100644 --- a/patterns/trash/ParseTrash.java +++ b/patterns/trash/ParseTrash.java @@ -1,7 +1,7 @@ // patterns/trash/ParseTrash.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Open a file and parse its contents into // Trash objects, placing each into a List // {java patterns.trash.ParseTrash} diff --git a/patterns/trash/Trash.java b/patterns/trash/Trash.java index 4ecaaf1f..2fa226a7 100644 --- a/patterns/trash/Trash.java +++ b/patterns/trash/Trash.java @@ -1,7 +1,7 @@ // patterns/trash/Trash.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Base class for Trash recycling examples package patterns.trash; import java.util.*; diff --git a/patterns/trashvisitor/Aluminum.java b/patterns/trashvisitor/Aluminum.java index f2444f22..1e412c77 100644 --- a/patterns/trashvisitor/Aluminum.java +++ b/patterns/trashvisitor/Aluminum.java @@ -1,7 +1,7 @@ // patterns/trashvisitor/Aluminum.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Aluminum for the visitor pattern package patterns.trashvisitor; import patterns.trash.*; diff --git a/patterns/trashvisitor/Cardboard.java b/patterns/trashvisitor/Cardboard.java index 815e3b95..1d6c66fa 100644 --- a/patterns/trashvisitor/Cardboard.java +++ b/patterns/trashvisitor/Cardboard.java @@ -1,7 +1,7 @@ // patterns/trashvisitor/Cardboard.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Cardboard for the visitor pattern package patterns.trashvisitor; import patterns.trash.*; diff --git a/patterns/trashvisitor/Glass.java b/patterns/trashvisitor/Glass.java index 85b77a41..0c35f7de 100644 --- a/patterns/trashvisitor/Glass.java +++ b/patterns/trashvisitor/Glass.java @@ -1,7 +1,7 @@ // patterns/trashvisitor/Glass.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Glass for the visitor pattern package patterns.trashvisitor; import patterns.trash.*; diff --git a/patterns/trashvisitor/Paper.java b/patterns/trashvisitor/Paper.java index 89147823..94fe7aa0 100644 --- a/patterns/trashvisitor/Paper.java +++ b/patterns/trashvisitor/Paper.java @@ -1,7 +1,7 @@ // patterns/trashvisitor/Paper.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Paper for the visitor pattern package patterns.trashvisitor; import patterns.trash.*; diff --git a/patterns/trashvisitor/TrashVisitor.java b/patterns/trashvisitor/TrashVisitor.java index 728348b0..73f134d4 100644 --- a/patterns/trashvisitor/TrashVisitor.java +++ b/patterns/trashvisitor/TrashVisitor.java @@ -1,7 +1,7 @@ // patterns/trashvisitor/TrashVisitor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java patterns.trashvisitor.TrashVisitor} package patterns.trashvisitor; import patterns.trash.*; diff --git a/patterns/trashvisitor/Visitable.java b/patterns/trashvisitor/Visitable.java index b32d9b38..85e4a42c 100644 --- a/patterns/trashvisitor/Visitable.java +++ b/patterns/trashvisitor/Visitable.java @@ -1,7 +1,7 @@ // patterns/trashvisitor/Visitable.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // An interface to add visitor functionality to the // Trash hierarchy without modifying the base class package patterns.trashvisitor; diff --git a/patterns/trashvisitor/Visitor.java b/patterns/trashvisitor/Visitor.java index 9344a8c1..f6c33025 100644 --- a/patterns/trashvisitor/Visitor.java +++ b/patterns/trashvisitor/Visitor.java @@ -1,7 +1,7 @@ // patterns/trashvisitor/Visitor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The base interface for visitors package patterns.trashvisitor; diff --git a/patterns/visitor/BeeAndFlowers.java b/patterns/visitor/BeeAndFlowers.java index b794a424..b94eb94b 100644 --- a/patterns/visitor/BeeAndFlowers.java +++ b/patterns/visitor/BeeAndFlowers.java @@ -1,7 +1,7 @@ // patterns/visitor/BeeAndFlowers.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstration of "visitor" pattern // {java patterns.visitor.BeeAndFlowers} package patterns.visitor; diff --git a/patterns/visualobserver/BoxObserver.java b/patterns/visualobserver/BoxObserver.java index ee002ea5..68068731 100644 --- a/patterns/visualobserver/BoxObserver.java +++ b/patterns/visualobserver/BoxObserver.java @@ -1,7 +1,7 @@ // patterns/visualobserver/BoxObserver.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstration of Observer pattern using // Java's built-in observer classes // {java patterns.visualobserver.BoxObserver} diff --git a/polymorphism/CovariantReturn.java b/polymorphism/CovariantReturn.java index aaa63366..693493e6 100644 --- a/polymorphism/CovariantReturn.java +++ b/polymorphism/CovariantReturn.java @@ -1,7 +1,7 @@ // polymorphism/CovariantReturn.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Grain { @Override diff --git a/polymorphism/FieldAccess.java b/polymorphism/FieldAccess.java index 9bbaa27c..91303067 100644 --- a/polymorphism/FieldAccess.java +++ b/polymorphism/FieldAccess.java @@ -1,7 +1,7 @@ // polymorphism/FieldAccess.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Direct field access is determined at compile time class Super { diff --git a/polymorphism/Frog.java b/polymorphism/Frog.java index 89e4de3f..de6e6c61 100644 --- a/polymorphism/Frog.java +++ b/polymorphism/Frog.java @@ -1,7 +1,7 @@ // polymorphism/Frog.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Cleanup and inheritance // {java polymorphism.Frog} package polymorphism; diff --git a/polymorphism/PolyConstructors.java b/polymorphism/PolyConstructors.java index cfc432d4..c5882d7d 100644 --- a/polymorphism/PolyConstructors.java +++ b/polymorphism/PolyConstructors.java @@ -1,7 +1,7 @@ // polymorphism/PolyConstructors.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Constructors and polymorphism // don't produce what you might expect diff --git a/polymorphism/PrivateOverride.java b/polymorphism/PrivateOverride.java index 86240c9a..18294304 100644 --- a/polymorphism/PrivateOverride.java +++ b/polymorphism/PrivateOverride.java @@ -1,7 +1,7 @@ // polymorphism/PrivateOverride.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Trying to override a private method // {java polymorphism.PrivateOverride} package polymorphism; diff --git a/polymorphism/PrivateOverride2.java b/polymorphism/PrivateOverride2.java index e886f948..341b0206 100644 --- a/polymorphism/PrivateOverride2.java +++ b/polymorphism/PrivateOverride2.java @@ -1,7 +1,7 @@ // polymorphism/PrivateOverride2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Detecting a mistaken override using @Override // {CompileTimeError} (Will not compile) package polymorphism; diff --git a/polymorphism/RTTI.java b/polymorphism/RTTI.java index a5735765..5e1e0de7 100644 --- a/polymorphism/RTTI.java +++ b/polymorphism/RTTI.java @@ -1,7 +1,7 @@ // polymorphism/RTTI.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Downcasting & Runtime type information (RTTI) // {ThrowsException} diff --git a/polymorphism/ReferenceCounting.java b/polymorphism/ReferenceCounting.java index 093e0198..87713848 100644 --- a/polymorphism/ReferenceCounting.java +++ b/polymorphism/ReferenceCounting.java @@ -1,7 +1,7 @@ // polymorphism/ReferenceCounting.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Cleaning up shared member objects class Shared { diff --git a/polymorphism/Sandwich.java b/polymorphism/Sandwich.java index 96587805..a88ef789 100644 --- a/polymorphism/Sandwich.java +++ b/polymorphism/Sandwich.java @@ -1,7 +1,7 @@ // polymorphism/Sandwich.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Order of constructor calls // {java polymorphism.Sandwich} package polymorphism; diff --git a/polymorphism/Shapes.java b/polymorphism/Shapes.java index 2fb4dbd5..5c6eea93 100644 --- a/polymorphism/Shapes.java +++ b/polymorphism/Shapes.java @@ -1,7 +1,7 @@ // polymorphism/Shapes.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Polymorphism in Java import polymorphism.shape.*; diff --git a/polymorphism/StaticPolymorphism.java b/polymorphism/StaticPolymorphism.java index 1822d0ec..f45bb15c 100644 --- a/polymorphism/StaticPolymorphism.java +++ b/polymorphism/StaticPolymorphism.java @@ -1,7 +1,7 @@ // polymorphism/StaticPolymorphism.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Static methods are not polymorphic class StaticSuper { diff --git a/polymorphism/Transmogrify.java b/polymorphism/Transmogrify.java index 1fecf202..94e0ec36 100644 --- a/polymorphism/Transmogrify.java +++ b/polymorphism/Transmogrify.java @@ -1,7 +1,7 @@ // polymorphism/Transmogrify.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Dynamically changing the behavior of an object // via composition (the "State" design pattern) diff --git a/polymorphism/music/Instrument.java b/polymorphism/music/Instrument.java index 72bee5f6..245d9749 100644 --- a/polymorphism/music/Instrument.java +++ b/polymorphism/music/Instrument.java @@ -1,7 +1,7 @@ // polymorphism/music/Instrument.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package polymorphism.music; class Instrument { diff --git a/polymorphism/music/Music.java b/polymorphism/music/Music.java index 1ac678c1..e5e7696e 100644 --- a/polymorphism/music/Music.java +++ b/polymorphism/music/Music.java @@ -1,7 +1,7 @@ // polymorphism/music/Music.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Inheritance & upcasting // {java polymorphism.music.Music} package polymorphism.music; diff --git a/polymorphism/music/Music2.java b/polymorphism/music/Music2.java index 97b5530a..872586fc 100644 --- a/polymorphism/music/Music2.java +++ b/polymorphism/music/Music2.java @@ -1,7 +1,7 @@ // polymorphism/music/Music2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Overloading instead of upcasting // {java polymorphism.music.Music2} package polymorphism.music; diff --git a/polymorphism/music/Note.java b/polymorphism/music/Note.java index 72903e39..70b9de60 100644 --- a/polymorphism/music/Note.java +++ b/polymorphism/music/Note.java @@ -1,7 +1,7 @@ // polymorphism/music/Note.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Notes to play on musical instruments package polymorphism.music; diff --git a/polymorphism/music/Wind.java b/polymorphism/music/Wind.java index 620a8f9f..ffc5b5ba 100644 --- a/polymorphism/music/Wind.java +++ b/polymorphism/music/Wind.java @@ -1,7 +1,7 @@ // polymorphism/music/Wind.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package polymorphism.music; // Wind objects are instruments diff --git a/polymorphism/music3/Music3.java b/polymorphism/music3/Music3.java index 601c8f92..3994393d 100644 --- a/polymorphism/music3/Music3.java +++ b/polymorphism/music3/Music3.java @@ -1,7 +1,7 @@ // polymorphism/music3/Music3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // An extensible program // {java polymorphism.music3.Music3} package polymorphism.music3; diff --git a/polymorphism/shape/Circle.java b/polymorphism/shape/Circle.java index 50f392cd..ff870ffc 100644 --- a/polymorphism/shape/Circle.java +++ b/polymorphism/shape/Circle.java @@ -1,7 +1,7 @@ // polymorphism/shape/Circle.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package polymorphism.shape; public class Circle extends Shape { diff --git a/polymorphism/shape/RandomShapes.java b/polymorphism/shape/RandomShapes.java index 47d94039..55b26c11 100644 --- a/polymorphism/shape/RandomShapes.java +++ b/polymorphism/shape/RandomShapes.java @@ -1,7 +1,7 @@ // polymorphism/shape/RandomShapes.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A "factory" that randomly creates shapes package polymorphism.shape; import java.util.*; diff --git a/polymorphism/shape/Shape.java b/polymorphism/shape/Shape.java index bcc9333f..c8b25852 100644 --- a/polymorphism/shape/Shape.java +++ b/polymorphism/shape/Shape.java @@ -1,7 +1,7 @@ // polymorphism/shape/Shape.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package polymorphism.shape; public class Shape { diff --git a/polymorphism/shape/Square.java b/polymorphism/shape/Square.java index 35b30f4f..22bb2568 100644 --- a/polymorphism/shape/Square.java +++ b/polymorphism/shape/Square.java @@ -1,7 +1,7 @@ // polymorphism/shape/Square.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package polymorphism.shape; public class Square extends Shape { diff --git a/polymorphism/shape/Triangle.java b/polymorphism/shape/Triangle.java index 077f7cac..2f18de71 100644 --- a/polymorphism/shape/Triangle.java +++ b/polymorphism/shape/Triangle.java @@ -1,7 +1,7 @@ // polymorphism/shape/Triangle.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package polymorphism.shape; public class Triangle extends Shape { diff --git a/preferences/PreferencesDemo.java b/preferences/PreferencesDemo.java index 59c9edc9..ef10a6af 100644 --- a/preferences/PreferencesDemo.java +++ b/preferences/PreferencesDemo.java @@ -1,7 +1,7 @@ // preferences/PreferencesDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.prefs.*; public class PreferencesDemo { diff --git a/references/AddingClone.java b/references/AddingClone.java index 7fb3ba17..42f5880a 100644 --- a/references/AddingClone.java +++ b/references/AddingClone.java @@ -1,7 +1,7 @@ // references/AddingClone.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // You must go through a few gyrations // to add cloning to your own class import java.util.*; diff --git a/references/Alias1.java b/references/Alias1.java index a2211dc1..0e0e3c8b 100644 --- a/references/Alias1.java +++ b/references/Alias1.java @@ -1,7 +1,7 @@ // references/Alias1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Aliasing two references to one object public class Alias1 { diff --git a/references/Alias2.java b/references/Alias2.java index 5a0494a2..1e853859 100644 --- a/references/Alias2.java +++ b/references/Alias2.java @@ -1,7 +1,7 @@ // references/Alias2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Method calls implicitly alias their arguments public class Alias2 { diff --git a/references/CheckCloneable.java b/references/CheckCloneable.java index 4571dcfe..83fc0e5a 100644 --- a/references/CheckCloneable.java +++ b/references/CheckCloneable.java @@ -1,7 +1,7 @@ // references/CheckCloneable.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Check to see if a reference can be cloned // Can't clone this -- doesn't override clone(): diff --git a/references/CloneArrayList.java b/references/CloneArrayList.java index 44209e8a..d9e1bdbf 100644 --- a/references/CloneArrayList.java +++ b/references/CloneArrayList.java @@ -1,7 +1,7 @@ // references/CloneArrayList.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The clone() operation works for only a few // items in the standard Java library import java.util.*; diff --git a/references/Compete.java b/references/Compete.java index 6adfba59..0d3d96f1 100644 --- a/references/Compete.java +++ b/references/Compete.java @@ -1,7 +1,7 @@ // references/Compete.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; class Thing1 implements Serializable {} diff --git a/references/CopyConstructor.java b/references/CopyConstructor.java index 3d910620..f8d3ce61 100644 --- a/references/CopyConstructor.java +++ b/references/CopyConstructor.java @@ -1,7 +1,7 @@ // references/CopyConstructor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A constructor to copy an object of the same // type, as an attempt to create a local copy import java.lang.reflect.*; diff --git a/references/DepthReading.java b/references/DepthReading.java index 6de99757..7bebef12 100644 --- a/references/DepthReading.java +++ b/references/DepthReading.java @@ -1,7 +1,7 @@ // references/DepthReading.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Cloning a composed object package references; diff --git a/references/HorrorFlick.java b/references/HorrorFlick.java index b4ef52e1..a10cc162 100644 --- a/references/HorrorFlick.java +++ b/references/HorrorFlick.java @@ -1,7 +1,7 @@ // references/HorrorFlick.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // You can insert Cloneability at any level of inheritance class Person {} diff --git a/references/Immutable1.java b/references/Immutable1.java index 09680dbf..00d7640f 100644 --- a/references/Immutable1.java +++ b/references/Immutable1.java @@ -1,7 +1,7 @@ // references/Immutable1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Immutable objects are immune to aliasing public class Immutable1 { diff --git a/references/Immutable2.java b/references/Immutable2.java index 3f4ac6d7..8a6ed177 100644 --- a/references/Immutable2.java +++ b/references/Immutable2.java @@ -1,7 +1,7 @@ // references/Immutable2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A companion class to modify immutable objects class Mutable { diff --git a/references/ImmutableInteger.java b/references/ImmutableInteger.java index cf5f544e..516bab0a 100644 --- a/references/ImmutableInteger.java +++ b/references/ImmutableInteger.java @@ -1,7 +1,7 @@ // references/ImmutableInteger.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The Integer class cannot be changed import java.util.*; diff --git a/references/ImmutableStrings.java b/references/ImmutableStrings.java index 75127afd..7872b9ab 100644 --- a/references/ImmutableStrings.java +++ b/references/ImmutableStrings.java @@ -1,7 +1,7 @@ // references/ImmutableStrings.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrating StringBuilder public class ImmutableStrings { diff --git a/references/MutableInteger.java b/references/MutableInteger.java index e28e0cf5..fc7667d6 100644 --- a/references/MutableInteger.java +++ b/references/MutableInteger.java @@ -1,7 +1,7 @@ // references/MutableInteger.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A changeable wrapper class import java.util.*; diff --git a/references/OceanReading.java b/references/OceanReading.java index cfd6aafa..8ccfae7c 100644 --- a/references/OceanReading.java +++ b/references/OceanReading.java @@ -1,7 +1,7 @@ // references/OceanReading.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Cloning a composed object package references; diff --git a/references/PassReferences.java b/references/PassReferences.java index e5b03fdd..6dbbe2be 100644 --- a/references/PassReferences.java +++ b/references/PassReferences.java @@ -1,7 +1,7 @@ // references/PassReferences.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class PassReferences { public static void f(PassReferences h) { diff --git a/references/SimplerMutableInteger.java b/references/SimplerMutableInteger.java index 68449965..1f5f743d 100644 --- a/references/SimplerMutableInteger.java +++ b/references/SimplerMutableInteger.java @@ -1,7 +1,7 @@ // references/SimplerMutableInteger.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A trivial wrapper class import java.util.*; diff --git a/references/Snake.java b/references/Snake.java index b92c825c..62a7d93b 100644 --- a/references/Snake.java +++ b/references/Snake.java @@ -1,7 +1,7 @@ // references/Snake.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Tests cloning to see if reference // destinations are also cloned diff --git a/references/Stringer.java b/references/Stringer.java index 6b47d3a7..819c578e 100644 --- a/references/Stringer.java +++ b/references/Stringer.java @@ -1,7 +1,7 @@ // references/Stringer.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Stringer { public static String upcase(String s) { diff --git a/references/TemperatureReading.java b/references/TemperatureReading.java index b533497f..ff9004f1 100644 --- a/references/TemperatureReading.java +++ b/references/TemperatureReading.java @@ -1,7 +1,7 @@ // references/TemperatureReading.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Cloning a composed object package references; diff --git a/references/tests/DeepCopyTest.java b/references/tests/DeepCopyTest.java index 4f150688..9cf4729b 100644 --- a/references/tests/DeepCopyTest.java +++ b/references/tests/DeepCopyTest.java @@ -1,7 +1,7 @@ // references/tests/DeepCopyTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package references; import org.junit.jupiter.api.*; import static org.junit.jupiter.api.Assertions.*; diff --git a/remote/DisplayPerfectTime.java b/remote/DisplayPerfectTime.java index 7b86e5b8..6ad055e6 100644 --- a/remote/DisplayPerfectTime.java +++ b/remote/DisplayPerfectTime.java @@ -1,11 +1,10 @@ // remote/DisplayPerfectTime.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Uses remote object PerfectTime // {ValidateByHand} package remote; - import java.rmi.registry.*; public class DisplayPerfectTime { diff --git a/remote/PerfectTime.java b/remote/PerfectTime.java index 8b8ec9f0..21daf2f1 100644 --- a/remote/PerfectTime.java +++ b/remote/PerfectTime.java @@ -1,10 +1,9 @@ // remote/PerfectTime.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The PerfectTime remote interface package remote; - import java.rmi.*; public interface PerfectTime extends Remote { diff --git a/remote/PerfectTimeImpl.java b/remote/PerfectTimeImpl.java index 6cdf5e9e..d2cc6616 100644 --- a/remote/PerfectTimeImpl.java +++ b/remote/PerfectTimeImpl.java @@ -1,10 +1,9 @@ // remote/PerfectTimeImpl.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Implementing the PerfectTime remote object package remote; - import java.rmi.RemoteException; public class PerfectTimeImpl implements PerfectTime { diff --git a/remote/PerfectTimeServer.java b/remote/PerfectTimeServer.java index b71a1025..39e76e59 100644 --- a/remote/PerfectTimeServer.java +++ b/remote/PerfectTimeServer.java @@ -1,11 +1,10 @@ // remote/PerfectTimeServer.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Server for the PerfectTime remote object // {ValidateByHand} package remote; - import java.rmi.registry.Registry; import java.rmi.registry.LocateRegistry; import java.rmi.RemoteException; diff --git a/reuse/Bath.java b/reuse/Bath.java index 3266f8de..5f091d53 100644 --- a/reuse/Bath.java +++ b/reuse/Bath.java @@ -1,7 +1,7 @@ // reuse/Bath.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Constructor initialization with composition class Soap { diff --git a/reuse/Beetle.java b/reuse/Beetle.java index 15dc2ceb..01823c05 100644 --- a/reuse/Beetle.java +++ b/reuse/Beetle.java @@ -1,7 +1,7 @@ // reuse/Beetle.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The full process of initialization class Insect { diff --git a/reuse/BlankFinal.java b/reuse/BlankFinal.java index 24e5a576..3a23289b 100644 --- a/reuse/BlankFinal.java +++ b/reuse/BlankFinal.java @@ -1,7 +1,7 @@ // reuse/BlankFinal.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // "Blank" final fields class Poppet { diff --git a/reuse/CADSystem.java b/reuse/CADSystem.java index f090060d..eb26f51b 100644 --- a/reuse/CADSystem.java +++ b/reuse/CADSystem.java @@ -1,7 +1,7 @@ // reuse/CADSystem.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Ensuring proper cleanup // {java reuse.CADSystem} package reuse; diff --git a/reuse/Car.java b/reuse/Car.java index 20e0bbe2..80e789c2 100644 --- a/reuse/Car.java +++ b/reuse/Car.java @@ -1,7 +1,7 @@ // reuse/Car.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Composition with public objects class Engine { diff --git a/reuse/Cartoon.java b/reuse/Cartoon.java index 77a92406..93b77750 100644 --- a/reuse/Cartoon.java +++ b/reuse/Cartoon.java @@ -1,7 +1,7 @@ // reuse/Cartoon.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Constructor calls during inheritance class Art { diff --git a/reuse/Chess.java b/reuse/Chess.java index ec3cdb75..76d2917f 100644 --- a/reuse/Chess.java +++ b/reuse/Chess.java @@ -1,7 +1,7 @@ // reuse/Chess.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Inheritance, constructors and arguments class Game { diff --git a/reuse/Detergent.java b/reuse/Detergent.java index 367315bd..f9cc5efe 100644 --- a/reuse/Detergent.java +++ b/reuse/Detergent.java @@ -1,7 +1,7 @@ // reuse/Detergent.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Inheritance syntax & properties class Cleanser { diff --git a/reuse/FinalArguments.java b/reuse/FinalArguments.java index b648de4d..d36bf115 100644 --- a/reuse/FinalArguments.java +++ b/reuse/FinalArguments.java @@ -1,7 +1,7 @@ // reuse/FinalArguments.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using "final" with method arguments class Gizmo { diff --git a/reuse/FinalData.java b/reuse/FinalData.java index 40a7895c..04b9b8aa 100644 --- a/reuse/FinalData.java +++ b/reuse/FinalData.java @@ -1,7 +1,7 @@ // reuse/FinalData.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The effect of final on fields import java.util.*; diff --git a/reuse/FinalOverridingIllusion.java b/reuse/FinalOverridingIllusion.java index 15ef7e9c..2f8de2fe 100644 --- a/reuse/FinalOverridingIllusion.java +++ b/reuse/FinalOverridingIllusion.java @@ -1,7 +1,7 @@ // reuse/FinalOverridingIllusion.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // It only looks like you can override // a private or private final method diff --git a/reuse/Hide.java b/reuse/Hide.java index 878c0f28..c6726bd1 100644 --- a/reuse/Hide.java +++ b/reuse/Hide.java @@ -1,7 +1,7 @@ // reuse/Hide.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Overloading a base-class method name in a derived // class does not hide the base-class versions diff --git a/reuse/Jurassic.java b/reuse/Jurassic.java index 1b965026..eec987ae 100644 --- a/reuse/Jurassic.java +++ b/reuse/Jurassic.java @@ -1,7 +1,7 @@ // reuse/Jurassic.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Making an entire class final class SmallBrain {} diff --git a/reuse/Lisa.java b/reuse/Lisa.java index 92201a89..bed8edcd 100644 --- a/reuse/Lisa.java +++ b/reuse/Lisa.java @@ -1,7 +1,7 @@ // reuse/Lisa.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {CompileTimeError} (Will not compile) class Lisa extends Homer { diff --git a/reuse/Orc.java b/reuse/Orc.java index 14376a48..2155f439 100644 --- a/reuse/Orc.java +++ b/reuse/Orc.java @@ -1,7 +1,7 @@ // reuse/Orc.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The protected keyword class Villain { diff --git a/reuse/PlaceSetting.java b/reuse/PlaceSetting.java index 9f443976..22b28622 100644 --- a/reuse/PlaceSetting.java +++ b/reuse/PlaceSetting.java @@ -1,7 +1,7 @@ // reuse/PlaceSetting.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Combining composition & inheritance class Plate { diff --git a/reuse/SpaceShip.java b/reuse/SpaceShip.java index 9ac426b4..bcf0aefd 100644 --- a/reuse/SpaceShip.java +++ b/reuse/SpaceShip.java @@ -1,7 +1,7 @@ // reuse/SpaceShip.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class SpaceShip extends SpaceShipControls { private String name; diff --git a/reuse/SpaceShipControls.java b/reuse/SpaceShipControls.java index 07730322..b75d4fcc 100644 --- a/reuse/SpaceShipControls.java +++ b/reuse/SpaceShipControls.java @@ -1,7 +1,7 @@ // reuse/SpaceShipControls.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class SpaceShipControls { void up(int velocity) {} diff --git a/reuse/SpaceShipDelegation.java b/reuse/SpaceShipDelegation.java index d82f545d..28ed4417 100644 --- a/reuse/SpaceShipDelegation.java +++ b/reuse/SpaceShipDelegation.java @@ -1,7 +1,7 @@ // reuse/SpaceShipDelegation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class SpaceShipDelegation { private String name; diff --git a/reuse/SprinklerSystem.java b/reuse/SprinklerSystem.java index d967f95e..79cd4c0b 100644 --- a/reuse/SprinklerSystem.java +++ b/reuse/SprinklerSystem.java @@ -1,7 +1,7 @@ // reuse/SprinklerSystem.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Composition for code reuse class WaterSource { diff --git a/reuse/Wind.java b/reuse/Wind.java index 49ff6e40..b43e66c6 100644 --- a/reuse/Wind.java +++ b/reuse/Wind.java @@ -1,7 +1,7 @@ // reuse/Wind.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Inheritance & upcasting class Instrument { diff --git a/serialization/APerson.java b/serialization/APerson.java index 0815a9bb..0e7e0d70 100644 --- a/serialization/APerson.java +++ b/serialization/APerson.java @@ -1,7 +1,7 @@ // serialization/APerson.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Use the XOM library to write and read XML // You must install nu.xom.Node from http://www.xom.nu import nu.xom.*; diff --git a/serialization/AStoreCADState.java b/serialization/AStoreCADState.java index 395bfd00..727a4bd8 100644 --- a/serialization/AStoreCADState.java +++ b/serialization/AStoreCADState.java @@ -1,7 +1,7 @@ // serialization/AStoreCADState.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Saving the state of a fictitious CAD system import java.io.*; import java.util.*; diff --git a/serialization/Alien.java b/serialization/Alien.java index ce07a405..625c2476 100644 --- a/serialization/Alien.java +++ b/serialization/Alien.java @@ -1,7 +1,7 @@ // serialization/Alien.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A serializable class import java.io.*; public class Alien implements Serializable {} diff --git a/serialization/Blip3.java b/serialization/Blip3.java index 518cbaa2..69722e78 100644 --- a/serialization/Blip3.java +++ b/serialization/Blip3.java @@ -1,7 +1,7 @@ // serialization/Blip3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Reconstructing an externalizable object import java.io.*; diff --git a/serialization/Blips.java b/serialization/Blips.java index db59af9f..a51922ab 100644 --- a/serialization/Blips.java +++ b/serialization/Blips.java @@ -1,7 +1,7 @@ // serialization/Blips.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Simple use of Externalizable & a pitfall import java.io.*; diff --git a/serialization/FreezeAlien.java b/serialization/FreezeAlien.java index cb2ae019..549e7fa3 100644 --- a/serialization/FreezeAlien.java +++ b/serialization/FreezeAlien.java @@ -1,7 +1,7 @@ // serialization/FreezeAlien.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Create a serialized output file import java.io.*; diff --git a/serialization/Logon.java b/serialization/Logon.java index 3071bb9f..b5348424 100644 --- a/serialization/Logon.java +++ b/serialization/Logon.java @@ -1,7 +1,7 @@ // serialization/Logon.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates the "transient" keyword import java.util.concurrent.*; import java.io.*; diff --git a/serialization/MyWorld.java b/serialization/MyWorld.java index 9d12a1e8..5035236d 100644 --- a/serialization/MyWorld.java +++ b/serialization/MyWorld.java @@ -1,7 +1,7 @@ // serialization/MyWorld.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; import java.util.*; diff --git a/serialization/People.java b/serialization/People.java index 1211603e..0ee1b12a 100644 --- a/serialization/People.java +++ b/serialization/People.java @@ -1,7 +1,7 @@ // serialization/People.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // You must install nu.xom.Node from http://www.xom.nu // {RunFirst: APerson} import nu.xom.*; diff --git a/serialization/RecoverCADState.java b/serialization/RecoverCADState.java index d7c43a8a..a2ff48b7 100644 --- a/serialization/RecoverCADState.java +++ b/serialization/RecoverCADState.java @@ -1,7 +1,7 @@ // serialization/RecoverCADState.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Restoring the state of the fictitious CAD system // {RunFirst: AStoreCADState} import java.io.*; diff --git a/serialization/SerialCtl.java b/serialization/SerialCtl.java index 19867628..ac64843f 100644 --- a/serialization/SerialCtl.java +++ b/serialization/SerialCtl.java @@ -1,7 +1,7 @@ // serialization/SerialCtl.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Controlling serialization by adding your own // writeObject() and readObject() methods import java.io.*; diff --git a/serialization/Worm.java b/serialization/Worm.java index ebe0a3fe..6497c6dc 100644 --- a/serialization/Worm.java +++ b/serialization/Worm.java @@ -1,7 +1,7 @@ // serialization/Worm.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates object serialization import java.io.*; import java.util.*; diff --git a/serialization/xfiles/ThawAlien.java b/serialization/xfiles/ThawAlien.java index bae803ad..6f2eefaf 100644 --- a/serialization/xfiles/ThawAlien.java +++ b/serialization/xfiles/ThawAlien.java @@ -1,7 +1,7 @@ // serialization/xfiles/ThawAlien.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Recover a serialized file // {java serialization.xfiles.ThawAlien} // {RunFirst: FreezeAlien} diff --git a/standardio/ChangeSystemOut.java b/standardio/ChangeSystemOut.java index d3943605..55bad6df 100644 --- a/standardio/ChangeSystemOut.java +++ b/standardio/ChangeSystemOut.java @@ -1,7 +1,7 @@ // standardio/ChangeSystemOut.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Turn System.out into a PrintWriter import java.io.*; diff --git a/standardio/Echo.java b/standardio/Echo.java index 3fd9f2d7..6b1313c9 100644 --- a/standardio/Echo.java +++ b/standardio/Echo.java @@ -1,7 +1,7 @@ // standardio/Echo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // How to read from standard input import java.io.*; import onjava.TimedAbort; diff --git a/standardio/OSExecuteDemo.java b/standardio/OSExecuteDemo.java index 826a8088..bd30e26b 100644 --- a/standardio/OSExecuteDemo.java +++ b/standardio/OSExecuteDemo.java @@ -1,7 +1,7 @@ // standardio/OSExecuteDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates standard I/O redirection // {javap -cp build/classes/main OSExecuteDemo} import onjava.*; diff --git a/standardio/Redirecting.java b/standardio/Redirecting.java index b531d40f..f43c901c 100644 --- a/standardio/Redirecting.java +++ b/standardio/Redirecting.java @@ -1,7 +1,7 @@ // standardio/Redirecting.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates standard I/O redirection import java.io.*; diff --git a/staticchecking/DogsAndRobots.cpp b/staticchecking/DogsAndRobots.cpp index eeb7f12e..7057e7a6 100644 --- a/staticchecking/DogsAndRobots.cpp +++ b/staticchecking/DogsAndRobots.cpp @@ -1,7 +1,7 @@ // staticchecking/DogsAndRobots.cpp // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. #include using namespace std; diff --git a/staticchecking/DogsAndRobots.py b/staticchecking/DogsAndRobots.py index 68663e34..3102adf2 100644 --- a/staticchecking/DogsAndRobots.py +++ b/staticchecking/DogsAndRobots.py @@ -1,7 +1,7 @@ # staticchecking/DogsAndRobots.py # (c)2016 MindView LLC: see Copyright.txt # We make no guarantees that this code is fit for any purpose. -# Visit http://mindviewinc.com/Books/OnJava/ for more book information. +# Visit http://OnJava8.com for more book information. def speak(anything): anything.talk() diff --git a/staticchecking/NoBasePetSpeak.py b/staticchecking/NoBasePetSpeak.py index 6ada6189..5843fa0b 100644 --- a/staticchecking/NoBasePetSpeak.py +++ b/staticchecking/NoBasePetSpeak.py @@ -1,7 +1,7 @@ # staticchecking/NoBasePetSpeak.py # (c)2016 MindView LLC: see Copyright.txt # We make no guarantees that this code is fit for any purpose. -# Visit http://mindviewinc.com/Books/OnJava/ for more book information. +# Visit http://OnJava8.com for more book information. # Speaking pets without base classes class Cat: diff --git a/staticchecking/PetSpeak.py b/staticchecking/PetSpeak.py index 36c8f2d3..eb42c4ad 100644 --- a/staticchecking/PetSpeak.py +++ b/staticchecking/PetSpeak.py @@ -1,7 +1,7 @@ # staticchecking/PetSpeak.py # (c)2016 MindView LLC: see Copyright.txt # We make no guarantees that this code is fit for any purpose. -# Visit http://mindviewinc.com/Books/OnJava/ for more book information. +# Visit http://OnJava8.com for more book information. # Speaking pets in Python class Pet: diff --git a/staticchecking/dogsandrobots.go b/staticchecking/dogsandrobots.go index fdfe72e8..db682b40 100644 --- a/staticchecking/dogsandrobots.go +++ b/staticchecking/dogsandrobots.go @@ -1,7 +1,7 @@ // staticchecking/dogsandrobots.go // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package main import "fmt" diff --git a/staticchecking/dr/DogsAndRobots.java b/staticchecking/dr/DogsAndRobots.java index f9928f56..606a4f24 100644 --- a/staticchecking/dr/DogsAndRobots.java +++ b/staticchecking/dr/DogsAndRobots.java @@ -1,7 +1,7 @@ // staticchecking/dr/DogsAndRobots.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java staticchecking.dr.DogsAndRobots} package staticchecking.dr; diff --git a/staticchecking/drc/DogAndRobotCollections.java b/staticchecking/drc/DogAndRobotCollections.java index 4afc25fd..a0628a83 100644 --- a/staticchecking/drc/DogAndRobotCollections.java +++ b/staticchecking/drc/DogAndRobotCollections.java @@ -1,7 +1,7 @@ // staticchecking/drc/DogAndRobotCollections.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java staticchecking.drc.DogAndRobotCollections} package staticchecking.drc; import java.util.*; diff --git a/staticchecking/latent/Latent.java b/staticchecking/latent/Latent.java index 18574d10..d576b475 100644 --- a/staticchecking/latent/Latent.java +++ b/staticchecking/latent/Latent.java @@ -1,7 +1,7 @@ // staticchecking/latent/Latent.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java staticchecking.latent.Latent} package staticchecking.latent; import java.lang.reflect.*; diff --git a/staticchecking/petspeak.go b/staticchecking/petspeak.go index e226e8a9..e0c3bfdf 100644 --- a/staticchecking/petspeak.go +++ b/staticchecking/petspeak.go @@ -1,7 +1,7 @@ // staticchecking/petspeak.go // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package main import "fmt" diff --git a/staticchecking/petspeak/PetSpeak.java b/staticchecking/petspeak/PetSpeak.java index c6599c8a..b0b534ac 100644 --- a/staticchecking/petspeak/PetSpeak.java +++ b/staticchecking/petspeak/PetSpeak.java @@ -1,7 +1,7 @@ // staticchecking/petspeak/PetSpeak.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Speaking pets in Java // {java staticchecking.petspeak.PetSpeak} package staticchecking.petspeak; diff --git a/streams/ArrayStreams.java b/streams/ArrayStreams.java index ecfcbd23..d0a13fd0 100644 --- a/streams/ArrayStreams.java +++ b/streams/ArrayStreams.java @@ -1,7 +1,7 @@ // streams/ArrayStreams.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; diff --git a/streams/Bubble.java b/streams/Bubble.java index c0cba17c..d2704dc4 100644 --- a/streams/Bubble.java +++ b/streams/Bubble.java @@ -1,7 +1,7 @@ // streams/Bubble.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class Bubble { diff --git a/streams/Bubbles.java b/streams/Bubbles.java index 89771bae..a9f2a4d6 100644 --- a/streams/Bubbles.java +++ b/streams/Bubbles.java @@ -1,7 +1,7 @@ // streams/Bubbles.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; public class Bubbles { diff --git a/streams/CollectionToStream.java b/streams/CollectionToStream.java index e0453a79..860bd3a5 100644 --- a/streams/CollectionToStream.java +++ b/streams/CollectionToStream.java @@ -1,7 +1,7 @@ // streams/CollectionToStream.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; diff --git a/streams/CreatingOptionals.java b/streams/CreatingOptionals.java index e7365b3f..e53f16c1 100644 --- a/streams/CreatingOptionals.java +++ b/streams/CreatingOptionals.java @@ -1,7 +1,7 @@ // streams/CreatingOptionals.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import java.util.function.*; diff --git a/streams/Duplicator.java b/streams/Duplicator.java index e3b815ba..1ce705a1 100644 --- a/streams/Duplicator.java +++ b/streams/Duplicator.java @@ -1,7 +1,7 @@ // streams/Duplicator.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; public class Duplicator { diff --git a/streams/Fibonacci.java b/streams/Fibonacci.java index d7123173..45a32377 100644 --- a/streams/Fibonacci.java +++ b/streams/Fibonacci.java @@ -1,7 +1,7 @@ // streams/Fibonacci.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; public class Fibonacci { diff --git a/streams/FileToWords.java b/streams/FileToWords.java index b4b9ed1d..c78b27fe 100644 --- a/streams/FileToWords.java +++ b/streams/FileToWords.java @@ -1,7 +1,7 @@ // streams/FileToWords.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.nio.file.*; import java.util.stream.*; import java.util.regex.Pattern; diff --git a/streams/FileToWordsBuilder.java b/streams/FileToWordsBuilder.java index 89619eb4..340cf998 100644 --- a/streams/FileToWordsBuilder.java +++ b/streams/FileToWordsBuilder.java @@ -1,7 +1,7 @@ // streams/FileToWordsBuilder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; import java.nio.file.*; import java.util.stream.*; diff --git a/streams/FileToWordsRegexp.java b/streams/FileToWordsRegexp.java index 453596f7..d7b3b680 100644 --- a/streams/FileToWordsRegexp.java +++ b/streams/FileToWordsRegexp.java @@ -1,7 +1,7 @@ // streams/FileToWordsRegexp.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; import java.nio.file.*; import java.util.stream.*; diff --git a/streams/FileToWordsTest.java b/streams/FileToWordsTest.java index 761c1d32..1ca68724 100644 --- a/streams/FileToWordsTest.java +++ b/streams/FileToWordsTest.java @@ -1,7 +1,7 @@ // streams/FileToWordsTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; public class FileToWordsTest { diff --git a/streams/FlatMap.java b/streams/FlatMap.java index 982e591f..23f65215 100644 --- a/streams/FlatMap.java +++ b/streams/FlatMap.java @@ -1,7 +1,7 @@ // streams/FlatMap.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; public class FlatMap { diff --git a/streams/ForEach.java b/streams/ForEach.java index 9829125b..ad2edd95 100644 --- a/streams/ForEach.java +++ b/streams/ForEach.java @@ -1,7 +1,7 @@ // streams/ForEach.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import static streams.RandInts.*; diff --git a/streams/FunctionMap.java b/streams/FunctionMap.java index 1321a6c3..8415c624 100644 --- a/streams/FunctionMap.java +++ b/streams/FunctionMap.java @@ -1,7 +1,7 @@ // streams/FunctionMap.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import java.util.function.*; diff --git a/streams/FunctionMap2.java b/streams/FunctionMap2.java index 445b561d..a110e29e 100644 --- a/streams/FunctionMap2.java +++ b/streams/FunctionMap2.java @@ -1,7 +1,7 @@ // streams/FunctionMap2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Different input and output types import java.util.*; import java.util.stream.*; diff --git a/streams/FunctionMap3.java b/streams/FunctionMap3.java index 66dc6323..a645160d 100644 --- a/streams/FunctionMap3.java +++ b/streams/FunctionMap3.java @@ -1,7 +1,7 @@ // streams/FunctionMap3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Producing numeric output streams import java.util.*; import java.util.stream.*; diff --git a/streams/Generator.java b/streams/Generator.java index 1ac5b12c..aeecffef 100644 --- a/streams/Generator.java +++ b/streams/Generator.java @@ -1,7 +1,7 @@ // streams/Generator.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.function.*; import java.util.stream.*; diff --git a/streams/ImperativeRandoms.java b/streams/ImperativeRandoms.java index 38663004..76fb2d51 100644 --- a/streams/ImperativeRandoms.java +++ b/streams/ImperativeRandoms.java @@ -1,7 +1,7 @@ // streams/ImperativeRandoms.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ImperativeRandoms { diff --git a/streams/Informational.java b/streams/Informational.java index ff3691a2..0836faaf 100644 --- a/streams/Informational.java +++ b/streams/Informational.java @@ -1,7 +1,7 @@ // streams/Informational.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; import java.util.function.*; diff --git a/streams/LastElement.java b/streams/LastElement.java index cc0f3eb3..3d04317c 100644 --- a/streams/LastElement.java +++ b/streams/LastElement.java @@ -1,7 +1,7 @@ // streams/LastElement.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; diff --git a/streams/Looping.java b/streams/Looping.java index 7342550c..377e79ae 100644 --- a/streams/Looping.java +++ b/streams/Looping.java @@ -1,7 +1,7 @@ // streams/Looping.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import static onjava.Repeat.*; public class Looping { diff --git a/streams/Machine2.java b/streams/Machine2.java index 97c71e99..356426c3 100644 --- a/streams/Machine2.java +++ b/streams/Machine2.java @@ -1,7 +1,7 @@ // streams/Machine2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import onjava.Operation; diff --git a/streams/MapCollector.java b/streams/MapCollector.java index d8fea36a..72851daf 100644 --- a/streams/MapCollector.java +++ b/streams/MapCollector.java @@ -1,7 +1,7 @@ // streams/MapCollector.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; diff --git a/streams/Matching.java b/streams/Matching.java index c1f8b0b8..08e0ea0a 100644 --- a/streams/Matching.java +++ b/streams/Matching.java @@ -1,7 +1,7 @@ // streams/Matching.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates short-circuiting of *Match() operations import java.util.stream.*; import java.util.function.*; diff --git a/streams/NumericStreamInfo.java b/streams/NumericStreamInfo.java index 2636d011..2e066f79 100644 --- a/streams/NumericStreamInfo.java +++ b/streams/NumericStreamInfo.java @@ -1,7 +1,7 @@ // streams/NumericStreamInfo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; import static streams.RandInts.*; diff --git a/streams/OptionalBasics.java b/streams/OptionalBasics.java index f904adca..5916bb80 100644 --- a/streams/OptionalBasics.java +++ b/streams/OptionalBasics.java @@ -1,7 +1,7 @@ // streams/OptionalBasics.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; diff --git a/streams/OptionalFilter.java b/streams/OptionalFilter.java index 0c64c21b..2a681bd4 100644 --- a/streams/OptionalFilter.java +++ b/streams/OptionalFilter.java @@ -1,7 +1,7 @@ // streams/OptionalFilter.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import java.util.function.*; diff --git a/streams/OptionalFlatMap.java b/streams/OptionalFlatMap.java index ba0d586b..5fc4ec36 100644 --- a/streams/OptionalFlatMap.java +++ b/streams/OptionalFlatMap.java @@ -1,7 +1,7 @@ // streams/OptionalFlatMap.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import java.util.function.*; diff --git a/streams/OptionalMap.java b/streams/OptionalMap.java index 6778033a..23bf1405 100644 --- a/streams/OptionalMap.java +++ b/streams/OptionalMap.java @@ -1,7 +1,7 @@ // streams/OptionalMap.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import java.util.function.*; diff --git a/streams/Optionals.java b/streams/Optionals.java index b8604dad..774df4b5 100644 --- a/streams/Optionals.java +++ b/streams/Optionals.java @@ -1,7 +1,7 @@ // streams/Optionals.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import java.util.function.*; diff --git a/streams/OptionalsFromEmptyStreams.java b/streams/OptionalsFromEmptyStreams.java index e5326ed7..1705450b 100644 --- a/streams/OptionalsFromEmptyStreams.java +++ b/streams/OptionalsFromEmptyStreams.java @@ -1,7 +1,7 @@ // streams/OptionalsFromEmptyStreams.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; diff --git a/streams/Peeking.java b/streams/Peeking.java index 67cc56ea..2510d14f 100644 --- a/streams/Peeking.java +++ b/streams/Peeking.java @@ -1,7 +1,7 @@ // streams/Peeking.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Peeking { public static void diff --git a/streams/Prime.java b/streams/Prime.java index 3920ae1a..aee81339 100644 --- a/streams/Prime.java +++ b/streams/Prime.java @@ -1,7 +1,7 @@ // streams/Prime.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; import static java.util.stream.LongStream.*; diff --git a/streams/RandInts.java b/streams/RandInts.java index 68fefd1a..abb8b4e0 100644 --- a/streams/RandInts.java +++ b/streams/RandInts.java @@ -1,7 +1,7 @@ // streams/RandInts.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package streams; import java.util.*; import java.util.stream.*; diff --git a/streams/RandomGenerators.java b/streams/RandomGenerators.java index e02ec017..abebb3ba 100644 --- a/streams/RandomGenerators.java +++ b/streams/RandomGenerators.java @@ -1,7 +1,7 @@ // streams/RandomGenerators.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; diff --git a/streams/RandomWords.java b/streams/RandomWords.java index b72cff78..d27ce0e2 100644 --- a/streams/RandomWords.java +++ b/streams/RandomWords.java @@ -1,7 +1,7 @@ // streams/RandomWords.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import java.util.function.*; diff --git a/streams/Randoms.java b/streams/Randoms.java index e43a109d..46b0b877 100644 --- a/streams/Randoms.java +++ b/streams/Randoms.java @@ -1,7 +1,7 @@ // streams/Randoms.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class Randoms { diff --git a/streams/Ranges.java b/streams/Ranges.java index 2719bdd1..8211d70f 100644 --- a/streams/Ranges.java +++ b/streams/Ranges.java @@ -1,7 +1,7 @@ // streams/Ranges.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import static java.util.stream.IntStream.*; public class Ranges { diff --git a/streams/Reduce.java b/streams/Reduce.java index c5acf356..72237089 100644 --- a/streams/Reduce.java +++ b/streams/Reduce.java @@ -1,7 +1,7 @@ // streams/Reduce.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; diff --git a/streams/SelectElement.java b/streams/SelectElement.java index b6d240a1..fa3df90f 100644 --- a/streams/SelectElement.java +++ b/streams/SelectElement.java @@ -1,7 +1,7 @@ // streams/SelectElement.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import static streams.RandInts.*; diff --git a/streams/Signal.java b/streams/Signal.java index 540a1d2b..5d1bef7d 100644 --- a/streams/Signal.java +++ b/streams/Signal.java @@ -1,7 +1,7 @@ // streams/Signal.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import java.util.function.*; diff --git a/streams/SortedComparator.java b/streams/SortedComparator.java index 2fba575d..fe432bc0 100644 --- a/streams/SortedComparator.java +++ b/streams/SortedComparator.java @@ -1,7 +1,7 @@ // streams/SortedComparator.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class SortedComparator { diff --git a/streams/SpecialCollector.java b/streams/SpecialCollector.java index 474b09dc..bcd0d017 100644 --- a/streams/SpecialCollector.java +++ b/streams/SpecialCollector.java @@ -1,7 +1,7 @@ // streams/SpecialCollector.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; diff --git a/streams/StreamOf.java b/streams/StreamOf.java index 7a4e8428..bc8692ab 100644 --- a/streams/StreamOf.java +++ b/streams/StreamOf.java @@ -1,7 +1,7 @@ // streams/StreamOf.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; public class StreamOf { diff --git a/streams/StreamOfOptionals.java b/streams/StreamOfOptionals.java index e3aee8b7..34e48fda 100644 --- a/streams/StreamOfOptionals.java +++ b/streams/StreamOfOptionals.java @@ -1,7 +1,7 @@ // streams/StreamOfOptionals.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; diff --git a/streams/StreamOfRandoms.java b/streams/StreamOfRandoms.java index 377025e2..54114bb9 100644 --- a/streams/StreamOfRandoms.java +++ b/streams/StreamOfRandoms.java @@ -1,7 +1,7 @@ // streams/StreamOfRandoms.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; diff --git a/streams/StreamOfStreams.java b/streams/StreamOfStreams.java index 79b427c2..88588601 100644 --- a/streams/StreamOfStreams.java +++ b/streams/StreamOfStreams.java @@ -1,7 +1,7 @@ // streams/StreamOfStreams.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; public class StreamOfStreams { diff --git a/streams/TreeSetOfWords.java b/streams/TreeSetOfWords.java index f2e17e2a..1cd1860b 100644 --- a/streams/TreeSetOfWords.java +++ b/streams/TreeSetOfWords.java @@ -1,7 +1,7 @@ // streams/TreeSetOfWords.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.nio.file.*; import java.util.stream.*; diff --git a/strings/ArrayListDisplay.java b/strings/ArrayListDisplay.java index 6ff519e2..3dfe9e9c 100644 --- a/strings/ArrayListDisplay.java +++ b/strings/ArrayListDisplay.java @@ -1,7 +1,7 @@ // strings/ArrayListDisplay.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import generics.coffee.*; diff --git a/strings/BetterRead.java b/strings/BetterRead.java index 5877e9c4..0bc2e490 100644 --- a/strings/BetterRead.java +++ b/strings/BetterRead.java @@ -1,7 +1,7 @@ // strings/BetterRead.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class BetterRead { diff --git a/strings/Concatenation.java b/strings/Concatenation.java index 751c3c0b..3f5aa47f 100644 --- a/strings/Concatenation.java +++ b/strings/Concatenation.java @@ -1,7 +1,7 @@ // strings/Concatenation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Concatenation { public static void main(String[] args) { diff --git a/strings/Conversion.java b/strings/Conversion.java index 857ca429..425e63c9 100644 --- a/strings/Conversion.java +++ b/strings/Conversion.java @@ -1,7 +1,7 @@ // strings/Conversion.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.math.*; import java.util.*; diff --git a/strings/DatabaseException.java b/strings/DatabaseException.java index 5e046ffa..3cd405ea 100644 --- a/strings/DatabaseException.java +++ b/strings/DatabaseException.java @@ -1,7 +1,7 @@ // strings/DatabaseException.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class DatabaseException extends Exception { public DatabaseException(int transactionID, int queryID, diff --git a/strings/Finding.java b/strings/Finding.java index 4cd7922b..142676b1 100644 --- a/strings/Finding.java +++ b/strings/Finding.java @@ -1,7 +1,7 @@ // strings/Finding.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.regex.*; public class Finding { diff --git a/strings/Groups.java b/strings/Groups.java index 25668097..0de006c1 100644 --- a/strings/Groups.java +++ b/strings/Groups.java @@ -1,7 +1,7 @@ // strings/Groups.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.regex.*; public class Groups { diff --git a/strings/Immutable.java b/strings/Immutable.java index b2e263c9..5e3c48f3 100644 --- a/strings/Immutable.java +++ b/strings/Immutable.java @@ -1,7 +1,7 @@ // strings/Immutable.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Immutable { public static String upcase(String s) { diff --git a/strings/InfiniteRecursion.java b/strings/InfiniteRecursion.java index 76908172..aa1b23cb 100644 --- a/strings/InfiniteRecursion.java +++ b/strings/InfiniteRecursion.java @@ -1,7 +1,7 @@ // strings/InfiniteRecursion.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Accidental recursion // {ThrowsException} // {ValidateByHand} diff --git a/strings/IntegerMatch.java b/strings/IntegerMatch.java index 21c43320..8b966c64 100644 --- a/strings/IntegerMatch.java +++ b/strings/IntegerMatch.java @@ -1,7 +1,7 @@ // strings/IntegerMatch.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class IntegerMatch { public static void main(String[] args) { diff --git a/strings/JGrep.java b/strings/JGrep.java index a0a04775..bb5c3371 100644 --- a/strings/JGrep.java +++ b/strings/JGrep.java @@ -1,7 +1,7 @@ // strings/JGrep.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A very simple version of the "grep" program // {java JGrep // WhitherStringBuilder.java 'return|for|String'} diff --git a/strings/ReFlags.java b/strings/ReFlags.java index 886fd925..ad278b32 100644 --- a/strings/ReFlags.java +++ b/strings/ReFlags.java @@ -1,7 +1,7 @@ // strings/ReFlags.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.regex.*; public class ReFlags { diff --git a/strings/ReceiptBuilder.java b/strings/ReceiptBuilder.java index bee6b5e6..23823463 100644 --- a/strings/ReceiptBuilder.java +++ b/strings/ReceiptBuilder.java @@ -1,7 +1,7 @@ // strings/ReceiptBuilder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ReceiptBuilder { diff --git a/strings/Replacing.java b/strings/Replacing.java index e1bc965c..b9e1e65c 100644 --- a/strings/Replacing.java +++ b/strings/Replacing.java @@ -1,7 +1,7 @@ // strings/Replacing.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Replacing { static String s = Splitting.knights; diff --git a/strings/ReplacingStringTokenizer.java b/strings/ReplacingStringTokenizer.java index 13e38fa7..5c389726 100644 --- a/strings/ReplacingStringTokenizer.java +++ b/strings/ReplacingStringTokenizer.java @@ -1,7 +1,7 @@ // strings/ReplacingStringTokenizer.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ReplacingStringTokenizer { diff --git a/strings/Resetting.java b/strings/Resetting.java index 7a1b1343..5d921f31 100644 --- a/strings/Resetting.java +++ b/strings/Resetting.java @@ -1,7 +1,7 @@ // strings/Resetting.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.regex.*; public class Resetting { diff --git a/strings/Rudolph.java b/strings/Rudolph.java index 15abd58a..481f4453 100644 --- a/strings/Rudolph.java +++ b/strings/Rudolph.java @@ -1,7 +1,7 @@ // strings/Rudolph.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class Rudolph { public static void main(String[] args) { diff --git a/strings/ScannerDelimiter.java b/strings/ScannerDelimiter.java index 8e296942..ab67e2d4 100644 --- a/strings/ScannerDelimiter.java +++ b/strings/ScannerDelimiter.java @@ -1,7 +1,7 @@ // strings/ScannerDelimiter.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class ScannerDelimiter { diff --git a/strings/SimpleFormat.java b/strings/SimpleFormat.java index 8cbd2189..28d0ef4e 100644 --- a/strings/SimpleFormat.java +++ b/strings/SimpleFormat.java @@ -1,7 +1,7 @@ // strings/SimpleFormat.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class SimpleFormat { public static void main(String[] args) { diff --git a/strings/SimpleRead.java b/strings/SimpleRead.java index 1d87761f..8fc5fd63 100644 --- a/strings/SimpleRead.java +++ b/strings/SimpleRead.java @@ -1,7 +1,7 @@ // strings/SimpleRead.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; public class SimpleRead { diff --git a/strings/SplitDemo.java b/strings/SplitDemo.java index b8d388db..4b66950b 100644 --- a/strings/SplitDemo.java +++ b/strings/SplitDemo.java @@ -1,7 +1,7 @@ // strings/SplitDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.regex.*; import java.util.*; diff --git a/strings/Splitting.java b/strings/Splitting.java index 0b76d123..698cdde3 100644 --- a/strings/Splitting.java +++ b/strings/Splitting.java @@ -1,7 +1,7 @@ // strings/Splitting.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class Splitting { diff --git a/strings/StartEnd.java b/strings/StartEnd.java index faecde11..d2f63074 100644 --- a/strings/StartEnd.java +++ b/strings/StartEnd.java @@ -1,7 +1,7 @@ // strings/StartEnd.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.regex.*; public class StartEnd { diff --git a/strings/TestRegularExpression.java b/strings/TestRegularExpression.java index 2ae1aaad..bdf75ac3 100644 --- a/strings/TestRegularExpression.java +++ b/strings/TestRegularExpression.java @@ -1,7 +1,7 @@ // strings/TestRegularExpression.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Simple regular expression demonstration // {java TestRegularExpression // abcabcabcdefabc "abc+" "(abc)+" } diff --git a/strings/TheReplacements.java b/strings/TheReplacements.java index f35dc811..ecbf4e1e 100644 --- a/strings/TheReplacements.java +++ b/strings/TheReplacements.java @@ -1,7 +1,7 @@ // strings/TheReplacements.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.regex.*; import java.nio.file.*; import java.util.stream.*; diff --git a/strings/ThreatAnalyzer.java b/strings/ThreatAnalyzer.java index c3224945..c25f64e8 100644 --- a/strings/ThreatAnalyzer.java +++ b/strings/ThreatAnalyzer.java @@ -1,7 +1,7 @@ // strings/ThreatAnalyzer.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.regex.*; import java.util.*; diff --git a/strings/Turtle.java b/strings/Turtle.java index c4b29ad9..a7a67b27 100644 --- a/strings/Turtle.java +++ b/strings/Turtle.java @@ -1,7 +1,7 @@ // strings/Turtle.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.io.*; import java.util.*; diff --git a/strings/UsingStringBuilder.java b/strings/UsingStringBuilder.java index 815c2ec0..e775be83 100644 --- a/strings/UsingStringBuilder.java +++ b/strings/UsingStringBuilder.java @@ -1,7 +1,7 @@ // strings/UsingStringBuilder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class UsingStringBuilder { diff --git a/strings/WhitherStringBuilder.java b/strings/WhitherStringBuilder.java index 5c05b988..e3c8b9bd 100644 --- a/strings/WhitherStringBuilder.java +++ b/strings/WhitherStringBuilder.java @@ -1,7 +1,7 @@ // strings/WhitherStringBuilder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class WhitherStringBuilder { public String implicit(String[] fields) { diff --git a/threads/AtomicEvenSupplier.java b/threads/AtomicEvenSupplier.java index f1674d37..15e34244 100644 --- a/threads/AtomicEvenSupplier.java +++ b/threads/AtomicEvenSupplier.java @@ -1,7 +1,7 @@ // threads/AtomicEvenSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Atomic classes are occasionally useful in regular code // {IgnoreOutput} // No output validation import java.util.concurrent.atomic.*; diff --git a/threads/AtomicIntegerTest.java b/threads/AtomicIntegerTest.java index f3885c10..3b122d4a 100644 --- a/threads/AtomicIntegerTest.java +++ b/threads/AtomicIntegerTest.java @@ -1,7 +1,7 @@ // threads/AtomicIntegerTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; import java.util.concurrent.atomic.*; import java.util.*; diff --git a/threads/Atomicity.java b/threads/Atomicity.java index bfdce338..4adcadd0 100644 --- a/threads/Atomicity.java +++ b/threads/Atomicity.java @@ -1,7 +1,7 @@ // threads/Atomicity.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {javap -c Atomicity} public class Atomicity { diff --git a/threads/AtomicityTest.java b/threads/AtomicityTest.java index 3f8f7f44..9734e201 100644 --- a/threads/AtomicityTest.java +++ b/threads/AtomicityTest.java @@ -1,7 +1,7 @@ // threads/AtomicityTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; import onjava.TimedAbort; diff --git a/threads/AttemptLocking.java b/threads/AttemptLocking.java index 0990bb04..9ce120c1 100644 --- a/threads/AttemptLocking.java +++ b/threads/AttemptLocking.java @@ -1,7 +1,7 @@ // threads/AttemptLocking.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Locks in the concurrent library allow you // to give up on trying to acquire a lock import java.util.concurrent.*; diff --git a/threads/BankTellerSimulation.java b/threads/BankTellerSimulation.java index fc272968..1dcb0e5f 100644 --- a/threads/BankTellerSimulation.java +++ b/threads/BankTellerSimulation.java @@ -1,7 +1,7 @@ // threads/BankTellerSimulation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using queues and multithreading // {java BankTellerSimulation 5} import java.util.concurrent.*; diff --git a/threads/CachedThreadPool.java b/threads/CachedThreadPool.java index a99f453b..bca8b9e9 100644 --- a/threads/CachedThreadPool.java +++ b/threads/CachedThreadPool.java @@ -1,7 +1,7 @@ // threads/CachedThreadPool.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; public class CachedThreadPool { diff --git a/threads/CachedThreadPool2.java b/threads/CachedThreadPool2.java index e154dc30..9cfa97de 100644 --- a/threads/CachedThreadPool2.java +++ b/threads/CachedThreadPool2.java @@ -1,7 +1,7 @@ // threads/CachedThreadPool2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; public class CachedThreadPool2 { diff --git a/threads/CachedThreadPool3.java b/threads/CachedThreadPool3.java index 7f591555..98bf0f1c 100644 --- a/threads/CachedThreadPool3.java +++ b/threads/CachedThreadPool3.java @@ -1,7 +1,7 @@ // threads/CachedThreadPool3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.concurrent.*; import java.util.stream.*; diff --git a/threads/CaptureUncaughtException.java b/threads/CaptureUncaughtException.java index aa66a375..7ee35680 100644 --- a/threads/CaptureUncaughtException.java +++ b/threads/CaptureUncaughtException.java @@ -1,7 +1,7 @@ // threads/CaptureUncaughtException.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; import onjava.TimedAbort; diff --git a/threads/CarBuilder.java b/threads/CarBuilder.java index 571dbdb8..8cb9a263 100644 --- a/threads/CarBuilder.java +++ b/threads/CarBuilder.java @@ -1,7 +1,7 @@ // threads/CarBuilder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A complex example of tasks working together import java.util.concurrent.*; import java.util.*; diff --git a/threads/Chopstick.java b/threads/Chopstick.java index 9f2e1095..046d1727 100644 --- a/threads/Chopstick.java +++ b/threads/Chopstick.java @@ -1,7 +1,7 @@ // threads/Chopstick.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Chopsticks for dining philosophers public class Chopstick { diff --git a/threads/CollectionToStream.java b/threads/CollectionToStream.java index 391f81e5..0209a9b4 100644 --- a/threads/CollectionToStream.java +++ b/threads/CollectionToStream.java @@ -1,7 +1,7 @@ // threads/CollectionToStream.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import onjava.*; import java.util.*; import java.util.stream.*; diff --git a/threads/CountingStream.java b/threads/CountingStream.java index cc52fe86..f7e9403c 100644 --- a/threads/CountingStream.java +++ b/threads/CountingStream.java @@ -1,7 +1,7 @@ // threads/CountingStream.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.concurrent.*; import java.util.stream.*; diff --git a/threads/CountingTask.java b/threads/CountingTask.java index 9ac74f44..4c1375df 100644 --- a/threads/CountingTask.java +++ b/threads/CountingTask.java @@ -1,7 +1,7 @@ // threads/CountingTask.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; public class CountingTask implements Callable { diff --git a/threads/CriticalSection.java b/threads/CriticalSection.java index cbb7d3e0..a653f35e 100644 --- a/threads/CriticalSection.java +++ b/threads/CriticalSection.java @@ -1,7 +1,7 @@ // threads/CriticalSection.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // (Behavior may have changed in Java 8) // Synchronizing blocks instead of entire methods. Also // demonstrates protection of a non-thread-safe class diff --git a/threads/DeadlockingDiningPhilosophers.java b/threads/DeadlockingDiningPhilosophers.java index 53a4c38f..6100d661 100644 --- a/threads/DeadlockingDiningPhilosophers.java +++ b/threads/DeadlockingDiningPhilosophers.java @@ -1,7 +1,7 @@ // threads/DeadlockingDiningPhilosophers.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates how deadlock can be hidden in a program // {java DeadlockingDiningPhilosophers 0 5 timeout} import java.util.concurrent.*; diff --git a/threads/DelayQueueDemo.java b/threads/DelayQueueDemo.java index 89ad75dc..651bb771 100644 --- a/threads/DelayQueueDemo.java +++ b/threads/DelayQueueDemo.java @@ -1,7 +1,7 @@ // threads/DelayQueueDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; import java.util.*; import static java.util.concurrent.TimeUnit.*; diff --git a/threads/EvenChecker.java b/threads/EvenChecker.java index 6fb775bb..f42046fb 100644 --- a/threads/EvenChecker.java +++ b/threads/EvenChecker.java @@ -1,7 +1,7 @@ // threads/EvenChecker.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; public class EvenChecker implements Runnable { diff --git a/threads/EvenSupplier.java b/threads/EvenSupplier.java index edf147cd..f344bb70 100644 --- a/threads/EvenSupplier.java +++ b/threads/EvenSupplier.java @@ -1,7 +1,7 @@ // threads/EvenSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // When threads collide import onjava.TimedAbort; diff --git a/threads/ExceptionThread.java b/threads/ExceptionThread.java index 6ebd6885..b2bb33df 100644 --- a/threads/ExceptionThread.java +++ b/threads/ExceptionThread.java @@ -1,7 +1,7 @@ // threads/ExceptionThread.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {ValidateByHand} // {ThrowsException} import java.util.concurrent.*; diff --git a/threads/ExplicitCriticalSection.java b/threads/ExplicitCriticalSection.java index 039cb074..bcc32c09 100644 --- a/threads/ExplicitCriticalSection.java +++ b/threads/ExplicitCriticalSection.java @@ -1,7 +1,7 @@ // threads/ExplicitCriticalSection.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {ThrowsException} on a multiprocessor machine // Using explicit Lock objects to create critical sections // {java threads.ExplicitCriticalSection} diff --git a/threads/FixedDiningPhilosophers.java b/threads/FixedDiningPhilosophers.java index 0bac9ed9..b321412d 100644 --- a/threads/FixedDiningPhilosophers.java +++ b/threads/FixedDiningPhilosophers.java @@ -1,7 +1,7 @@ // threads/FixedDiningPhilosophers.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Dining philosophers without deadlock // {java FixedDiningPhilosophers 5 5 timeout} import java.util.concurrent.*; diff --git a/threads/Futures.java b/threads/Futures.java index 79434ffa..1fcf5b7d 100644 --- a/threads/Futures.java +++ b/threads/Futures.java @@ -1,7 +1,7 @@ // threads/Futures.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.concurrent.*; import java.util.stream.*; diff --git a/threads/GreenhouseScheduler.java b/threads/GreenhouseScheduler.java index 4770fa8c..9fc385d6 100644 --- a/threads/GreenhouseScheduler.java +++ b/threads/GreenhouseScheduler.java @@ -1,7 +1,7 @@ // threads/GreenhouseScheduler.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Rewriting innerclasses/GreenhouseController.java // to use a ScheduledThreadPoolExecutor // {java GreenhouseScheduler 5000} diff --git a/threads/HorseRace.java b/threads/HorseRace.java index 8b0bbbec..c5ce98d1 100644 --- a/threads/HorseRace.java +++ b/threads/HorseRace.java @@ -1,7 +1,7 @@ // threads/HorseRace.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using CyclicBarriers import java.util.concurrent.*; import java.util.*; diff --git a/threads/IntSupplier.java b/threads/IntSupplier.java index 07359d67..e463bd02 100644 --- a/threads/IntSupplier.java +++ b/threads/IntSupplier.java @@ -1,7 +1,7 @@ // threads/IntSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public abstract class IntSupplier { private volatile boolean canceled = false; diff --git a/threads/InterferingTask.java b/threads/InterferingTask.java index 2b88ea61..262c9dbd 100644 --- a/threads/InterferingTask.java +++ b/threads/InterferingTask.java @@ -1,7 +1,7 @@ // threads/InterferingTask.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class InterferingTask implements Runnable { final int id; diff --git a/threads/LambdasAndMethodReferences.java b/threads/LambdasAndMethodReferences.java index 0eaa8062..a37831da 100644 --- a/threads/LambdasAndMethodReferences.java +++ b/threads/LambdasAndMethodReferences.java @@ -1,7 +1,7 @@ // threads/LambdasAndMethodReferences.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; class NotRunnable { diff --git a/threads/MoreTasksAfterShutdown.java b/threads/MoreTasksAfterShutdown.java index 53a2d212..1ba36d9b 100644 --- a/threads/MoreTasksAfterShutdown.java +++ b/threads/MoreTasksAfterShutdown.java @@ -1,7 +1,7 @@ // threads/MoreTasksAfterShutdown.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; public class MoreTasksAfterShutdown { diff --git a/threads/MutexEvenSupplier.java b/threads/MutexEvenSupplier.java index 1b15ba8d..cbdf07c0 100644 --- a/threads/MutexEvenSupplier.java +++ b/threads/MutexEvenSupplier.java @@ -1,7 +1,7 @@ // threads/MutexEvenSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Preventing thread collisions with mutexes // {IgnoreOutput} // No output validation import java.util.concurrent.locks.*; diff --git a/threads/NaiveExceptionHandling.java b/threads/NaiveExceptionHandling.java index c2852255..914ab321 100644 --- a/threads/NaiveExceptionHandling.java +++ b/threads/NaiveExceptionHandling.java @@ -1,7 +1,7 @@ // threads/NaiveExceptionHandling.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {ValidateByHand} // {ThrowsException} import java.util.concurrent.*; diff --git a/threads/NumberOfProcessors.java b/threads/NumberOfProcessors.java index 78d8306e..7ffc8a7a 100644 --- a/threads/NumberOfProcessors.java +++ b/threads/NumberOfProcessors.java @@ -1,7 +1,7 @@ // threads/NumberOfProcessors.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class NumberOfProcessors { public static void main(String[] args) { diff --git a/threads/ParallelStreamPuzzle.java b/threads/ParallelStreamPuzzle.java index c2429bf4..8798c649 100644 --- a/threads/ParallelStreamPuzzle.java +++ b/threads/ParallelStreamPuzzle.java @@ -1,7 +1,7 @@ // threads/ParallelStreamPuzzle.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.function.*; import java.util.stream.*; diff --git a/threads/ParallelStreamPuzzle2.java b/threads/ParallelStreamPuzzle2.java index 4468c35c..7ced862b 100644 --- a/threads/ParallelStreamPuzzle2.java +++ b/threads/ParallelStreamPuzzle2.java @@ -1,7 +1,7 @@ // threads/ParallelStreamPuzzle2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.function.*; import java.util.stream.*; diff --git a/threads/ParallelStreamPuzzle3.java b/threads/ParallelStreamPuzzle3.java index 4e822d53..55562a0f 100644 --- a/threads/ParallelStreamPuzzle3.java +++ b/threads/ParallelStreamPuzzle3.java @@ -1,7 +1,7 @@ // threads/ParallelStreamPuzzle3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; diff --git a/threads/Philosopher.java b/threads/Philosopher.java index 61b05af0..7e33f118 100644 --- a/threads/Philosopher.java +++ b/threads/Philosopher.java @@ -1,7 +1,7 @@ // threads/Philosopher.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A dining philosopher import java.util.concurrent.*; import java.util.*; diff --git a/threads/Prime.java b/threads/Prime.java index 676b13c3..deed762e 100644 --- a/threads/Prime.java +++ b/threads/Prime.java @@ -1,7 +1,7 @@ // threads/Prime.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import static java.util.stream.LongStream.*; diff --git a/threads/PriorityBlockingQueueDemo.java b/threads/PriorityBlockingQueueDemo.java index 4469d462..7eee0c8c 100644 --- a/threads/PriorityBlockingQueueDemo.java +++ b/threads/PriorityBlockingQueueDemo.java @@ -1,7 +1,7 @@ // threads/PriorityBlockingQueueDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; import java.util.*; diff --git a/threads/QuittableTask.java b/threads/QuittableTask.java index c1cffd02..335add9c 100644 --- a/threads/QuittableTask.java +++ b/threads/QuittableTask.java @@ -1,7 +1,7 @@ // threads/QuittableTask.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; public class QuittableTask implements Runnable { diff --git a/threads/QuittingTasks.java b/threads/QuittingTasks.java index 4c6ecab6..9c68bcbf 100644 --- a/threads/QuittingTasks.java +++ b/threads/QuittingTasks.java @@ -1,7 +1,7 @@ // threads/QuittingTasks.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.stream.*; import java.util.concurrent.*; diff --git a/threads/Restaurant.java b/threads/Restaurant.java index 42b7f750..d2092de4 100644 --- a/threads/Restaurant.java +++ b/threads/Restaurant.java @@ -1,7 +1,7 @@ // threads/Restaurant.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The producer-consumer approach to task cooperation import java.util.concurrent.*; diff --git a/threads/SerialNumberChecker.java b/threads/SerialNumberChecker.java index dbe0b12f..d2283b22 100644 --- a/threads/SerialNumberChecker.java +++ b/threads/SerialNumberChecker.java @@ -1,7 +1,7 @@ // threads/SerialNumberChecker.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Operations that might seem safe are not, // when threads are present // {java SerialNumberChecker 4} diff --git a/threads/SerialNumberSupplier.java b/threads/SerialNumberSupplier.java index 39e9ce8f..cedfe485 100644 --- a/threads/SerialNumberSupplier.java +++ b/threads/SerialNumberSupplier.java @@ -1,7 +1,7 @@ // threads/SerialNumberSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class SerialNumberSupplier { private static volatile int serialNumber = 0; diff --git a/threads/SettingDefaultHandler.java b/threads/SettingDefaultHandler.java index 708a4f58..3b07bbf8 100644 --- a/threads/SettingDefaultHandler.java +++ b/threads/SettingDefaultHandler.java @@ -1,7 +1,7 @@ // threads/SettingDefaultHandler.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; import onjava.TimedAbort; diff --git a/threads/SingleThreadExecutor.java b/threads/SingleThreadExecutor.java index ac94e7c3..5515d98c 100644 --- a/threads/SingleThreadExecutor.java +++ b/threads/SingleThreadExecutor.java @@ -1,7 +1,7 @@ // threads/SingleThreadExecutor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; public class SingleThreadExecutor { diff --git a/threads/SingleThreadExecutor2.java b/threads/SingleThreadExecutor2.java index b734dc7c..f93183bc 100644 --- a/threads/SingleThreadExecutor2.java +++ b/threads/SingleThreadExecutor2.java @@ -1,7 +1,7 @@ // threads/SingleThreadExecutor2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; public class SingleThreadExecutor2 { diff --git a/threads/SingleThreadExecutor3.java b/threads/SingleThreadExecutor3.java index 1aa62d0c..9f5f5897 100644 --- a/threads/SingleThreadExecutor3.java +++ b/threads/SingleThreadExecutor3.java @@ -1,7 +1,7 @@ // threads/SingleThreadExecutor3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; public class SingleThreadExecutor3 { diff --git a/threads/SleepAndPrintTask.java b/threads/SleepAndPrintTask.java index 7c9a98bd..afedb375 100644 --- a/threads/SleepAndPrintTask.java +++ b/threads/SleepAndPrintTask.java @@ -1,7 +1,7 @@ // threads/SleepAndPrintTask.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class SleepAndPrintTask implements Runnable { final int id; diff --git a/threads/Summing.java b/threads/Summing.java index 6cd86d3d..34b4de18 100644 --- a/threads/Summing.java +++ b/threads/Summing.java @@ -1,7 +1,7 @@ // threads/Summing.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; import java.util.function.*; diff --git a/threads/Summing2.java b/threads/Summing2.java index f3847e3c..3e5f28e3 100644 --- a/threads/Summing2.java +++ b/threads/Summing2.java @@ -1,7 +1,7 @@ // threads/Summing2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class Summing2 { diff --git a/threads/Summing3.java b/threads/Summing3.java index 75ca9dba..eba4c5be 100644 --- a/threads/Summing3.java +++ b/threads/Summing3.java @@ -1,7 +1,7 @@ // threads/Summing3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class Summing3 { diff --git a/threads/Summing4.java b/threads/Summing4.java index c1283678..7cc6a63b 100644 --- a/threads/Summing4.java +++ b/threads/Summing4.java @@ -1,7 +1,7 @@ // threads/Summing4.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class Summing4 { diff --git a/threads/SwallowedException.java b/threads/SwallowedException.java index ec662a09..bb34879b 100644 --- a/threads/SwallowedException.java +++ b/threads/SwallowedException.java @@ -1,7 +1,7 @@ // threads/SwallowedException.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; public class SwallowedException { diff --git a/threads/SyncObject.java b/threads/SyncObject.java index 79ae1d3e..c70e949a 100644 --- a/threads/SyncObject.java +++ b/threads/SyncObject.java @@ -1,7 +1,7 @@ // threads/SyncObject.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Synchronizing on another object class DualSynch { diff --git a/threads/SynchronizedEvenSupplier.java b/threads/SynchronizedEvenSupplier.java index e21698ef..20555f37 100644 --- a/threads/SynchronizedEvenSupplier.java +++ b/threads/SynchronizedEvenSupplier.java @@ -1,7 +1,7 @@ // threads/SynchronizedEvenSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Simplifying mutexes with the synchronized keyword // {IgnoreOutput} // No output validation import onjava.TimedAbort; diff --git a/threads/ThreadSize.java b/threads/ThreadSize.java index ed6f7713..6002df84 100644 --- a/threads/ThreadSize.java +++ b/threads/ThreadSize.java @@ -1,7 +1,7 @@ // threads/ThreadSize.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {ValidateByHand} import java.util.concurrent.*; diff --git a/threads/ToastOMatic.java b/threads/ToastOMatic.java index 9aa18b93..89821469 100644 --- a/threads/ToastOMatic.java +++ b/threads/ToastOMatic.java @@ -1,7 +1,7 @@ // threads/ToastOMatic.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A toaster that uses queues import java.util.concurrent.*; import java.util.*; diff --git a/threads/WorkStealingPool.java b/threads/WorkStealingPool.java index 66c8bb80..13c8d6b4 100644 --- a/threads/WorkStealingPool.java +++ b/threads/WorkStealingPool.java @@ -1,7 +1,7 @@ // threads/WorkStealingPool.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; class ShowThread implements Runnable { diff --git a/threads/restaurant2/RestaurantWithQueues.java b/threads/restaurant2/RestaurantWithQueues.java index c089e4bc..b3b5ed46 100644 --- a/threads/restaurant2/RestaurantWithQueues.java +++ b/threads/restaurant2/RestaurantWithQueues.java @@ -1,7 +1,7 @@ // threads/restaurant2/RestaurantWithQueues.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {java threads.restaurant2.RestaurantWithQueues 5} package threads.restaurant2; import enums.menu.*; diff --git a/typeinfo/AnonymousImplementation.java b/typeinfo/AnonymousImplementation.java index 4c98347c..710499e8 100644 --- a/typeinfo/AnonymousImplementation.java +++ b/typeinfo/AnonymousImplementation.java @@ -1,7 +1,7 @@ // typeinfo/AnonymousImplementation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Anonymous inner classes can't hide from reflection import typeinfo.interfacea.*; diff --git a/typeinfo/BoundedClassReferences.java b/typeinfo/BoundedClassReferences.java index dffceaa7..6b728284 100644 --- a/typeinfo/BoundedClassReferences.java +++ b/typeinfo/BoundedClassReferences.java @@ -1,7 +1,7 @@ // typeinfo/BoundedClassReferences.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class BoundedClassReferences { public static void main(String[] args) { diff --git a/typeinfo/ClassCasts.java b/typeinfo/ClassCasts.java index 8c1a2297..c7c1f1fd 100644 --- a/typeinfo/ClassCasts.java +++ b/typeinfo/ClassCasts.java @@ -1,7 +1,7 @@ // typeinfo/ClassCasts.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. class Building {} class House extends Building {} diff --git a/typeinfo/ClassInitialization.java b/typeinfo/ClassInitialization.java index 0c3080ba..d0cd074b 100644 --- a/typeinfo/ClassInitialization.java +++ b/typeinfo/ClassInitialization.java @@ -1,7 +1,7 @@ // typeinfo/ClassInitialization.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; class Initable { diff --git a/typeinfo/DynamicSupplier.java b/typeinfo/DynamicSupplier.java index 2ae0e5a3..cab2e3e9 100644 --- a/typeinfo/DynamicSupplier.java +++ b/typeinfo/DynamicSupplier.java @@ -1,7 +1,7 @@ // typeinfo/DynamicSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; import java.util.stream.*; diff --git a/typeinfo/FamilyVsExactType.java b/typeinfo/FamilyVsExactType.java index cced9fba..64e4c047 100644 --- a/typeinfo/FamilyVsExactType.java +++ b/typeinfo/FamilyVsExactType.java @@ -1,7 +1,7 @@ // typeinfo/FamilyVsExactType.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The difference between instanceof and class // {java typeinfo.FamilyVsExactType} package typeinfo; diff --git a/typeinfo/GenericClassReferences.java b/typeinfo/GenericClassReferences.java index fe01d9ad..a4c3b570 100644 --- a/typeinfo/GenericClassReferences.java +++ b/typeinfo/GenericClassReferences.java @@ -1,7 +1,7 @@ // typeinfo/GenericClassReferences.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class GenericClassReferences { public static void main(String[] args) { diff --git a/typeinfo/HiddenImplementation.java b/typeinfo/HiddenImplementation.java index 08b75a97..a1de7c48 100644 --- a/typeinfo/HiddenImplementation.java +++ b/typeinfo/HiddenImplementation.java @@ -1,7 +1,7 @@ // typeinfo/HiddenImplementation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Sneaking around package hiding import typeinfo.interfacea.*; import typeinfo.packageaccess.*; diff --git a/typeinfo/InnerImplementation.java b/typeinfo/InnerImplementation.java index 4dfa5725..e9a97f87 100644 --- a/typeinfo/InnerImplementation.java +++ b/typeinfo/InnerImplementation.java @@ -1,7 +1,7 @@ // typeinfo/InnerImplementation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Private inner classes can't hide from reflection import typeinfo.interfacea.*; diff --git a/typeinfo/InterfaceViolation.java b/typeinfo/InterfaceViolation.java index 8d4c16f3..a4620f66 100644 --- a/typeinfo/InterfaceViolation.java +++ b/typeinfo/InterfaceViolation.java @@ -1,7 +1,7 @@ // typeinfo/InterfaceViolation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Sneaking around an interface import typeinfo.interfacea.*; diff --git a/typeinfo/ModifyingPrivateFields.java b/typeinfo/ModifyingPrivateFields.java index a9bf54aa..4baa28f1 100644 --- a/typeinfo/ModifyingPrivateFields.java +++ b/typeinfo/ModifyingPrivateFields.java @@ -1,7 +1,7 @@ // typeinfo/ModifyingPrivateFields.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.lang.reflect.*; class WithPrivateFinalField { diff --git a/typeinfo/NullRobot.java b/typeinfo/NullRobot.java index 2713dcfc..d39972b1 100644 --- a/typeinfo/NullRobot.java +++ b/typeinfo/NullRobot.java @@ -1,7 +1,7 @@ // typeinfo/NullRobot.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using a dynamic proxy to create an Optional import java.lang.reflect.*; import java.util.*; diff --git a/typeinfo/Operation.java b/typeinfo/Operation.java index f6c94da7..a3889cd1 100644 --- a/typeinfo/Operation.java +++ b/typeinfo/Operation.java @@ -1,7 +1,7 @@ // typeinfo/Operation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.function.*; public class Operation { diff --git a/typeinfo/Person.java b/typeinfo/Person.java index ec4f355d..356feeb6 100644 --- a/typeinfo/Person.java +++ b/typeinfo/Person.java @@ -1,7 +1,7 @@ // typeinfo/Person.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using Optional with regular classes import onjava.*; import java.util.*; diff --git a/typeinfo/PetCount.java b/typeinfo/PetCount.java index 475cdc8f..053b3faa 100644 --- a/typeinfo/PetCount.java +++ b/typeinfo/PetCount.java @@ -1,7 +1,7 @@ // typeinfo/PetCount.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using instanceof import typeinfo.pets.*; import java.util.*; diff --git a/typeinfo/PetCount2.java b/typeinfo/PetCount2.java index fa1e7a11..0adfde0d 100644 --- a/typeinfo/PetCount2.java +++ b/typeinfo/PetCount2.java @@ -1,7 +1,7 @@ // typeinfo/PetCount2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import typeinfo.pets.*; public class PetCount2 { diff --git a/typeinfo/PetCount3.java b/typeinfo/PetCount3.java index 74291dc4..b7218108 100644 --- a/typeinfo/PetCount3.java +++ b/typeinfo/PetCount3.java @@ -1,7 +1,7 @@ // typeinfo/PetCount3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using isInstance() import java.util.*; import java.util.stream.*; diff --git a/typeinfo/PetCount4.java b/typeinfo/PetCount4.java index 3b768ae2..00f600b4 100644 --- a/typeinfo/PetCount4.java +++ b/typeinfo/PetCount4.java @@ -1,7 +1,7 @@ // typeinfo/PetCount4.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import typeinfo.pets.*; import onjava.*; diff --git a/typeinfo/Position.java b/typeinfo/Position.java index 59ed027f..803545df 100644 --- a/typeinfo/Position.java +++ b/typeinfo/Position.java @@ -1,7 +1,7 @@ // typeinfo/Position.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; class EmptyTitleException extends RuntimeException {} diff --git a/typeinfo/RegisteredFactories.java b/typeinfo/RegisteredFactories.java index 20859977..5ecdc3bf 100644 --- a/typeinfo/RegisteredFactories.java +++ b/typeinfo/RegisteredFactories.java @@ -1,7 +1,7 @@ // typeinfo/RegisteredFactories.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Registering Factories in the base class import java.util.*; import java.util.function.*; diff --git a/typeinfo/Robot.java b/typeinfo/Robot.java index a6f57fc2..180e2296 100644 --- a/typeinfo/Robot.java +++ b/typeinfo/Robot.java @@ -1,7 +1,7 @@ // typeinfo/Robot.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import onjava.*; import java.util.*; diff --git a/typeinfo/SelectingMethods.java b/typeinfo/SelectingMethods.java index 6c7b4df7..0d878567 100644 --- a/typeinfo/SelectingMethods.java +++ b/typeinfo/SelectingMethods.java @@ -1,7 +1,7 @@ // typeinfo/SelectingMethods.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Looking for particular methods in a dynamic proxy import java.lang.reflect.*; diff --git a/typeinfo/Shapes.java b/typeinfo/Shapes.java index 1d43e439..94c20971 100644 --- a/typeinfo/Shapes.java +++ b/typeinfo/Shapes.java @@ -1,7 +1,7 @@ // typeinfo/Shapes.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.stream.*; abstract class Shape { diff --git a/typeinfo/ShowMethods.java b/typeinfo/ShowMethods.java index ac9eb9f7..ad922120 100644 --- a/typeinfo/ShowMethods.java +++ b/typeinfo/ShowMethods.java @@ -1,7 +1,7 @@ // typeinfo/ShowMethods.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using reflection to show all the methods of a class, // even if the methods are defined in the base class // {java ShowMethods ShowMethods} diff --git a/typeinfo/SimpleDynamicProxy.java b/typeinfo/SimpleDynamicProxy.java index 1ced955a..09a014a8 100644 --- a/typeinfo/SimpleDynamicProxy.java +++ b/typeinfo/SimpleDynamicProxy.java @@ -1,7 +1,7 @@ // typeinfo/SimpleDynamicProxy.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.lang.reflect.*; class DynamicProxyHandler implements InvocationHandler { diff --git a/typeinfo/SimpleProxyDemo.java b/typeinfo/SimpleProxyDemo.java index c6fd64f8..b46f20fa 100644 --- a/typeinfo/SimpleProxyDemo.java +++ b/typeinfo/SimpleProxyDemo.java @@ -1,7 +1,7 @@ // typeinfo/SimpleProxyDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. interface Interface { void doSomething(); diff --git a/typeinfo/SnowRemovalRobot.java b/typeinfo/SnowRemovalRobot.java index 5c49e057..852be07b 100644 --- a/typeinfo/SnowRemovalRobot.java +++ b/typeinfo/SnowRemovalRobot.java @@ -1,7 +1,7 @@ // typeinfo/SnowRemovalRobot.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class SnowRemovalRobot implements Robot { diff --git a/typeinfo/Staff.java b/typeinfo/Staff.java index b05d75ef..fc064c1d 100644 --- a/typeinfo/Staff.java +++ b/typeinfo/Staff.java @@ -1,7 +1,7 @@ // typeinfo/Staff.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class Staff extends ArrayList { diff --git a/typeinfo/SweetShop.java b/typeinfo/SweetShop.java index 7d67210c..e1b0fba3 100644 --- a/typeinfo/SweetShop.java +++ b/typeinfo/SweetShop.java @@ -1,7 +1,7 @@ // typeinfo/SweetShop.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Examination of the way the class loader works class Cookie { diff --git a/typeinfo/WildcardClassReferences.java b/typeinfo/WildcardClassReferences.java index 986c6432..abe42d3c 100644 --- a/typeinfo/WildcardClassReferences.java +++ b/typeinfo/WildcardClassReferences.java @@ -1,7 +1,7 @@ // typeinfo/WildcardClassReferences.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class WildcardClassReferences { public static void main(String[] args) { diff --git a/typeinfo/interfacea/A.java b/typeinfo/interfacea/A.java index 0086dfaa..50f7a7f8 100644 --- a/typeinfo/interfacea/A.java +++ b/typeinfo/interfacea/A.java @@ -1,7 +1,7 @@ // typeinfo/interfacea/A.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.interfacea; public interface A { diff --git a/typeinfo/packageaccess/HiddenC.java b/typeinfo/packageaccess/HiddenC.java index 086d3585..679c37d9 100644 --- a/typeinfo/packageaccess/HiddenC.java +++ b/typeinfo/packageaccess/HiddenC.java @@ -1,7 +1,7 @@ // typeinfo/packageaccess/HiddenC.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.packageaccess; import typeinfo.interfacea.*; diff --git a/typeinfo/pets/Cat.java b/typeinfo/pets/Cat.java index 2bd8678e..feb9b2bd 100644 --- a/typeinfo/pets/Cat.java +++ b/typeinfo/pets/Cat.java @@ -1,7 +1,7 @@ // typeinfo/pets/Cat.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class Cat extends Pet { diff --git a/typeinfo/pets/Cymric.java b/typeinfo/pets/Cymric.java index c16029af..a60f9d90 100644 --- a/typeinfo/pets/Cymric.java +++ b/typeinfo/pets/Cymric.java @@ -1,7 +1,7 @@ // typeinfo/pets/Cymric.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class Cymric extends Manx { diff --git a/typeinfo/pets/Dog.java b/typeinfo/pets/Dog.java index 6f451e54..2610b54c 100644 --- a/typeinfo/pets/Dog.java +++ b/typeinfo/pets/Dog.java @@ -1,7 +1,7 @@ // typeinfo/pets/Dog.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class Dog extends Pet { diff --git a/typeinfo/pets/EgyptianMau.java b/typeinfo/pets/EgyptianMau.java index 82d06f17..219d9a36 100644 --- a/typeinfo/pets/EgyptianMau.java +++ b/typeinfo/pets/EgyptianMau.java @@ -1,7 +1,7 @@ // typeinfo/pets/EgyptianMau.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class EgyptianMau extends Cat { diff --git a/typeinfo/pets/ForNameCreator.java b/typeinfo/pets/ForNameCreator.java index 3799f62c..1a7696ee 100644 --- a/typeinfo/pets/ForNameCreator.java +++ b/typeinfo/pets/ForNameCreator.java @@ -1,7 +1,7 @@ // typeinfo/pets/ForNameCreator.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; import java.util.*; diff --git a/typeinfo/pets/Hamster.java b/typeinfo/pets/Hamster.java index b5a123dd..511f486f 100644 --- a/typeinfo/pets/Hamster.java +++ b/typeinfo/pets/Hamster.java @@ -1,7 +1,7 @@ // typeinfo/pets/Hamster.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class Hamster extends Rodent { diff --git a/typeinfo/pets/Individual.java b/typeinfo/pets/Individual.java index 23b06a23..e83794dd 100644 --- a/typeinfo/pets/Individual.java +++ b/typeinfo/pets/Individual.java @@ -1,7 +1,7 @@ // typeinfo/pets/Individual.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class diff --git a/typeinfo/pets/LiteralPetCreator.java b/typeinfo/pets/LiteralPetCreator.java index 67c928ac..d06e6df0 100644 --- a/typeinfo/pets/LiteralPetCreator.java +++ b/typeinfo/pets/LiteralPetCreator.java @@ -1,7 +1,7 @@ // typeinfo/pets/LiteralPetCreator.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using class literals // {java typeinfo.pets.LiteralPetCreator} package typeinfo.pets; diff --git a/typeinfo/pets/Manx.java b/typeinfo/pets/Manx.java index dace5672..c68aa1fe 100644 --- a/typeinfo/pets/Manx.java +++ b/typeinfo/pets/Manx.java @@ -1,7 +1,7 @@ // typeinfo/pets/Manx.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class Manx extends Cat { diff --git a/typeinfo/pets/Mouse.java b/typeinfo/pets/Mouse.java index 50da28d1..89971c89 100644 --- a/typeinfo/pets/Mouse.java +++ b/typeinfo/pets/Mouse.java @@ -1,7 +1,7 @@ // typeinfo/pets/Mouse.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class Mouse extends Rodent { diff --git a/typeinfo/pets/Mutt.java b/typeinfo/pets/Mutt.java index 27fc21c4..8bce4906 100644 --- a/typeinfo/pets/Mutt.java +++ b/typeinfo/pets/Mutt.java @@ -1,7 +1,7 @@ // typeinfo/pets/Mutt.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class Mutt extends Dog { diff --git a/typeinfo/pets/Person.java b/typeinfo/pets/Person.java index bf8005a2..dc7f5c93 100644 --- a/typeinfo/pets/Person.java +++ b/typeinfo/pets/Person.java @@ -1,7 +1,7 @@ // typeinfo/pets/Person.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class Person extends Individual { diff --git a/typeinfo/pets/Pet.java b/typeinfo/pets/Pet.java index fb8bd481..8556e450 100644 --- a/typeinfo/pets/Pet.java +++ b/typeinfo/pets/Pet.java @@ -1,7 +1,7 @@ // typeinfo/pets/Pet.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class Pet extends Individual { diff --git a/typeinfo/pets/PetCreator.java b/typeinfo/pets/PetCreator.java index 973f2417..5bf0c433 100644 --- a/typeinfo/pets/PetCreator.java +++ b/typeinfo/pets/PetCreator.java @@ -1,7 +1,7 @@ // typeinfo/pets/PetCreator.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creates random sequences of Pets package typeinfo.pets; import java.util.*; diff --git a/typeinfo/pets/Pets.java b/typeinfo/pets/Pets.java index 5d84b42f..1da72b06 100644 --- a/typeinfo/pets/Pets.java +++ b/typeinfo/pets/Pets.java @@ -1,7 +1,7 @@ // typeinfo/pets/Pets.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Facade to produce a default PetCreator package typeinfo.pets; import java.util.*; diff --git a/typeinfo/pets/Pug.java b/typeinfo/pets/Pug.java index 5f249d6f..c2b46dc8 100644 --- a/typeinfo/pets/Pug.java +++ b/typeinfo/pets/Pug.java @@ -1,7 +1,7 @@ // typeinfo/pets/Pug.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class Pug extends Dog { diff --git a/typeinfo/pets/Rat.java b/typeinfo/pets/Rat.java index 0eada2a0..78dd5b28 100644 --- a/typeinfo/pets/Rat.java +++ b/typeinfo/pets/Rat.java @@ -1,7 +1,7 @@ // typeinfo/pets/Rat.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class Rat extends Rodent { diff --git a/typeinfo/pets/Rodent.java b/typeinfo/pets/Rodent.java index 075bbf22..09e38969 100644 --- a/typeinfo/pets/Rodent.java +++ b/typeinfo/pets/Rodent.java @@ -1,7 +1,7 @@ // typeinfo/pets/Rodent.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package typeinfo.pets; public class Rodent extends Pet { diff --git a/typeinfo/toys/GenericToyTest.java b/typeinfo/toys/GenericToyTest.java index 943e253d..79e4d33d 100644 --- a/typeinfo/toys/GenericToyTest.java +++ b/typeinfo/toys/GenericToyTest.java @@ -1,7 +1,7 @@ // typeinfo/toys/GenericToyTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Testing class Class // {java typeinfo.toys.GenericToyTest} package typeinfo.toys; diff --git a/typeinfo/toys/ToyTest.java b/typeinfo/toys/ToyTest.java index f3a38cc5..b093ba34 100644 --- a/typeinfo/toys/ToyTest.java +++ b/typeinfo/toys/ToyTest.java @@ -1,7 +1,7 @@ // typeinfo/toys/ToyTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Testing class Class // {java typeinfo.toys.ToyTest} package typeinfo.toys; diff --git a/understandingcollections/AssociativeArray.java b/understandingcollections/AssociativeArray.java index 0801dbe7..9caffdf1 100644 --- a/understandingcollections/AssociativeArray.java +++ b/understandingcollections/AssociativeArray.java @@ -1,7 +1,7 @@ // understandingcollections/AssociativeArray.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Associates keys with values public class AssociativeArray { diff --git a/understandingcollections/Bits.java b/understandingcollections/Bits.java index edcc6d3f..3cf274b8 100644 --- a/understandingcollections/Bits.java +++ b/understandingcollections/Bits.java @@ -1,7 +1,7 @@ // understandingcollections/Bits.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstration of BitSet import java.util.*; diff --git a/understandingcollections/CanonicalMapping.java b/understandingcollections/CanonicalMapping.java index 3d2b0158..8923d91f 100644 --- a/understandingcollections/CanonicalMapping.java +++ b/understandingcollections/CanonicalMapping.java @@ -1,7 +1,7 @@ // understandingcollections/CanonicalMapping.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates WeakHashMap import java.util.*; diff --git a/understandingcollections/CollectionMethods.java b/understandingcollections/CollectionMethods.java index c8f97f44..f1eee036 100644 --- a/understandingcollections/CollectionMethods.java +++ b/understandingcollections/CollectionMethods.java @@ -1,7 +1,7 @@ // understandingcollections/CollectionMethods.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Things you can do with all Collections import java.util.*; import onjava.*; diff --git a/understandingcollections/CountedString.java b/understandingcollections/CountedString.java index 5c58d6e8..a779a2ba 100644 --- a/understandingcollections/CountedString.java +++ b/understandingcollections/CountedString.java @@ -1,7 +1,7 @@ // understandingcollections/CountedString.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Creating a good hashCode() import java.util.*; diff --git a/understandingcollections/Enumerations.java b/understandingcollections/Enumerations.java index d8732821..dd40487e 100644 --- a/understandingcollections/Enumerations.java +++ b/understandingcollections/Enumerations.java @@ -1,7 +1,7 @@ // understandingcollections/Enumerations.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Java 1.0/1.1 Vector and Enumeration import java.util.*; import onjava.*; diff --git a/understandingcollections/FailFast.java b/understandingcollections/FailFast.java index 94def8c7..f72b1dff 100644 --- a/understandingcollections/FailFast.java +++ b/understandingcollections/FailFast.java @@ -1,7 +1,7 @@ // understandingcollections/FailFast.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates the "fail-fast" behavior import java.util.*; diff --git a/understandingcollections/FillMapTest.java b/understandingcollections/FillMapTest.java index cc964c9d..08dc9404 100644 --- a/understandingcollections/FillMapTest.java +++ b/understandingcollections/FillMapTest.java @@ -1,7 +1,7 @@ // understandingcollections/FillMapTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.function.*; import java.util.stream.*; diff --git a/understandingcollections/FillingLists.java b/understandingcollections/FillingLists.java index c310f900..560c49f5 100644 --- a/understandingcollections/FillingLists.java +++ b/understandingcollections/FillingLists.java @@ -1,7 +1,7 @@ // understandingcollections/FillingLists.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // The Collections.fill() + Collections.nCopies() methods import java.util.*; diff --git a/understandingcollections/Groundhog.java b/understandingcollections/Groundhog.java index d7bc30f0..9bbc43f8 100644 --- a/understandingcollections/Groundhog.java +++ b/understandingcollections/Groundhog.java @@ -1,7 +1,7 @@ // understandingcollections/Groundhog.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Looks plausible, but doesn't work as a HashMap key public class Groundhog { diff --git a/understandingcollections/Groundhog2.java b/understandingcollections/Groundhog2.java index 2be094c2..7c0d05e6 100644 --- a/understandingcollections/Groundhog2.java +++ b/understandingcollections/Groundhog2.java @@ -1,7 +1,7 @@ // understandingcollections/Groundhog2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A class that's used as a key in a HashMap // must override hashCode() and equals() diff --git a/understandingcollections/IndividualTest.java b/understandingcollections/IndividualTest.java index 704233d8..444de1a9 100644 --- a/understandingcollections/IndividualTest.java +++ b/understandingcollections/IndividualTest.java @@ -1,7 +1,7 @@ // understandingcollections/IndividualTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import collections.MapOfList; import typeinfo.pets.*; import java.util.*; diff --git a/understandingcollections/LinkedHashMapDemo.java b/understandingcollections/LinkedHashMapDemo.java index 46a4e6a9..9691d771 100644 --- a/understandingcollections/LinkedHashMapDemo.java +++ b/understandingcollections/LinkedHashMapDemo.java @@ -1,7 +1,7 @@ // understandingcollections/LinkedHashMapDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // What you can do with a LinkedHashMap import java.util.*; import onjava.*; diff --git a/understandingcollections/ListOps.java b/understandingcollections/ListOps.java index 03de5f35..0bcfb001 100644 --- a/understandingcollections/ListOps.java +++ b/understandingcollections/ListOps.java @@ -1,7 +1,7 @@ // understandingcollections/ListOps.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Things you can do with Lists import java.util.*; import onjava.*; diff --git a/understandingcollections/ListSortSearch.java b/understandingcollections/ListSortSearch.java index 2beb14cb..69d70d86 100644 --- a/understandingcollections/ListSortSearch.java +++ b/understandingcollections/ListSortSearch.java @@ -1,7 +1,7 @@ // understandingcollections/ListSortSearch.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Sorting and searching Lists with Collections utilities import java.util.*; diff --git a/understandingcollections/MapEntry.java b/understandingcollections/MapEntry.java index 0f87f129..207ea7c4 100644 --- a/understandingcollections/MapEntry.java +++ b/understandingcollections/MapEntry.java @@ -1,7 +1,7 @@ // understandingcollections/MapEntry.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A simple Map.Entry for sample Map implementations import java.util.*; diff --git a/understandingcollections/MapOps.java b/understandingcollections/MapOps.java index 58b711cf..6ad5ab70 100644 --- a/understandingcollections/MapOps.java +++ b/understandingcollections/MapOps.java @@ -1,7 +1,7 @@ // understandingcollections/MapOps.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Things you can do with Maps import java.util.concurrent.*; import java.util.*; diff --git a/understandingcollections/Prediction.java b/understandingcollections/Prediction.java index 76579d48..72d3b340 100644 --- a/understandingcollections/Prediction.java +++ b/understandingcollections/Prediction.java @@ -1,7 +1,7 @@ // understandingcollections/Prediction.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Predicting the weather with groundhogs import java.util.*; diff --git a/understandingcollections/QueueBehavior.java b/understandingcollections/QueueBehavior.java index 7179aa4a..ada68969 100644 --- a/understandingcollections/QueueBehavior.java +++ b/understandingcollections/QueueBehavior.java @@ -1,7 +1,7 @@ // understandingcollections/QueueBehavior.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Compares the behavior of some of the queues import java.util.concurrent.*; import java.util.*; diff --git a/understandingcollections/ReadOnly.java b/understandingcollections/ReadOnly.java index 74c78746..275805e3 100644 --- a/understandingcollections/ReadOnly.java +++ b/understandingcollections/ReadOnly.java @@ -1,7 +1,7 @@ // understandingcollections/ReadOnly.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using the Collections.unmodifiable methods import java.util.*; import onjava.*; diff --git a/understandingcollections/References.java b/understandingcollections/References.java index 6cef4538..73491ffa 100644 --- a/understandingcollections/References.java +++ b/understandingcollections/References.java @@ -1,7 +1,7 @@ // understandingcollections/References.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates Reference objects import java.lang.ref.*; import java.util.*; diff --git a/understandingcollections/SimpleDeques.java b/understandingcollections/SimpleDeques.java index 7474a409..fd88a07e 100644 --- a/understandingcollections/SimpleDeques.java +++ b/understandingcollections/SimpleDeques.java @@ -1,7 +1,7 @@ // understandingcollections/SimpleDeques.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Very basic test of Deques import java.util.concurrent.*; import java.util.*; diff --git a/understandingcollections/SimpleHashMap.java b/understandingcollections/SimpleHashMap.java index 5878e411..49bffd5b 100644 --- a/understandingcollections/SimpleHashMap.java +++ b/understandingcollections/SimpleHashMap.java @@ -1,7 +1,7 @@ // understandingcollections/SimpleHashMap.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A demonstration hashed Map import java.util.*; import onjava.*; diff --git a/understandingcollections/SlowMap.java b/understandingcollections/SlowMap.java index d8978dd9..1005b256 100644 --- a/understandingcollections/SlowMap.java +++ b/understandingcollections/SlowMap.java @@ -1,7 +1,7 @@ // understandingcollections/SlowMap.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A Map implemented with ArrayLists import java.util.*; import onjava.*; diff --git a/understandingcollections/SortedMapDemo.java b/understandingcollections/SortedMapDemo.java index 9b6161b6..36a5e7fd 100644 --- a/understandingcollections/SortedMapDemo.java +++ b/understandingcollections/SortedMapDemo.java @@ -1,7 +1,7 @@ // understandingcollections/SortedMapDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // What you can do with a TreeMap import java.util.*; import onjava.*; diff --git a/understandingcollections/SortedSetDemo.java b/understandingcollections/SortedSetDemo.java index 5a7a6c74..c86590bd 100644 --- a/understandingcollections/SortedSetDemo.java +++ b/understandingcollections/SortedSetDemo.java @@ -1,7 +1,7 @@ // understandingcollections/SortedSetDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // What you can do with a TreeSet import java.util.*; diff --git a/understandingcollections/SpringDetector.java b/understandingcollections/SpringDetector.java index fc941dd5..486ee232 100644 --- a/understandingcollections/SpringDetector.java +++ b/understandingcollections/SpringDetector.java @@ -1,7 +1,7 @@ // understandingcollections/SpringDetector.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // What will the weather be? import java.lang.reflect.*; import java.util.*; diff --git a/understandingcollections/SpringDetector2.java b/understandingcollections/SpringDetector2.java index 0f6a026f..da46945a 100644 --- a/understandingcollections/SpringDetector2.java +++ b/understandingcollections/SpringDetector2.java @@ -1,7 +1,7 @@ // understandingcollections/SpringDetector2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A working key public class SpringDetector2 { diff --git a/understandingcollections/Stacks.java b/understandingcollections/Stacks.java index ca122c60..8c315ac1 100644 --- a/understandingcollections/Stacks.java +++ b/understandingcollections/Stacks.java @@ -1,7 +1,7 @@ // understandingcollections/Stacks.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstration of Stack Class import java.util.*; diff --git a/understandingcollections/StreamFillMaps.java b/understandingcollections/StreamFillMaps.java index db09800d..7f1f32d7 100644 --- a/understandingcollections/StreamFillMaps.java +++ b/understandingcollections/StreamFillMaps.java @@ -1,7 +1,7 @@ // understandingcollections/StreamFillMaps.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.function.*; import java.util.stream.*; diff --git a/understandingcollections/StringHashCode.java b/understandingcollections/StringHashCode.java index 69367ab1..813e7b95 100644 --- a/understandingcollections/StringHashCode.java +++ b/understandingcollections/StringHashCode.java @@ -1,7 +1,7 @@ // understandingcollections/StringHashCode.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. public class StringHashCode { public static void main(String[] args) { diff --git a/understandingcollections/SuppliersCollectionTest.java b/understandingcollections/SuppliersCollectionTest.java index 0a361a24..e9c79995 100644 --- a/understandingcollections/SuppliersCollectionTest.java +++ b/understandingcollections/SuppliersCollectionTest.java @@ -1,7 +1,7 @@ // understandingcollections/SuppliersCollectionTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; import java.util.function.*; import java.util.stream.*; diff --git a/understandingcollections/Synchronization.java b/understandingcollections/Synchronization.java index 9b0f3e29..47bf2824 100644 --- a/understandingcollections/Synchronization.java +++ b/understandingcollections/Synchronization.java @@ -1,7 +1,7 @@ // understandingcollections/Synchronization.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using the Collections.synchronized methods import java.util.*; diff --git a/understandingcollections/ToDoList.java b/understandingcollections/ToDoList.java index 636420b0..20bdeed6 100644 --- a/understandingcollections/ToDoList.java +++ b/understandingcollections/ToDoList.java @@ -1,7 +1,7 @@ // understandingcollections/ToDoList.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // A more complex use of PriorityQueue import java.util.*; diff --git a/understandingcollections/TypesForSets.java b/understandingcollections/TypesForSets.java index f34e63d0..fd14711c 100644 --- a/understandingcollections/TypesForSets.java +++ b/understandingcollections/TypesForSets.java @@ -1,7 +1,7 @@ // understandingcollections/TypesForSets.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Methods necessary to put your own type in a Set import java.util.*; import java.util.function.*; diff --git a/understandingcollections/Unsupported.java b/understandingcollections/Unsupported.java index b0ed2600..cfa2ca77 100644 --- a/understandingcollections/Unsupported.java +++ b/understandingcollections/Unsupported.java @@ -1,7 +1,7 @@ // understandingcollections/Unsupported.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Unsupported operations in Java collections import java.util.*; diff --git a/understandingcollections/Utilities.java b/understandingcollections/Utilities.java index c4a15f2c..86928058 100644 --- a/understandingcollections/Utilities.java +++ b/understandingcollections/Utilities.java @@ -1,7 +1,7 @@ // understandingcollections/Utilities.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Simple demonstrations of the Collections utilities import java.util.*; diff --git a/understandingcollections/jmh/Lists.java b/understandingcollections/jmh/Lists.java index 710a5750..8c1b32a3 100644 --- a/understandingcollections/jmh/Lists.java +++ b/understandingcollections/jmh/Lists.java @@ -1,7 +1,7 @@ // understandingcollections/jmh/Lists.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates performance differences in Lists package understandingcollections.jmh; import org.openjdk.jmh.annotations.*; diff --git a/understandingcollections/jmh/Maps.java b/understandingcollections/jmh/Maps.java index 99130f4b..79f8d26e 100644 --- a/understandingcollections/jmh/Maps.java +++ b/understandingcollections/jmh/Maps.java @@ -1,7 +1,7 @@ // understandingcollections/jmh/Maps.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Performance differences between Maps package understandingcollections.jmh; import org.openjdk.jmh.annotations.*; diff --git a/understandingcollections/jmh/Queues.java b/understandingcollections/jmh/Queues.java index 6d0c3617..704686c4 100644 --- a/understandingcollections/jmh/Queues.java +++ b/understandingcollections/jmh/Queues.java @@ -1,7 +1,7 @@ // understandingcollections/jmh/Queues.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates performance differences in Queues package understandingcollections.jmh; import org.openjdk.jmh.annotations.*; diff --git a/understandingcollections/jmh/Sets.java b/understandingcollections/jmh/Sets.java index 085311e0..f45e34b7 100644 --- a/understandingcollections/jmh/Sets.java +++ b/understandingcollections/jmh/Sets.java @@ -1,7 +1,7 @@ // understandingcollections/jmh/Sets.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrates performance differences in Sets package understandingcollections.jmh; import org.openjdk.jmh.annotations.*; diff --git a/validating/Assert1.java b/validating/Assert1.java index ea6d8277..72340595 100644 --- a/validating/Assert1.java +++ b/validating/Assert1.java @@ -1,9 +1,9 @@ // validating/Assert1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Non-informative style of assert -// Must run with -ea: +// Must run using -ea flag: // {java -ea Assert1} // {ThrowsException} diff --git a/validating/Assert2.java b/validating/Assert2.java index 64e72e59..3ede3c0e 100644 --- a/validating/Assert2.java +++ b/validating/Assert2.java @@ -1,7 +1,7 @@ // validating/Assert2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Assert with an information-expression // {java Assert2 -ea} // {ThrowsException} diff --git a/validating/BadMicroBenchmark.java b/validating/BadMicroBenchmark.java index 2948e417..4770d176 100644 --- a/validating/BadMicroBenchmark.java +++ b/validating/BadMicroBenchmark.java @@ -1,7 +1,7 @@ // validating/BadMicroBenchmark.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.*; public class BadMicroBenchmark { diff --git a/validating/BadMicroBenchmark2.java b/validating/BadMicroBenchmark2.java index e171f086..546e9500 100644 --- a/validating/BadMicroBenchmark2.java +++ b/validating/BadMicroBenchmark2.java @@ -1,7 +1,7 @@ // validating/BadMicroBenchmark2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Reversing the test order import java.util.*; diff --git a/validating/BadMicroBenchmark3.java b/validating/BadMicroBenchmark3.java index 43e47c86..a1f6e96e 100644 --- a/validating/BadMicroBenchmark3.java +++ b/validating/BadMicroBenchmark3.java @@ -1,7 +1,7 @@ // validating/BadMicroBenchmark3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Relying on a common resource import java.util.*; diff --git a/validating/CountedList.java b/validating/CountedList.java index 83317589..c6ad9292 100644 --- a/validating/CountedList.java +++ b/validating/CountedList.java @@ -1,7 +1,7 @@ // validating/CountedList.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Keeps track of how many of itself are created. package validating; import java.util.*; diff --git a/validating/GuavaAssertions.java b/validating/GuavaAssertions.java index c1679282..2adf1868 100644 --- a/validating/GuavaAssertions.java +++ b/validating/GuavaAssertions.java @@ -1,7 +1,7 @@ // validating/GuavaAssertions.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Assertions that are always enabled. import com.google.common.base.*; import static com.google.common.base.Verify.*; diff --git a/validating/GuavaPreconditions.java b/validating/GuavaPreconditions.java index bcea196c..9434371a 100644 --- a/validating/GuavaPreconditions.java +++ b/validating/GuavaPreconditions.java @@ -1,16 +1,12 @@ // validating/GuavaPreconditions.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstrating Guava Preconditions import java.util.function.*; import static com.google.common.base.Preconditions.*; public class GuavaPreconditions { - void g(String s) { - checkState(s.length() > 6); - System.out.println("Success: " + s); - } static void test(Consumer c, String s) { try { System.out.println(s); @@ -24,50 +20,50 @@ public class GuavaPreconditions { } } public static void main(String[] args) { - test((s) -> s = checkNotNull(s), "X"); - test((s) -> s = checkNotNull(s), null); - test((s) -> s = checkNotNull(s, "s was null"), null); - test((s) -> s = checkNotNull( + test(s -> s = checkNotNull(s), "X"); + test(s -> s = checkNotNull(s), null); + test(s -> s = checkNotNull(s, "s was null"), null); + test(s -> s = checkNotNull( s, "s was null, %s %s", "arg2", "arg3"), null); - test((s) -> checkArgument(s == "Fozzie"), "Fozzie"); - test((s) -> checkArgument(s == "Fozzie"), "X"); - test((s) -> checkArgument(s == "Fozzie"), null); - test((s) -> checkArgument( + test(s -> checkArgument(s == "Fozzie"), "Fozzie"); + test(s -> checkArgument(s == "Fozzie"), "X"); + test(s -> checkArgument(s == "Fozzie"), null); + test(s -> checkArgument( s == "Fozzie", "Bear Left!"), null); - test((s) -> checkArgument( + test(s -> checkArgument( s == "Fozzie", "Bear Left! %s Right!", "Frog"), null); - test((s) -> checkState(s.length() > 6), "Mortimer"); - test((s) -> checkState(s.length() > 6), "Mort"); - test((s) -> checkState(s.length() > 6), null); + test(s -> checkState(s.length() > 6), "Mortimer"); + test(s -> checkState(s.length() > 6), "Mort"); + test(s -> checkState(s.length() > 6), null); - test((s) -> + test(s -> checkElementIndex(6, s.length()), "Robert"); - test((s) -> + test(s -> checkElementIndex(6, s.length()), "Bob"); - test((s) -> + test(s -> checkElementIndex(6, s.length()), null); - test((s) -> + test(s -> checkPositionIndex(6, s.length()), "Robert"); - test((s) -> + test(s -> checkPositionIndex(6, s.length()), "Bob"); - test((s) -> + test(s -> checkPositionIndex(6, s.length()), null); - test((s) -> checkPositionIndexes( + test(s -> checkPositionIndexes( 0, 6, s.length()), "Hieronymus"); - test((s) -> checkPositionIndexes( + test(s -> checkPositionIndexes( 0, 10, s.length()), "Hieronymus"); - test((s) -> checkPositionIndexes( + test(s -> checkPositionIndexes( 0, 11, s.length()), "Hieronymus"); - test((s) -> checkPositionIndexes( + test(s -> checkPositionIndexes( -1, 6, s.length()), "Hieronymus"); - test((s) -> checkPositionIndexes( + test(s -> checkPositionIndexes( 7, 6, s.length()), "Hieronymus"); - test((s) -> checkPositionIndexes( + test(s -> checkPositionIndexes( 0, 6, s.length()), null); } } diff --git a/validating/Inverter1.java b/validating/Inverter1.java index 0fd6286c..54282305 100644 --- a/validating/Inverter1.java +++ b/validating/Inverter1.java @@ -1,7 +1,7 @@ // validating/Inverter1.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package validating; public class Inverter1 implements StringInverter { diff --git a/validating/Inverter2.java b/validating/Inverter2.java index 6c966e66..6c82b206 100644 --- a/validating/Inverter2.java +++ b/validating/Inverter2.java @@ -1,7 +1,7 @@ // validating/Inverter2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package validating; import static java.lang.Character.*; diff --git a/validating/Inverter3.java b/validating/Inverter3.java index 208fff51..8b857d5d 100644 --- a/validating/Inverter3.java +++ b/validating/Inverter3.java @@ -1,7 +1,7 @@ // validating/Inverter3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package validating; import static java.lang.Character.*; diff --git a/validating/Inverter4.java b/validating/Inverter4.java index ce52b0bb..b00a4ad2 100644 --- a/validating/Inverter4.java +++ b/validating/Inverter4.java @@ -1,7 +1,7 @@ // validating/Inverter4.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package validating; import static java.lang.Character.*; diff --git a/validating/LoaderAssertions.java b/validating/LoaderAssertions.java index 8fe0b377..696eccfe 100644 --- a/validating/LoaderAssertions.java +++ b/validating/LoaderAssertions.java @@ -1,7 +1,7 @@ // validating/LoaderAssertions.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Using the class loader to enable assertions // {ThrowsException} diff --git a/validating/NonNullConstruction.java b/validating/NonNullConstruction.java new file mode 100644 index 00000000..1b2a37d6 --- /dev/null +++ b/validating/NonNullConstruction.java @@ -0,0 +1,18 @@ +// validating/NonNullConstruction.java +// (c)2016 MindView LLC: see Copyright.txt +// We make no guarantees that this code is fit for any purpose. +// Visit http://OnJava8.com for more book information. +import static com.google.common.base.Preconditions.*; + +public class NonNullConstruction { + private Integer n; + private String s; + NonNullConstruction(Integer n, String s) { + this.n = checkNotNull(n); + this.s = checkNotNull(s); + } + public static void main(String[] args) { + NonNullConstruction nnc = + new NonNullConstruction(3, "Trousers"); + } +} diff --git a/validating/Queue.java b/validating/Queue.java index 01b4db18..bb260b87 100644 --- a/validating/Queue.java +++ b/validating/Queue.java @@ -1,7 +1,7 @@ // validating/Queue.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Demonstration of Design by Contract (DbC) package validating; import java.util.*; diff --git a/validating/QueueException.java b/validating/QueueException.java index d381d7c8..ced436b3 100644 --- a/validating/QueueException.java +++ b/validating/QueueException.java @@ -1,7 +1,7 @@ // validating/QueueException.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package validating; public class QueueException extends RuntimeException { diff --git a/validating/SLF4JLevels.java b/validating/SLF4JLevels.java index e1b2e11d..c2b66868 100644 --- a/validating/SLF4JLevels.java +++ b/validating/SLF4JLevels.java @@ -1,7 +1,7 @@ // validating/SLF4JLevels.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import org.slf4j.*; public class SLF4JLevels { diff --git a/validating/SLF4JLogging.java b/validating/SLF4JLogging.java index 2d3b5a05..9a18dedf 100644 --- a/validating/SLF4JLogging.java +++ b/validating/SLF4JLogging.java @@ -1,7 +1,7 @@ // validating/SLF4JLogging.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import org.slf4j.*; public class SLF4JLogging { diff --git a/validating/SimpleDebugging.java b/validating/SimpleDebugging.java index 70d9437d..e1797069 100644 --- a/validating/SimpleDebugging.java +++ b/validating/SimpleDebugging.java @@ -1,8 +1,9 @@ // validating/SimpleDebugging.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // {ThrowsException} + public class SimpleDebugging { private static void foo1() { System.out.println("In foo1"); diff --git a/validating/StringInverter.java b/validating/StringInverter.java index dd237377..680bab3c 100644 --- a/validating/StringInverter.java +++ b/validating/StringInverter.java @@ -1,7 +1,7 @@ // validating/StringInverter.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package validating; interface StringInverter { diff --git a/validating/Time.java b/validating/Time.java index 6b1a8893..253bdea8 100644 --- a/validating/Time.java +++ b/validating/Time.java @@ -1,7 +1,7 @@ // validating/Time.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. import java.util.concurrent.*; public interface Time { diff --git a/validating/jmh/ParallelSetAll.java b/validating/jmh/ParallelSetAll.java index 8e7c76f2..4331826a 100644 --- a/validating/jmh/ParallelSetAll.java +++ b/validating/jmh/ParallelSetAll.java @@ -1,7 +1,7 @@ // validating/jmh/ParallelSetAll.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package validating.jmh; import java.util.*; import org.openjdk.jmh.annotations.*; diff --git a/validating/jmh/ParallelSetAllBetter.java b/validating/jmh/ParallelSetAllBetter.java new file mode 100644 index 00000000..43facbb4 --- /dev/null +++ b/validating/jmh/ParallelSetAllBetter.java @@ -0,0 +1,27 @@ +// validating/jmh/ParallelSetAllBetter.java +// (c)2016 MindView LLC: see Copyright.txt +// We make no guarantees that this code is fit for any purpose. +// Visit http://OnJava8.com for more book information. +package validating.jmh; +import java.util.*; +import org.openjdk.jmh.annotations.*; + +@State(Scope.Thread) +public class ParallelSetAllBetter { + private long[] la; + @Param({"1", "100", "10000", "1000000", "20000000"}) + int count; + + @Setup + public void setup() { + la = new long[count]; + } + @Benchmark + public void setAll() { + Arrays.setAll(la, n -> n); + } + @Benchmark + public void parallelSetAll() { + Arrays.parallelSetAll(la, n -> n); + } +} diff --git a/validating/tests/CountedListTest.java b/validating/tests/CountedListTest.java index a1000e48..2c1d54cc 100644 --- a/validating/tests/CountedListTest.java +++ b/validating/tests/CountedListTest.java @@ -1,7 +1,7 @@ // validating/tests/CountedListTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. // Simple use of JUnit to test CountedList. package validating; import java.util.*; diff --git a/validating/tests/DynamicStringInverterTests.java b/validating/tests/DynamicStringInverterTests.java index 30ead8d3..b4d2e567 100644 --- a/validating/tests/DynamicStringInverterTests.java +++ b/validating/tests/DynamicStringInverterTests.java @@ -1,7 +1,7 @@ // validating/tests/DynamicStringInverterTests.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package validating; import java.util.*; import java.util.function.*; diff --git a/validating/tests/QueueTest.java b/validating/tests/QueueTest.java index dc63effa..4e89445e 100644 --- a/validating/tests/QueueTest.java +++ b/validating/tests/QueueTest.java @@ -1,7 +1,7 @@ // validating/tests/QueueTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package validating; import org.junit.jupiter.api.*; import static org.junit.jupiter.api.Assertions.*; diff --git a/validating/tests/StringInverterTests.java b/validating/tests/StringInverterTests.java index fc5d29ac..759874f3 100644 --- a/validating/tests/StringInverterTests.java +++ b/validating/tests/StringInverterTests.java @@ -1,7 +1,7 @@ // validating/tests/StringInverterTests.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. -// Visit http://mindviewinc.com/Books/OnJava/ for more book information. +// Visit http://OnJava8.com for more book information. package validating; import java.util.*; import java.util.stream.*;