From 51d799381898428e126d5d11eb5e7b839a221320 Mon Sep 17 00:00:00 2001 From: Bruce Eckel Date: Fri, 29 May 2015 14:18:51 -0700 Subject: [PATCH] Copyright line --- access/Cake.java | 1 + access/ChocolateChip.java | 1 + access/ChocolateChip2.java | 1 + access/Dinner.java | 1 + access/FullQualification.java | 1 + access/IceCream.java | 1 + access/ImportedMyClass.java | 1 + access/LibTest.java | 1 + access/Lunch.java | 1 + access/OrganizedByAccess.java | 1 + access/Pie.java | 1 + access/PrintTest.java | 1 + access/QualifiedMyClass.java | 1 + access/SingleImport.java | 1 + access/cookie2/Cookie.java | 1 + access/dessert/Cookie.java | 1 + access/mypackage/MyClass.java | 1 + annotations/AtUnitComposition.java | 1 + annotations/AtUnitExample1.java | 1 + annotations/AtUnitExample2.java | 1 + annotations/AtUnitExample3.java | 1 + annotations/AtUnitExample4.java | 1 + annotations/AtUnitExample5.java | 1 + annotations/AtUnitExternalTest.java | 1 + annotations/HashSetTest.java | 1 + annotations/PasswordUtils.java | 1 + annotations/SimulatingNull.java | 1 + annotations/StackL.java | 1 + annotations/StackLStringTest.java | 1 + annotations/Testable.java | 1 + annotations/UseCase.java | 1 + annotations/UseCaseTracker.java | 1 + annotations/database/Constraints.java | 1 + annotations/database/DBTable.java | 1 + annotations/database/Member.java | 1 + annotations/database/SQLInteger.java | 1 + annotations/database/SQLString.java | 1 + annotations/database/TableCreator.java | 1 + annotations/database/Uniqueness.java | 1 + annotations/ifx/ExtractInterface.java | 1 + annotations/ifx/IfaceExtractorProcessor.java | 1 + annotations/ifx/Multiplier.java | 1 + annotations/simplest/Simple.java | 1 + annotations/simplest/SimpleProcessor.java | 1 + annotations/simplest/SimpleTest.java | 1 + arrays/AlphabeticSearch.java | 1 + arrays/ArrayOfGenericType.java | 1 + arrays/ArrayOfGenerics.java | 1 + arrays/ArrayOptions.java | 1 + arrays/ArraySearching.java | 1 + arrays/AssemblingMultidimensionalArrays.java | 1 + arrays/AutoboxingArrays.java | 1 + arrays/CompType.java | 1 + arrays/ComparatorTest.java | 1 + arrays/ComparingArrays.java | 1 + arrays/ContainerComparison.java | 1 + arrays/CopyingArrays.java | 1 + arrays/FillingArrays.java | 1 + arrays/GeneratorsTest.java | 1 + arrays/IceCream.java | 1 + arrays/MultiDimWrapperArray.java | 1 + arrays/MultidimensionalObjectArrays.java | 1 + arrays/MultidimensionalPrimitiveArray.java | 1 + arrays/ParameterizedArrayType.java | 1 + arrays/PrimitiveConversionDemonstration.java | 1 + arrays/PythonLists.py | 1 + arrays/RaggedArray.java | 1 + arrays/RandomGeneratorsTest.java | 1 + arrays/Reverse.java | 1 + arrays/StringSorting.java | 1 + arrays/TestArrayGeneration.java | 1 + arrays/TestGenerated.java | 1 + arrays/ThreeDWithNew.java | 1 + assertions/Assert1.java | 1 + assertions/Assert2.java | 1 + assertions/LoaderAssertions.java | 1 + assertions/Queue.java | 1 + clean.bat | 2 + concurrency/ActiveObjectDemo.java | 1 + concurrency/AtomicEvenGenerator.java | 1 + concurrency/AtomicIntegerTest.java | 1 + concurrency/Atomicity.java | 1 + concurrency/AtomicityTest.java | 1 + concurrency/AttemptLocking.java | 1 + concurrency/BankTellerSimulation.java | 1 + concurrency/BasicThreads.java | 1 + concurrency/CachedThreadPool.java | 1 + concurrency/CallableDemo.java | 1 + concurrency/CaptureUncaughtException.java | 1 + concurrency/CarBuilder.java | 1 + concurrency/Chopstick.java | 1 + concurrency/CloseResource.java | 1 + concurrency/CountDownLatchDemo.java | 1 + concurrency/CriticalSection.java | 1 + concurrency/DaemonFromFactory.java | 1 + concurrency/Daemons.java | 1 + concurrency/DaemonsDontRunFinally.java | 1 + .../DeadlockingDiningPhilosophers.java | 1 + concurrency/DelayQueueDemo.java | 1 + concurrency/EvenChecker.java | 1 + concurrency/EvenGenerator.java | 1 + concurrency/ExceptionThread.java | 1 + concurrency/ExchangerDemo.java | 1 + concurrency/ExplicitCriticalSection.java | 1 + concurrency/FastSimulation.java | 1 + concurrency/Fat.java | 1 + concurrency/FixedDiningPhilosophers.java | 1 + concurrency/FixedThreadPool.java | 1 + concurrency/GreenhouseScheduler.java | 1 + concurrency/HorseRace.java | 1 + concurrency/IntGenerator.java | 1 + concurrency/Interrupting.java | 1 + concurrency/Interrupting2.java | 1 + concurrency/InterruptingIdiom.java | 1 + concurrency/Joining.java | 1 + concurrency/LiftOff.java | 1 + concurrency/ListComparisons.java | 1 + concurrency/MainThread.java | 1 + concurrency/MapComparisons.java | 1 + concurrency/MoreBasicThreads.java | 1 + concurrency/MultiLock.java | 1 + concurrency/MutexEvenGenerator.java | 1 + concurrency/NIOInterruption.java | 1 + concurrency/NaiveExceptionHandling.java | 1 + concurrency/NotifyVsNotifyAll.java | 1 + concurrency/OrnamentalGarden.java | 1 + concurrency/Philosopher.java | 1 + concurrency/PipedIO.java | 1 + concurrency/Pool.java | 1 + concurrency/PriorityBlockingQueueDemo.java | 1 + concurrency/ReaderWriterList.java | 1 + concurrency/ResponsiveUI.java | 1 + concurrency/Restaurant.java | 1 + concurrency/SelfManaged.java | 1 + concurrency/SemaphoreDemo.java | 1 + concurrency/SerialNumberChecker.java | 1 + concurrency/SerialNumberGenerator.java | 1 + concurrency/SettingDefaultHandler.java | 1 + concurrency/SimpleDaemons.java | 1 + concurrency/SimpleMicroBenchmark.java | 1 + concurrency/SimplePriorities.java | 1 + concurrency/SimpleThread.java | 1 + concurrency/SingleThreadExecutor.java | 1 + concurrency/SleepingTask.java | 1 + concurrency/SyncObject.java | 1 + concurrency/SynchronizationComparisons.java | 1 + concurrency/SynchronizedEvenGenerator.java | 1 + concurrency/TestBlockingQueues.java | 1 + concurrency/Tester.java | 1 + concurrency/ThreadLocalVariableHolder.java | 1 + concurrency/ThreadVariations.java | 1 + concurrency/ToastOMatic.java | 1 + .../restaurant2/RestaurantWithQueues.java | 1 + concurrency/waxomatic/WaxOMatic.java | 1 + concurrency/waxomatic2/WaxOMatic2.java | 1 + containers/AssociativeArray.java | 1 + containers/Bits.java | 1 + containers/CanonicalMapping.java | 1 + containers/CollectionDataGeneration.java | 1 + containers/CollectionDataTest.java | 1 + containers/CollectionMethods.java | 1 + containers/CountedString.java | 1 + containers/DequeTest.java | 1 + containers/Enumerations.java | 1 + containers/FailFast.java | 1 + containers/FillingLists.java | 1 + containers/Groundhog.java | 1 + containers/Groundhog2.java | 1 + containers/IndividualTest.java | 1 + containers/LinkedHashMapDemo.java | 1 + containers/ListPerformance.java | 1 + containers/ListSortSearch.java | 1 + containers/Lists.java | 1 + containers/MapDataTest.java | 1 + containers/MapEntry.java | 1 + containers/MapPerformance.java | 1 + containers/Maps.java | 1 + containers/Prediction.java | 1 + containers/QueueBehavior.java | 1 + containers/RandomBounds.java | 1 + containers/ReadOnly.java | 1 + containers/References.java | 1 + containers/SetPerformance.java | 1 + containers/SimpleHashMap.java | 1 + containers/SlowMap.java | 1 + containers/SortedMapDemo.java | 1 + containers/SortedSetDemo.java | 1 + containers/SpringDetector.java | 1 + containers/SpringDetector2.java | 1 + containers/Stacks.java | 1 + containers/StringHashCode.java | 1 + containers/Synchronization.java | 1 + containers/Test.java | 1 + containers/TestParam.java | 1 + containers/Tester.java | 1 + containers/ToDoList.java | 1 + containers/TypesForSets.java | 1 + containers/Unsupported.java | 1 + containers/Utilities.java | 1 + control/BreakAndContinue.java | 1 + control/CommaOperator.java | 1 + control/ForEachFloat.java | 1 + control/ForEachInt.java | 1 + control/ForEachString.java | 1 + control/IfElse.java | 1 + control/IfElse2.java | 1 + control/LabeledFor.java | 1 + control/LabeledWhile.java | 1 + control/ListCharacters.java | 1 + control/StringSwitch.java | 1 + control/VowelsAndConsonants.java | 1 + control/WhileTest.java | 1 + debugging/SimpleDebugging.java | 1 + enumerated/AlarmPoints.java | 1 + enumerated/BigEnumSet.java | 1 + enumerated/Burrito.java | 1 + enumerated/CarWash.java | 1 + enumerated/Competitor.java | 1 + enumerated/ConstantSpecificMethod.java | 1 + enumerated/EnumClass.java | 1 + enumerated/EnumMaps.java | 1 + enumerated/EnumSets.java | 1 + enumerated/Input.java | 1 + enumerated/NonEnum.java | 1 + enumerated/NotClasses.java | 1 + enumerated/Outcome.java | 1 + enumerated/OverrideConstantSpecific.java | 1 + enumerated/OzWitch.java | 1 + enumerated/PostOffice.java | 1 + enumerated/RandomTest.java | 1 + enumerated/Reflection.java | 1 + enumerated/RoShamBo.java | 1 + enumerated/RoShamBo1.java | 1 + enumerated/RoShamBo2.java | 1 + enumerated/RoShamBo3.java | 1 + enumerated/RoShamBo4.java | 1 + enumerated/RoShamBo5.java | 1 + enumerated/RoShamBo6.java | 1 + enumerated/SecurityCategory.java | 1 + enumerated/SpaceShip.java | 1 + enumerated/Spiciness.java | 1 + enumerated/TrafficLight.java | 1 + enumerated/UpcastEnum.java | 1 + enumerated/VendingMachine.java | 1 + enumerated/cartoons/EnumImplementation.java | 1 + enumerated/menu/Course.java | 1 + enumerated/menu/Food.java | 1 + enumerated/menu/Meal.java | 1 + enumerated/menu/Meal2.java | 1 + enumerated/menu/TypeOfFood.java | 1 + exceptions/AlwaysFinally.java | 1 + exceptions/Cleanup.java | 1 + exceptions/CleanupIdiom.java | 1 + exceptions/DynamicFields.java | 1 + exceptions/ExceptionMethods.java | 1 + exceptions/ExceptionSilencer.java | 1 + exceptions/ExtraFeatures.java | 1 + exceptions/FinallyWorks.java | 1 + exceptions/FullConstructors.java | 1 + exceptions/Human.java | 1 + exceptions/InheritingExceptions.java | 1 + exceptions/InputFile.java | 1 + exceptions/LoggingExceptions.java | 1 + exceptions/LoggingExceptions2.java | 1 + exceptions/LostMessage.java | 1 + exceptions/MainException.java | 1 + exceptions/MultipleReturns.java | 1 + exceptions/NeverCaught.java | 1 + exceptions/OnOffException1.java | 1 + exceptions/OnOffException2.java | 1 + exceptions/OnOffSwitch.java | 1 + exceptions/RethrowNew.java | 1 + exceptions/Rethrowing.java | 1 + exceptions/StormyInning.java | 1 + exceptions/Switch.java | 1 + exceptions/TurnOffChecking.java | 1 + exceptions/WhoCalled.java | 1 + exceptions/WithFinally.java | 1 + generics/Apply.java | 1 + generics/ArrayMaker.java | 1 + generics/ArrayOfGeneric.java | 1 + generics/ArrayOfGenericReference.java | 1 + generics/BankTeller.java | 1 + generics/BasicBounds.java | 1 + generics/BasicGeneratorDemo.java | 1 + generics/BasicHolder.java | 1 + generics/ByteSet.java | 1 + generics/CRGWithBasicHolder.java | 1 + generics/CaptureConversion.java | 1 + generics/CheckedList.java | 1 + generics/ClassCasting.java | 1 + generics/ClassTypeCapture.java | 1 + generics/ComparablePet.java | 1 + generics/CompilerIntelligence.java | 1 + generics/CountedObject.java | 1 + generics/CovariantArrays.java | 1 + generics/CovariantReturnTypes.java | 1 + generics/CreatorGeneric.java | 1 + generics/CuriouslyRecurringGeneric.java | 1 + generics/Diamond.java | 1 + generics/DogsAndRobots.cpp | 1 + generics/DogsAndRobots.java | 1 + generics/DogsAndRobots.py | 1 + generics/DynamicProxyMixin.java | 1 + generics/EpicBattle.java | 1 + generics/Erased.java | 1 + generics/ErasedTypeEquivalence.java | 1 + generics/ErasureAndInheritance.java | 1 + generics/ExplicitTypeSpecification.java | 1 + generics/FactoryConstraint.java | 1 + generics/Fibonacci.java | 1 + generics/Fill.java | 1 + generics/Fill2.java | 1 + generics/FilledListMaker.java | 1 + generics/Functional.java | 1 + generics/Generators.java | 1 + generics/GenericArray.java | 1 + generics/GenericArray2.java | 1 + generics/GenericArrayWithTypeToken.java | 1 + generics/GenericCast.java | 1 + generics/GenericHolder.java | 1 + generics/GenericMethods.java | 1 + generics/GenericReading.java | 1 + generics/GenericVarargs.java | 1 + generics/GenericWriting.java | 1 + generics/GenericsAndCovariance.java | 1 + generics/GenericsAndReturnTypes.java | 1 + generics/HasF.java | 1 + generics/HijackedInterface.java | 1 + generics/Holder.java | 1 + generics/Holder1.java | 1 + generics/Holder2.java | 1 + generics/Holder3.java | 1 + generics/InheritBounds.java | 1 + generics/InstantiateGenericType.cpp | 1 + generics/InstantiateGenericType.java | 1 + generics/IterableFibonacci.java | 1 + generics/LatentReflection.java | 1 + generics/LimitsOfInference.java | 1 + generics/LinkedStack.java | 1 + generics/ListMaker.java | 1 + generics/ListOfGenerics.java | 1 + generics/ListOfInt.java | 1 + generics/LostInformation.java | 1 + generics/Manipulation.java | 1 + generics/Manipulator2.java | 1 + generics/Manipulator3.java | 1 + generics/Mixins.cpp | 1 + generics/Mixins.java | 1 + generics/MultipleInterfaceVariants.java | 1 + generics/NeedCasting.java | 1 + generics/NonCovariantGenerics.java | 1 + generics/NotSelfBounded.java | 1 + generics/OrdinaryArguments.java | 1 + generics/Performs.java | 1 + generics/PlainGenericInheritance.java | 1 + generics/PrimitiveGenericTest.java | 1 + generics/RandomList.java | 1 + generics/RestrictedComparablePets.java | 1 + generics/ReturnGenericType.java | 1 + generics/SelfBounding.java | 1 + .../SelfBoundingAndCovariantArguments.java | 1 + generics/SelfBoundingMethods.java | 1 + generics/SimpleDogsAndRobots.java | 1 + generics/SimpleHolder.java | 1 + generics/SimpleQueue.java | 1 + generics/SimplerPets.java | 1 + generics/Store.java | 1 + generics/SuperTypeWildcards.java | 1 + generics/Templates.cpp | 1 + generics/ThrowGenericException.java | 1 + generics/TupleList.java | 1 + generics/TupleTest.java | 1 + generics/TupleTest2.java | 1 + generics/UnboundedWildcards1.java | 1 + generics/UnboundedWildcards2.java | 1 + generics/Unconstrained.java | 1 + generics/UseList.java | 1 + generics/UseList2.java | 1 + generics/WatercolorSets.java | 1 + generics/Wildcards.java | 1 + generics/coffee/Americano.java | 1 + generics/coffee/Breve.java | 1 + generics/coffee/Cappuccino.java | 1 + generics/coffee/Coffee.java | 1 + generics/coffee/CoffeeGenerator.java | 1 + generics/coffee/Latte.java | 1 + generics/coffee/Mocha.java | 1 + generics/decorator/Decoration.java | 1 + generics/watercolors/Watercolors.java | 1 + gui/BorderLayout1.java | 1 + gui/Borders.java | 1 + gui/Button1.java | 1 + gui/Button2.java | 1 + gui/Button2b.java | 1 + gui/ButtonGroups.java | 1 + gui/Buttons.java | 1 + gui/CheckBoxes.java | 1 + gui/ColorBoxes.java | 1 + gui/ComboBoxes.java | 1 + gui/Dialogs.java | 1 + gui/Faces.java | 1 + gui/FileChooserTest.java | 1 + gui/FlowLayout1.java | 1 + gui/GridLayout1.java | 1 + gui/HTMLButton.java | 1 + gui/HelloLabel.java | 1 + gui/HelloSwing.java | 1 + gui/InterruptableLongRunningCallable.java | 1 + gui/InterruptableLongRunningTask.java | 1 + gui/List.java | 1 + gui/LongRunningTask.java | 1 + gui/LookAndFeel.java | 1 + gui/Menus.java | 1 + gui/MessageBoxes.java | 1 + gui/MonitoredLongRunningCallable.java | 1 + gui/Popup.java | 1 + gui/Progress.java | 1 + gui/RadioButtons.java | 1 + gui/ShowAddListeners.java | 1 + gui/SimpleMenus.java | 1 + gui/SineWave.java | 1 + gui/SubmitLabelManipulationTask.java | 1 + gui/SubmitSwingProgram.java | 1 + gui/TabbedPane1.java | 1 + gui/TextArea.java | 1 + gui/TextFields.java | 1 + gui/TextPane.java | 1 + gui/TicTacToe.java | 1 + gui/TrackEvent.java | 1 + holding/AdapterMethodIdiom.java | 1 + holding/AddingGroups.java | 1 + holding/ApplesAndOrangesWithGenerics.java | 1 + holding/ApplesAndOrangesWithoutGenerics.java | 1 + holding/ArrayIsNotIterable.java | 1 + holding/AsListInference.java | 1 + holding/CollectionSequence.java | 1 + holding/ContainerMethods.java | 1 + holding/CrossContainerIteration.java | 1 + holding/EnvironmentVariables.java | 1 + holding/ForEachCollections.java | 1 + holding/GenericsAndUpcasting.java | 1 + holding/InterfaceVsIterator.java | 1 + holding/IterableClass.java | 1 + holding/LinkedListFeatures.java | 1 + holding/ListFeatures.java | 1 + holding/ListIteration.java | 1 + holding/MapOfList.java | 1 + holding/ModifyingArraysAsList.java | 1 + holding/MultiIterableClass.java | 1 + holding/NonCollectionSequence.java | 1 + holding/PetMap.java | 1 + holding/PrintingContainers.java | 1 + holding/PriorityQueueDemo.java | 1 + holding/QueueDemo.java | 1 + holding/SetOfInteger.java | 1 + holding/SetOperations.java | 1 + holding/SimpleCollection.java | 1 + holding/SimpleIteration.java | 1 + holding/SortedSetOfInteger.java | 1 + holding/StackCollision.java | 1 + holding/StackTest.java | 1 + holding/Statistics.java | 1 + holding/UniqueWords.java | 1 + holding/UniqueWordsAlphabetic.java | 1 + initialization/Apricot.java | 1 + initialization/ArrayClassObj.java | 1 + initialization/ArrayInit.java | 1 + initialization/ArrayNew.java | 1 + initialization/ArraysOfPrimitives.java | 1 + initialization/AutoboxingVarargs.java | 1 + initialization/BananaPeel.java | 1 + initialization/Burrito.java | 1 + initialization/Counter.java | 1 + initialization/DefaultConstructor.java | 1 + initialization/Demotion.java | 1 + initialization/DynamicArray.java | 1 + initialization/EnumOrder.java | 1 + initialization/ExplicitStatic.java | 1 + initialization/Flower.java | 1 + initialization/InitialValues.java | 1 + initialization/InitialValues2.java | 1 + initialization/Leaf.java | 1 + initialization/Measurement.java | 1 + initialization/MethodInit.java | 1 + initialization/MethodInit2.java | 1 + initialization/MethodInit3.java | 1 + initialization/Mugs.java | 1 + initialization/NewVarArgs.java | 1 + initialization/NoSynthesis.java | 1 + initialization/OptionalTrailingArguments.java | 1 + initialization/OrderOfInitialization.java | 1 + initialization/Overloading.java | 1 + initialization/OverloadingOrder.java | 1 + initialization/OverloadingVarargs.java | 1 + initialization/OverloadingVarargs2.java | 1 + initialization/OverloadingVarargs3.java | 1 + initialization/PassingThis.java | 1 + initialization/PrimitiveOverloading.java | 1 + initialization/SimpleConstructor.java | 1 + initialization/SimpleConstructor2.java | 1 + initialization/SimpleEnumUse.java | 1 + initialization/Spiciness.java | 1 + initialization/Spoon.java | 1 + initialization/StaticInitialization.java | 1 + initialization/TerminationCondition.java | 1 + initialization/VarArgs.java | 1 + initialization/VarargType.java | 1 + innerclasses/AnonymousConstructor.java | 1 + innerclasses/ArgReturnReferences.java | 2 + innerclasses/BigEgg.java | 1 + innerclasses/BigEgg2.java | 1 + innerclasses/Callbacks.java | 1 + innerclasses/ClassInInterface.java | 1 + innerclasses/Contents.java | 1 + innerclasses/CtorReference.java | 1 + innerclasses/Destination.java | 1 + innerclasses/DotNew.java | 1 + innerclasses/DotThis.java | 1 + innerclasses/Factories.java | 1 + innerclasses/Games.java | 1 + innerclasses/GreenhouseController.java | 1 + innerclasses/GreenhouseControls.java | 1 + innerclasses/InheritInner.java | 1 + innerclasses/LambdaExpressions.java | 1 + innerclasses/LocalInnerClass.java | 1 + innerclasses/MethodReferences.java | 1 + innerclasses/MultiImplementation.java | 1 + innerclasses/MultiNestingAccess.java | 1 + innerclasses/Parcel1.java | 1 + innerclasses/Parcel10.java | 1 + innerclasses/Parcel11.java | 1 + innerclasses/Parcel2.java | 1 + innerclasses/Parcel3.java | 1 + innerclasses/Parcel5.java | 1 + innerclasses/Parcel6.java | 1 + innerclasses/Parcel7.java | 1 + innerclasses/Parcel7b.java | 1 + innerclasses/Parcel8.java | 1 + innerclasses/Parcel9.java | 1 + innerclasses/RunnableMethodReference.java | 1 + innerclasses/Sequence.java | 1 + innerclasses/TestBed.java | 1 + innerclasses/TestParcel.java | 1 + innerclasses/UnboundMethodReference.java | 1 + innerclasses/Wrapping.java | 1 + innerclasses/build.xml | 4 +- innerclasses/controller/Controller.java | 1 + innerclasses/controller/Event.java | 1 + interfaces/AdaptedRandomDoubles.java | 1 + interfaces/Adventure.java | 1 + interfaces/Factories.java | 1 + interfaces/Games.java | 1 + interfaces/HorrorShow.java | 1 + interfaces/InterfaceCollision.java | 1 + interfaces/Months.java | 1 + interfaces/RandVals.java | 1 + interfaces/RandomDoubles.java | 1 + interfaces/RandomWords.java | 1 + interfaces/TestRandVals.java | 1 + interfaces/classprocessor/Apply.java | 1 + interfaces/filters/BandPass.java | 1 + interfaces/filters/Filter.java | 1 + interfaces/filters/HighPass.java | 1 + interfaces/filters/LowPass.java | 1 + interfaces/filters/Waveform.java | 1 + interfaces/interfaceprocessor/Apply.java | 1 + .../interfaceprocessor/FilterProcessor.java | 1 + interfaces/interfaceprocessor/Processor.java | 1 + .../interfaceprocessor/StringProcessor.java | 1 + interfaces/music4/Music4.java | 1 + interfaces/music5/Music5.java | 1 + interfaces/nesting/NestingInterfaces.java | 1 + io/AStoreCADState.java | 1 + io/Alien.java | 1 + io/AvailableCharSets.java | 1 + io/BasicFileOutput.java | 1 + io/Blip3.java | 1 + io/Blips.java | 1 + io/BufferToText.java | 1 + io/BufferedInputFile.java | 1 + io/ChangeSystemOut.java | 1 + io/ChannelCopy.java | 1 + io/DirList.java | 1 + io/DirList2.java | 1 + io/DirList3.java | 1 + io/DirectoryDemo.java | 1 + io/Echo.java | 1 + io/Endians.java | 1 + io/FileLocking.java | 1 + io/FileOutputShortcut.java | 1 + io/FormattedMemoryInput.java | 1 + io/FreezeAlien.java | 1 + io/GZIPcompress.java | 1 + io/GetChannel.java | 1 + io/GetData.java | 1 + io/IntBufferDemo.java | 1 + io/LargeMappedFiles.java | 1 + io/LockingMappedFiles.java | 1 + io/Logon.java | 1 + io/MakeDirectories.java | 1 + io/MappedIO.java | 1 + io/MemoryInput.java | 1 + io/MyWorld.java | 1 + io/OSExecuteDemo.java | 1 + io/PreferencesDemo.java | 1 + io/RecoverCADState.java | 1 + io/Redirecting.java | 1 + io/SerialCtl.java | 1 + io/StoringAndRecoveringData.java | 1 + io/TestEOF.java | 1 + io/TransferTo.java | 1 + io/UsingBuffers.java | 1 + io/UsingRandomAccessFile.java | 1 + io/ViewBuffers.java | 1 + io/Worm.java | 1 + io/ZipCompress.java | 1 + io/xfiles/ThawAlien.java | 1 + logging/ConfigureLogging.java | 1 + logging/CustomHandler.java | 1 + logging/InfoLogging.java | 1 + logging/InfoLogging2.java | 1 + logging/LogToFile.java | 1 + logging/LogToFile2.java | 1 + logging/LoggingLevelManipulation.java | 1 + logging/LoggingLevels.java | 1 + logging/MultipleHandlers.java | 1 + logging/MultipleHandlers2.java | 1 + logging/PrintableLogRecord.java | 1 + logging/SimpleFilter.java | 1 + logging/SimpleFormatterExample.java | 1 + logging/build.xml | 2 +- net/mindview/atunit/AtUnit.java | 1 + net/mindview/atunit/ClassNameFinder.java | 1 + net/mindview/atunit/Test.java | 1 + net/mindview/atunit/TestObjectCleanup.java | 1 + net/mindview/atunit/TestObjectCreate.java | 1 + net/mindview/atunit/TestProperty.java | 1 + net/mindview/simple/List.java | 1 + net/mindview/simple/Vector.java | 1 + net/mindview/util/BasicGenerator.java | 1 + net/mindview/util/BinaryFile.java | 1 + net/mindview/util/CollectionData.java | 1 + .../util/ContainerMethodDifferences.java | 1 + net/mindview/util/ConvertTo.java | 1 + net/mindview/util/CountingGenerator.java | 1 + net/mindview/util/CountingIntegerList.java | 1 + net/mindview/util/CountingMapData.java | 1 + net/mindview/util/Countries.java | 1 + net/mindview/util/DaemonThreadFactory.java | 1 + .../util/DaemonThreadPoolExecutor.java | 1 + net/mindview/util/Deque.java | 1 + net/mindview/util/Directory.java | 1 + net/mindview/util/Enums.java | 1 + net/mindview/util/FiveTuple.java | 1 + net/mindview/util/FourTuple.java | 1 + net/mindview/util/Generated.java | 1 + net/mindview/util/Generator.java | 1 + net/mindview/util/Hex.java | 1 + net/mindview/util/MapData.java | 1 + net/mindview/util/New.java | 1 + net/mindview/util/Null.java | 1 + net/mindview/util/OSExecute.java | 1 + net/mindview/util/OSExecuteException.java | 1 + net/mindview/util/PPrint.java | 1 + net/mindview/util/Pair.java | 1 + net/mindview/util/Print.java | 1 + net/mindview/util/PrintArray.java | 1 + net/mindview/util/ProcessFiles.java | 1 + net/mindview/util/RandomGenerator.java | 1 + net/mindview/util/Range.java | 1 + net/mindview/util/Sets.java | 1 + net/mindview/util/Stack.java | 1 + net/mindview/util/SwingConsole.java | 1 + net/mindview/util/TaskItem.java | 1 + net/mindview/util/TaskManager.java | 1 + net/mindview/util/TextFile.java | 1 + net/mindview/util/ThreeTuple.java | 1 + net/mindview/util/Tuple.java | 1 + net/mindview/util/TwoTuple.java | 1 + net/mindview/util/TypeCounter.java | 1 + network/ChatterClient.java | 1 + network/ChatterServer.java | 1 + network/Dgram.java | 1 + network/MultiSimpleClient.java | 1 + network/MultiSimpleServer.java | 1 + network/SimpleClient.java | 1 + network/SimpleServer.java | 1 + network/WhoAmI.java | 1 + object/Documentation1.java | 1 + object/Documentation2.java | 1 + object/Documentation3.java | 1 + object/HelloDate.java | 1 + object/ShowProperties.java | 1 + operators/AllOps.java | 1 + operators/Assignment.java | 1 + operators/AutoInc.java | 1 + operators/BitManipulation.java | 1 + operators/Bool.java | 1 + operators/Casting.java | 1 + operators/CastingNumbers.java | 1 + operators/EqualsMethod.java | 1 + operators/EqualsMethod2.java | 1 + operators/Equivalence.java | 1 + operators/Exponents.java | 1 + operators/HelloDate.java | 1 + operators/Literals.java | 1 + operators/MathOps.java | 1 + operators/Overflow.java | 1 + operators/PassObject.java | 1 + operators/Precedence.java | 1 + operators/RoundingNumbers.java | 1 + operators/ShortCircuit.java | 1 + operators/StringOperators.java | 1 + operators/TernaryIfElse.java | 1 + operators/URShift.java | 1 + patterns/CommandPattern.java | 1 + patterns/CommandPattern2.java | 1 + patterns/CommandPattern3.java | 1 + patterns/Facade.java | 1 + patterns/PaperScissorsRock.java | 1 + patterns/ProxyDemo.java | 1 + patterns/ShapeFactory2.java | 1 + patterns/SingletonPattern.java | 1 + patterns/StateDemo.java | 1 + patterns/TemplateMethod.java | 1 + patterns/absfactory/GameEnvironment.java | 1 + patterns/absfactory/GameEnvironment2.java | 1 + patterns/adapt/Adapter.java | 1 + patterns/chain/ChainOfResponsibility.java | 1 + patterns/chain/ChainOfResponsibility2.java | 1 + patterns/doubledispatch/DDAluminum.java | 1 + patterns/doubledispatch/DDCardboard.java | 1 + patterns/doubledispatch/DDGlass.java | 1 + patterns/doubledispatch/DDPaper.java | 1 + patterns/doubledispatch/DoubleDispatch.java | 1 + patterns/doubledispatch/TypedBin.java | 1 + patterns/doubledispatch/TypedBinMember.java | 1 + patterns/dynatrash/DynaTrash.java | 1 + patterns/factory/ShapeFactory1.java | 1 + patterns/observer/ObservedFlower.java | 1 + patterns/recyclea/RecycleA.java | 1 + patterns/recycleap/RecycleAP.java | 1 + patterns/recycleb/RecycleB.java | 1 + patterns/state/StateMachineDemo.java | 1 + patterns/strategy/StrategyPattern.java | 1 + patterns/strategy/StrategyPattern2.java | 1 + patterns/trash/Aluminum.java | 1 + patterns/trash/Cardboard.java | 1 + patterns/trash/Fillable.java | 1 + patterns/trash/FillableList.java | 1 + patterns/trash/Glass.java | 1 + patterns/trash/Paper.java | 1 + patterns/trash/ParseTrash.java | 1 + patterns/trash/Trash.java | 1 + patterns/trashvisitor/TrashVisitor.java | 1 + patterns/trashvisitor/VAluminum.java | 1 + patterns/trashvisitor/VCardboard.java | 1 + patterns/trashvisitor/VGlass.java | 1 + patterns/trashvisitor/VPaper.java | 1 + patterns/trashvisitor/Visitable.java | 1 + patterns/trashvisitor/Visitor.java | 1 + patterns/visitor/BeeAndFlowers.java | 1 + patterns/visualobserver/BoxObserver.java | 1 + polymorphism/CovariantReturn.java | 1 + polymorphism/FieldAccess.java | 1 + polymorphism/Frog.java | 1 + polymorphism/PolyConstructors.java | 1 + polymorphism/PrivateOverride.java | 1 + polymorphism/RTTI.java | 1 + polymorphism/ReferenceCounting.java | 1 + polymorphism/Sandwich.java | 1 + polymorphism/Shapes.java | 1 + polymorphism/StaticPolymorphism.java | 1 + polymorphism/Transmogrify.java | 1 + polymorphism/music/Instrument.java | 1 + polymorphism/music/Music.java | 1 + polymorphism/music/Music2.java | 1 + polymorphism/music/Note.java | 1 + polymorphism/music/Wind.java | 1 + polymorphism/music3/Music3.java | 1 + polymorphism/shape/Circle.java | 1 + polymorphism/shape/RandomShapeGenerator.java | 1 + polymorphism/shape/Shape.java | 1 + polymorphism/shape/Square.java | 1 + polymorphism/shape/Triangle.java | 1 + references/AddingClone.java | 1 + references/Alias1.java | 1 + references/Alias2.java | 1 + references/CheckCloneable.java | 1 + references/Cloning.java | 1 + references/Compete.java | 1 + references/CopyConstructor.java | 1 + references/DeepCopy.java | 1 + references/HorrorFlick.java | 1 + references/Immutable1.java | 1 + references/Immutable2.java | 1 + references/ImmutableInteger.java | 1 + references/ImmutableStrings.java | 1 + references/LocalCopy.java | 1 + references/MutableInteger.java | 1 + references/PassReferences.java | 1 + references/Snake.java | 1 + references/Stringer.java | 1 + remote/ptime/DisplayPerfectTime.java | 1 + remote/ptime/PerfectTime.java | 1 + remote/ptime/PerfectTimeI.java | 1 + reusing/Bath.java | 1 + reusing/Beetle.java | 1 + reusing/BlankFinal.java | 1 + reusing/CADSystem.java | 1 + reusing/Car.java | 1 + reusing/Cartoon.java | 1 + reusing/Chess.java | 1 + reusing/Detergent.java | 1 + reusing/FinalArguments.java | 1 + reusing/FinalData.java | 1 + reusing/FinalOverridingIllusion.java | 1 + reusing/Hide.java | 1 + reusing/Jurassic.java | 1 + reusing/Lisa.java | 1 + reusing/Orc.java | 1 + reusing/PlaceSetting.java | 1 + reusing/SpaceShip.java | 1 + reusing/SpaceShipControls.java | 1 + reusing/SpaceShipDelegation.java | 1 + reusing/SprinklerSystem.java | 1 + reusing/Wind.java | 1 + staticchecking/DogsAndRobots.cpp | 1 + staticchecking/DogsAndRobots.py | 1 + staticchecking/NoBasePetSpeak.py | 1 + staticchecking/PetSpeak.py | 1 + staticchecking/dr/DogsAndRobots.java | 1 + .../drc/DogAndRobotCollections.java | 1 + staticchecking/latent/Latent.java | 1 + staticchecking/petspeak/PetSpeak.java | 1 + strings/ArrayListDisplay.java | 1 + strings/BetterRead.java | 1 + strings/Concatenation.java | 1 + strings/Conversion.java | 1 + strings/DatabaseException.java | 1 + strings/Finding.java | 1 + strings/Groups.java | 1 + strings/Immutable.java | 1 + strings/InfiniteRecursion.java | 1 + strings/IntegerMatch.java | 1 + strings/JGrep.java | 1 + strings/ReFlags.java | 1 + strings/Receipt.java | 1 + strings/Replacing.java | 1 + strings/ReplacingStringTokenizer.java | 1 + strings/Resetting.java | 1 + strings/Rudolph.java | 1 + strings/ScannerDelimiter.java | 1 + strings/SimpleFormat.java | 1 + strings/SimpleRead.java | 1 + strings/SplitDemo.java | 1 + strings/Splitting.java | 1 + strings/StartEnd.java | 1 + strings/TestRegularExpression.java | 1 + strings/TheReplacements.java | 1 + strings/ThreatAnalyzer.java | 1 + strings/Turtle.java | 1 + strings/UsingStringBuilder.java | 1 + strings/WhitherStringBuilder.java | 1 + swt/ColorBoxes.java | 1 + swt/DisplayEnvironment.java | 1 + swt/DisplayProperties.java | 1 + swt/HelloSWT.java | 1 + swt/Menus.java | 1 + swt/ShellsAreMainWindows.java | 1 + swt/SineWave.java | 1 + swt/TabbedPane.java | 1 + swt/util/SWTApplication.java | 1 + swt/util/SWTConsole.java | 1 + tools/update_git.py | 57 ++++++++++++++++++- typeinfo/AnonymousImplementation.java | 1 + typeinfo/BoundedClassReferences.java | 1 + typeinfo/ClassCasts.java | 1 + typeinfo/ClassInitialization.java | 1 + typeinfo/FamilyVsExactType.java | 1 + typeinfo/FilledList.java | 1 + typeinfo/GenericClassReferences.java | 1 + typeinfo/HiddenImplementation.java | 1 + typeinfo/InnerImplementation.java | 1 + typeinfo/InterfaceViolation.java | 1 + typeinfo/ModifyingPrivateFields.java | 1 + typeinfo/NullRobot.java | 1 + typeinfo/Operation.java | 1 + typeinfo/Person.java | 1 + typeinfo/PetCount.java | 1 + typeinfo/PetCount2.java | 1 + typeinfo/PetCount3.java | 1 + typeinfo/PetCount4.java | 1 + typeinfo/Position.java | 1 + typeinfo/RegisteredFactories.java | 1 + typeinfo/Robot.java | 1 + typeinfo/SelectingMethods.java | 1 + typeinfo/Shapes.java | 1 + typeinfo/ShowMethods.java | 1 + typeinfo/SimpleDynamicProxy.java | 1 + typeinfo/SimpleProxyDemo.java | 1 + typeinfo/SnowRemovalRobot.java | 1 + typeinfo/Staff.java | 1 + typeinfo/SweetShop.java | 1 + typeinfo/WildcardClassReferences.java | 1 + typeinfo/factory/Factory.java | 1 + typeinfo/interfacea/A.java | 1 + typeinfo/packageaccess/HiddenC.java | 1 + typeinfo/pets/Cat.java | 1 + typeinfo/pets/Cymric.java | 1 + typeinfo/pets/Dog.java | 1 + typeinfo/pets/EgyptianMau.java | 1 + typeinfo/pets/ForNameCreator.java | 1 + typeinfo/pets/Hamster.java | 1 + typeinfo/pets/Individual.java | 1 + typeinfo/pets/LiteralPetCreator.java | 1 + typeinfo/pets/Manx.java | 1 + typeinfo/pets/Mouse.java | 1 + typeinfo/pets/Mutt.java | 1 + typeinfo/pets/Person.java | 1 + typeinfo/pets/Pet.java | 1 + typeinfo/pets/PetCreator.java | 1 + typeinfo/pets/Pets.java | 1 + typeinfo/pets/Pug.java | 1 + typeinfo/pets/Rat.java | 1 + typeinfo/pets/Rodent.java | 1 + typeinfo/toys/GenericToyTest.java | 1 + typeinfo/toys/ToyTest.java | 1 + unittesting/JUnitDemo.java | 1 + xml/APerson.java | 1 + xml/People.java | 1 + 932 files changed, 989 insertions(+), 5 deletions(-) create mode 100644 clean.bat diff --git a/access/Cake.java b/access/Cake.java index 5fb41638..d2b2444c 100644 --- a/access/Cake.java +++ b/access/Cake.java @@ -1,4 +1,5 @@ //: access/Cake.java +// ©2015 MindView LLC: see Copyright.txt // Accesses a class in a separate compilation unit. class Cake { diff --git a/access/ChocolateChip.java b/access/ChocolateChip.java index fc99b077..777b8d3d 100644 --- a/access/ChocolateChip.java +++ b/access/ChocolateChip.java @@ -1,4 +1,5 @@ //: access/ChocolateChip.java +// ©2015 MindView LLC: see Copyright.txt // Can't use package-access member from another package. import access.dessert.*; diff --git a/access/ChocolateChip2.java b/access/ChocolateChip2.java index 4c172536..8a908c31 100644 --- a/access/ChocolateChip2.java +++ b/access/ChocolateChip2.java @@ -1,4 +1,5 @@ //: access/ChocolateChip2.java +// ©2015 MindView LLC: see Copyright.txt import access.cookie2.*; public class ChocolateChip2 extends Cookie { diff --git a/access/Dinner.java b/access/Dinner.java index 41822681..8d4758a2 100644 --- a/access/Dinner.java +++ b/access/Dinner.java @@ -1,4 +1,5 @@ //: access/Dinner.java +// ©2015 MindView LLC: see Copyright.txt // Uses the library. import access.dessert.*; diff --git a/access/FullQualification.java b/access/FullQualification.java index 9fc44d19..ac8405a9 100644 --- a/access/FullQualification.java +++ b/access/FullQualification.java @@ -1,4 +1,5 @@ //: access/FullQualification.java +// ©2015 MindView LLC: see Copyright.txt public class FullQualification { public static void main(String[] args) { diff --git a/access/IceCream.java b/access/IceCream.java index 7d5c5faf..0f894aa8 100644 --- a/access/IceCream.java +++ b/access/IceCream.java @@ -1,4 +1,5 @@ //: access/IceCream.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates "private" keyword. class Sundae { diff --git a/access/ImportedMyClass.java b/access/ImportedMyClass.java index 32bc7b07..34a41f04 100644 --- a/access/ImportedMyClass.java +++ b/access/ImportedMyClass.java @@ -1,4 +1,5 @@ //: access/ImportedMyClass.java +// ©2015 MindView LLC: see Copyright.txt import access.mypackage.*; public class ImportedMyClass { diff --git a/access/LibTest.java b/access/LibTest.java index 00295db3..d2077edd 100644 --- a/access/LibTest.java +++ b/access/LibTest.java @@ -1,4 +1,5 @@ //: access/LibTest.java +// ©2015 MindView LLC: see Copyright.txt // Uses the library. import net.mindview.simple.*; diff --git a/access/Lunch.java b/access/Lunch.java index 97221383..e0d19600 100644 --- a/access/Lunch.java +++ b/access/Lunch.java @@ -1,4 +1,5 @@ //: access/Lunch.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates class access specifiers. Make a class // effectively private with private constructors: diff --git a/access/OrganizedByAccess.java b/access/OrganizedByAccess.java index 389341bb..dc4e3ef9 100644 --- a/access/OrganizedByAccess.java +++ b/access/OrganizedByAccess.java @@ -1,4 +1,5 @@ //: access/OrganizedByAccess.java +// ©2015 MindView LLC: see Copyright.txt public class OrganizedByAccess { public void pub1() { /* ... */ } diff --git a/access/Pie.java b/access/Pie.java index 05c13e83..8139b43e 100644 --- a/access/Pie.java +++ b/access/Pie.java @@ -1,4 +1,5 @@ //: access/Pie.java +// ©2015 MindView LLC: see Copyright.txt // The other class. class Pie { diff --git a/access/PrintTest.java b/access/PrintTest.java index 948ac1de..38e38902 100644 --- a/access/PrintTest.java +++ b/access/PrintTest.java @@ -1,4 +1,5 @@ //: access/PrintTest.java +// ©2015 MindView LLC: see Copyright.txt // Uses the static printing methods in Print.java. import static net.mindview.util.Print.*; diff --git a/access/QualifiedMyClass.java b/access/QualifiedMyClass.java index 7749935d..62d9ceb6 100644 --- a/access/QualifiedMyClass.java +++ b/access/QualifiedMyClass.java @@ -1,4 +1,5 @@ //: access/QualifiedMyClass.java +// ©2015 MindView LLC: see Copyright.txt public class QualifiedMyClass { public static void main(String[] args) { diff --git a/access/SingleImport.java b/access/SingleImport.java index 5f98455c..0204e978 100644 --- a/access/SingleImport.java +++ b/access/SingleImport.java @@ -1,4 +1,5 @@ //: access/SingleImport.java +// ©2015 MindView LLC: see Copyright.txt import java.util.ArrayList; public class SingleImport { diff --git a/access/cookie2/Cookie.java b/access/cookie2/Cookie.java index a53e651f..9dc1808c 100644 --- a/access/cookie2/Cookie.java +++ b/access/cookie2/Cookie.java @@ -1,4 +1,5 @@ //: access/cookie2/Cookie.java +// ©2015 MindView LLC: see Copyright.txt package access.cookie2; public class Cookie { diff --git a/access/dessert/Cookie.java b/access/dessert/Cookie.java index 3c7624f6..0398c64d 100644 --- a/access/dessert/Cookie.java +++ b/access/dessert/Cookie.java @@ -1,4 +1,5 @@ //: access/dessert/Cookie.java +// ©2015 MindView LLC: see Copyright.txt // Creates a library. package access.dessert; diff --git a/access/mypackage/MyClass.java b/access/mypackage/MyClass.java index fdcfcf2e..5715e62e 100644 --- a/access/mypackage/MyClass.java +++ b/access/mypackage/MyClass.java @@ -1,4 +1,5 @@ //: access/mypackage/MyClass.java +// ©2015 MindView LLC: see Copyright.txt package access.mypackage; public class MyClass { diff --git a/annotations/AtUnitComposition.java b/annotations/AtUnitComposition.java index a80fd7c6..969c921e 100644 --- a/annotations/AtUnitComposition.java +++ b/annotations/AtUnitComposition.java @@ -1,4 +1,5 @@ //: annotations/AtUnitComposition.java +// ©2015 MindView LLC: see Copyright.txt // Creating non-embedded tests. package annotations; import net.mindview.atunit.*; diff --git a/annotations/AtUnitExample1.java b/annotations/AtUnitExample1.java index 890f2a4b..c08cdff6 100644 --- a/annotations/AtUnitExample1.java +++ b/annotations/AtUnitExample1.java @@ -1,4 +1,5 @@ //: annotations/AtUnitExample1.java +// ©2015 MindView LLC: see Copyright.txt package annotations; import net.mindview.atunit.*; import net.mindview.util.*; diff --git a/annotations/AtUnitExample2.java b/annotations/AtUnitExample2.java index 88f9b394..dc43e061 100644 --- a/annotations/AtUnitExample2.java +++ b/annotations/AtUnitExample2.java @@ -1,4 +1,5 @@ //: annotations/AtUnitExample2.java +// ©2015 MindView LLC: see Copyright.txt // Assertions and exceptions can be used in @Tests. package annotations; import java.io.*; diff --git a/annotations/AtUnitExample3.java b/annotations/AtUnitExample3.java index 583c4a65..71270e64 100644 --- a/annotations/AtUnitExample3.java +++ b/annotations/AtUnitExample3.java @@ -1,4 +1,5 @@ //: annotations/AtUnitExample3.java +// ©2015 MindView LLC: see Copyright.txt package annotations; import net.mindview.atunit.*; import net.mindview.util.*; diff --git a/annotations/AtUnitExample4.java b/annotations/AtUnitExample4.java index 1e3684e7..81eafcd4 100644 --- a/annotations/AtUnitExample4.java +++ b/annotations/AtUnitExample4.java @@ -1,4 +1,5 @@ //: annotations/AtUnitExample4.java +// ©2015 MindView LLC: see Copyright.txt package annotations; import java.util.*; import net.mindview.atunit.*; diff --git a/annotations/AtUnitExample5.java b/annotations/AtUnitExample5.java index 294f74c2..394a5c6d 100644 --- a/annotations/AtUnitExample5.java +++ b/annotations/AtUnitExample5.java @@ -1,4 +1,5 @@ //: annotations/AtUnitExample5.java +// ©2015 MindView LLC: see Copyright.txt package annotations; import java.io.*; import net.mindview.atunit.*; diff --git a/annotations/AtUnitExternalTest.java b/annotations/AtUnitExternalTest.java index 2b5b0570..79fe82f7 100644 --- a/annotations/AtUnitExternalTest.java +++ b/annotations/AtUnitExternalTest.java @@ -1,4 +1,5 @@ //: annotations/AtUnitExternalTest.java +// ©2015 MindView LLC: see Copyright.txt // Creating non-embedded tests. package annotations; import net.mindview.atunit.*; diff --git a/annotations/HashSetTest.java b/annotations/HashSetTest.java index a8b638e8..cf2d2ec5 100644 --- a/annotations/HashSetTest.java +++ b/annotations/HashSetTest.java @@ -1,4 +1,5 @@ //: annotations/HashSetTest.java +// ©2015 MindView LLC: see Copyright.txt package annotations; import java.util.*; import net.mindview.atunit.*; diff --git a/annotations/PasswordUtils.java b/annotations/PasswordUtils.java index d3ded283..9961e749 100644 --- a/annotations/PasswordUtils.java +++ b/annotations/PasswordUtils.java @@ -1,4 +1,5 @@ //: annotations/PasswordUtils.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class PasswordUtils { diff --git a/annotations/SimulatingNull.java b/annotations/SimulatingNull.java index 7a83751f..c9f4002c 100644 --- a/annotations/SimulatingNull.java +++ b/annotations/SimulatingNull.java @@ -1,4 +1,5 @@ //: annotations/SimulatingNull.java +// ©2015 MindView LLC: see Copyright.txt import java.lang.annotation.*; @Target(ElementType.METHOD) diff --git a/annotations/StackL.java b/annotations/StackL.java index ce572b05..542f537e 100644 --- a/annotations/StackL.java +++ b/annotations/StackL.java @@ -1,4 +1,5 @@ //: annotations/StackL.java +// ©2015 MindView LLC: see Copyright.txt // A stack built on a linkedList. package annotations; import java.util.*; diff --git a/annotations/StackLStringTest.java b/annotations/StackLStringTest.java index 710e8c26..fe82a00b 100644 --- a/annotations/StackLStringTest.java +++ b/annotations/StackLStringTest.java @@ -1,4 +1,5 @@ //: annotations/StackLStringTest.java +// ©2015 MindView LLC: see Copyright.txt // Applying @Unit to generics. package annotations; import net.mindview.atunit.*; diff --git a/annotations/Testable.java b/annotations/Testable.java index 8ec59c48..46737339 100644 --- a/annotations/Testable.java +++ b/annotations/Testable.java @@ -1,4 +1,5 @@ //: annotations/Testable.java +// ©2015 MindView LLC: see Copyright.txt package annotations; import net.mindview.atunit.*; diff --git a/annotations/UseCase.java b/annotations/UseCase.java index b37298ec..62f8eb82 100644 --- a/annotations/UseCase.java +++ b/annotations/UseCase.java @@ -1,4 +1,5 @@ //: annotations/UseCase.java +// ©2015 MindView LLC: see Copyright.txt import java.lang.annotation.*; @Target(ElementType.METHOD) diff --git a/annotations/UseCaseTracker.java b/annotations/UseCaseTracker.java index 924ee6fc..3e8ceb5f 100644 --- a/annotations/UseCaseTracker.java +++ b/annotations/UseCaseTracker.java @@ -1,4 +1,5 @@ //: annotations/UseCaseTracker.java +// ©2015 MindView LLC: see Copyright.txt import java.lang.reflect.*; import java.util.*; diff --git a/annotations/database/Constraints.java b/annotations/database/Constraints.java index 4abaf1f8..da7306b2 100644 --- a/annotations/database/Constraints.java +++ b/annotations/database/Constraints.java @@ -1,4 +1,5 @@ //: annotations/database/Constraints.java +// ©2015 MindView LLC: see Copyright.txt package annotations.database; import java.lang.annotation.*; diff --git a/annotations/database/DBTable.java b/annotations/database/DBTable.java index 7021636a..2245db87 100644 --- a/annotations/database/DBTable.java +++ b/annotations/database/DBTable.java @@ -1,4 +1,5 @@ //: annotations/database/DBTable.java +// ©2015 MindView LLC: see Copyright.txt package annotations.database; import java.lang.annotation.*; diff --git a/annotations/database/Member.java b/annotations/database/Member.java index 89a815fa..94ad722e 100644 --- a/annotations/database/Member.java +++ b/annotations/database/Member.java @@ -1,4 +1,5 @@ //: annotations/database/Member.java +// ©2015 MindView LLC: see Copyright.txt package annotations.database; @DBTable(name = "MEMBER") diff --git a/annotations/database/SQLInteger.java b/annotations/database/SQLInteger.java index c772ea1b..f870f35d 100644 --- a/annotations/database/SQLInteger.java +++ b/annotations/database/SQLInteger.java @@ -1,4 +1,5 @@ //: annotations/database/SQLInteger.java +// ©2015 MindView LLC: see Copyright.txt package annotations.database; import java.lang.annotation.*; diff --git a/annotations/database/SQLString.java b/annotations/database/SQLString.java index 0e458b8b..4ea409d8 100644 --- a/annotations/database/SQLString.java +++ b/annotations/database/SQLString.java @@ -1,4 +1,5 @@ //: annotations/database/SQLString.java +// ©2015 MindView LLC: see Copyright.txt package annotations.database; import java.lang.annotation.*; diff --git a/annotations/database/TableCreator.java b/annotations/database/TableCreator.java index 37953dde..a0dd8104 100644 --- a/annotations/database/TableCreator.java +++ b/annotations/database/TableCreator.java @@ -1,4 +1,5 @@ //: annotations/database/TableCreator.java +// ©2015 MindView LLC: see Copyright.txt // Reflection-based annotation processor. // {Args: annotations.database.Member} package annotations.database; diff --git a/annotations/database/Uniqueness.java b/annotations/database/Uniqueness.java index e17a597b..3a285612 100644 --- a/annotations/database/Uniqueness.java +++ b/annotations/database/Uniqueness.java @@ -1,4 +1,5 @@ //: annotations/database/Uniqueness.java +// ©2015 MindView LLC: see Copyright.txt // Sample of nested annotations package annotations.database; diff --git a/annotations/ifx/ExtractInterface.java b/annotations/ifx/ExtractInterface.java index e70916b8..296132f7 100644 --- a/annotations/ifx/ExtractInterface.java +++ b/annotations/ifx/ExtractInterface.java @@ -1,4 +1,5 @@ //: annotations/ifx/ExtractInterface.java +// ©2015 MindView LLC: see Copyright.txt // javac-based annotation processing. package annotations.ifx; import java.lang.annotation.*; diff --git a/annotations/ifx/IfaceExtractorProcessor.java b/annotations/ifx/IfaceExtractorProcessor.java index ac5ac20e..5a6a4669 100644 --- a/annotations/ifx/IfaceExtractorProcessor.java +++ b/annotations/ifx/IfaceExtractorProcessor.java @@ -1,4 +1,5 @@ //: annotations/ifx/IfaceExtractorProcessor.java +// ©2015 MindView LLC: see Copyright.txt // javac-based annotation processing. package annotations.ifx; import javax.annotation.processing.*; diff --git a/annotations/ifx/Multiplier.java b/annotations/ifx/Multiplier.java index d076a2b6..a11dbf81 100644 --- a/annotations/ifx/Multiplier.java +++ b/annotations/ifx/Multiplier.java @@ -1,4 +1,5 @@ //: annotations/ifx/Multiplier.java +// ©2015 MindView LLC: see Copyright.txt // javac-based annotation processing. package annotations.ifx; diff --git a/annotations/simplest/Simple.java b/annotations/simplest/Simple.java index c83851d7..07889d3c 100644 --- a/annotations/simplest/Simple.java +++ b/annotations/simplest/Simple.java @@ -1,4 +1,5 @@ //: annotations/simplest/Simple.java +// ©2015 MindView LLC: see Copyright.txt // 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 433698a8..0c24aace 100644 --- a/annotations/simplest/SimpleProcessor.java +++ b/annotations/simplest/SimpleProcessor.java @@ -1,4 +1,5 @@ //: annotations/simplest/SimpleProcessor.java +// ©2015 MindView LLC: see Copyright.txt // 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 5ab0d1ab..24f1305b 100644 --- a/annotations/simplest/SimpleTest.java +++ b/annotations/simplest/SimpleTest.java @@ -1,4 +1,5 @@ //: annotations/simplest/SimpleTest.java +// ©2015 MindView LLC: see Copyright.txt // Test the "Simple" annotation package annotations.simplest; diff --git a/arrays/AlphabeticSearch.java b/arrays/AlphabeticSearch.java index 5f3f3f90..6bccb611 100644 --- a/arrays/AlphabeticSearch.java +++ b/arrays/AlphabeticSearch.java @@ -1,4 +1,5 @@ //: arrays/AlphabeticSearch.java +// ©2015 MindView LLC: see Copyright.txt // Searching with a Comparator. import java.util.*; import net.mindview.util.*; diff --git a/arrays/ArrayOfGenericType.java b/arrays/ArrayOfGenericType.java index 98728fc0..4db2beb2 100644 --- a/arrays/ArrayOfGenericType.java +++ b/arrays/ArrayOfGenericType.java @@ -1,4 +1,5 @@ //: arrays/ArrayOfGenericType.java +// ©2015 MindView LLC: see Copyright.txt // Arrays of generic types won't compile. public class ArrayOfGenericType { diff --git a/arrays/ArrayOfGenerics.java b/arrays/ArrayOfGenerics.java index c48ce23f..17560a59 100644 --- a/arrays/ArrayOfGenerics.java +++ b/arrays/ArrayOfGenerics.java @@ -1,4 +1,5 @@ //: arrays/ArrayOfGenerics.java +// ©2015 MindView LLC: see Copyright.txt // It is possible to create arrays of generics. import java.util.*; diff --git a/arrays/ArrayOptions.java b/arrays/ArrayOptions.java index dcb69815..ba5004c9 100644 --- a/arrays/ArrayOptions.java +++ b/arrays/ArrayOptions.java @@ -1,4 +1,5 @@ //: arrays/ArrayOptions.java +// ©2015 MindView LLC: see Copyright.txt // Initialization & re-assignment of arrays. import java.util.*; import static net.mindview.util.Print.*; diff --git a/arrays/ArraySearching.java b/arrays/ArraySearching.java index 74b2fbe4..9108be7f 100644 --- a/arrays/ArraySearching.java +++ b/arrays/ArraySearching.java @@ -1,4 +1,5 @@ //: arrays/ArraySearching.java +// ©2015 MindView LLC: see Copyright.txt // Using Arrays.binarySearch(). import java.util.*; import net.mindview.util.*; diff --git a/arrays/AssemblingMultidimensionalArrays.java b/arrays/AssemblingMultidimensionalArrays.java index c1f97201..56adbbc1 100644 --- a/arrays/AssemblingMultidimensionalArrays.java +++ b/arrays/AssemblingMultidimensionalArrays.java @@ -1,4 +1,5 @@ //: arrays/AssemblingMultidimensionalArrays.java +// ©2015 MindView LLC: see Copyright.txt // Creating multidimensional arrays. import java.util.*; diff --git a/arrays/AutoboxingArrays.java b/arrays/AutoboxingArrays.java index 9cba9fe8..7241256b 100644 --- a/arrays/AutoboxingArrays.java +++ b/arrays/AutoboxingArrays.java @@ -1,4 +1,5 @@ //: arrays/AutoboxingArrays.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class AutoboxingArrays { diff --git a/arrays/CompType.java b/arrays/CompType.java index 127dac8a..a7724a02 100644 --- a/arrays/CompType.java +++ b/arrays/CompType.java @@ -1,4 +1,5 @@ //: arrays/CompType.java +// ©2015 MindView LLC: see Copyright.txt // Implementing Comparable in a class. import java.util.*; import net.mindview.util.*; diff --git a/arrays/ComparatorTest.java b/arrays/ComparatorTest.java index fc20b46c..152fc9a2 100644 --- a/arrays/ComparatorTest.java +++ b/arrays/ComparatorTest.java @@ -1,4 +1,5 @@ //: arrays/ComparatorTest.java +// ©2015 MindView LLC: see Copyright.txt // Implementing a Comparator for a class. import java.util.*; import net.mindview.util.*; diff --git a/arrays/ComparingArrays.java b/arrays/ComparingArrays.java index cd263aaa..0951dac0 100644 --- a/arrays/ComparingArrays.java +++ b/arrays/ComparingArrays.java @@ -1,4 +1,5 @@ //: arrays/ComparingArrays.java +// ©2015 MindView LLC: see Copyright.txt // Using Arrays.equals() import java.util.*; import static net.mindview.util.Print.*; diff --git a/arrays/ContainerComparison.java b/arrays/ContainerComparison.java index 288b4a28..69842540 100644 --- a/arrays/ContainerComparison.java +++ b/arrays/ContainerComparison.java @@ -1,4 +1,5 @@ //: arrays/ContainerComparison.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; import static net.mindview.util.Print.*; diff --git a/arrays/CopyingArrays.java b/arrays/CopyingArrays.java index a88c6472..e184a9b0 100644 --- a/arrays/CopyingArrays.java +++ b/arrays/CopyingArrays.java @@ -1,4 +1,5 @@ //: arrays/CopyingArrays.java +// ©2015 MindView LLC: see Copyright.txt // Using System.arraycopy() import java.util.*; import static net.mindview.util.Print.*; diff --git a/arrays/FillingArrays.java b/arrays/FillingArrays.java index f91bf83b..dd29222b 100644 --- a/arrays/FillingArrays.java +++ b/arrays/FillingArrays.java @@ -1,4 +1,5 @@ //: arrays/FillingArrays.java +// ©2015 MindView LLC: see Copyright.txt // Using Arrays.fill() import java.util.*; import static net.mindview.util.Print.*; diff --git a/arrays/GeneratorsTest.java b/arrays/GeneratorsTest.java index fa59de7f..ed56113d 100644 --- a/arrays/GeneratorsTest.java +++ b/arrays/GeneratorsTest.java @@ -1,4 +1,5 @@ //: arrays/GeneratorsTest.java +// ©2015 MindView LLC: see Copyright.txt import net.mindview.util.*; public class GeneratorsTest { diff --git a/arrays/IceCream.java b/arrays/IceCream.java index fc8f6263..3fc3f501 100644 --- a/arrays/IceCream.java +++ b/arrays/IceCream.java @@ -1,4 +1,5 @@ //: arrays/IceCream.java +// ©2015 MindView LLC: see Copyright.txt // Returning arrays from methods. import java.util.*; diff --git a/arrays/MultiDimWrapperArray.java b/arrays/MultiDimWrapperArray.java index 0b425dc8..c1f6ed94 100644 --- a/arrays/MultiDimWrapperArray.java +++ b/arrays/MultiDimWrapperArray.java @@ -1,4 +1,5 @@ //: arrays/MultiDimWrapperArray.java +// ©2015 MindView LLC: see Copyright.txt // Multidimensional arrays of "wrapper" objects. import java.util.*; diff --git a/arrays/MultidimensionalObjectArrays.java b/arrays/MultidimensionalObjectArrays.java index c5113669..1eed01c2 100644 --- a/arrays/MultidimensionalObjectArrays.java +++ b/arrays/MultidimensionalObjectArrays.java @@ -1,4 +1,5 @@ //: arrays/MultidimensionalObjectArrays.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class MultidimensionalObjectArrays { diff --git a/arrays/MultidimensionalPrimitiveArray.java b/arrays/MultidimensionalPrimitiveArray.java index 442fbec5..801dded9 100644 --- a/arrays/MultidimensionalPrimitiveArray.java +++ b/arrays/MultidimensionalPrimitiveArray.java @@ -1,4 +1,5 @@ //: arrays/MultidimensionalPrimitiveArray.java +// ©2015 MindView LLC: see Copyright.txt // Creating multidimensional arrays. import java.util.*; diff --git a/arrays/ParameterizedArrayType.java b/arrays/ParameterizedArrayType.java index e6a3383c..b0e659da 100644 --- a/arrays/ParameterizedArrayType.java +++ b/arrays/ParameterizedArrayType.java @@ -1,4 +1,5 @@ //: arrays/ParameterizedArrayType.java +// ©2015 MindView LLC: see Copyright.txt class ClassParameter { public T[] f(T[] arg) { return arg; } diff --git a/arrays/PrimitiveConversionDemonstration.java b/arrays/PrimitiveConversionDemonstration.java index e60cdfca..45442858 100644 --- a/arrays/PrimitiveConversionDemonstration.java +++ b/arrays/PrimitiveConversionDemonstration.java @@ -1,4 +1,5 @@ //: arrays/PrimitiveConversionDemonstration.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; import net.mindview.util.*; diff --git a/arrays/PythonLists.py b/arrays/PythonLists.py index 79a50460..36acce42 100644 --- a/arrays/PythonLists.py +++ b/arrays/PythonLists.py @@ -1,4 +1,5 @@ #: arrays/PythonLists.py +# ©2015 MindView LLC: see Copyright.txt aList = [1, 2, 3, 4, 5] print(type(aList)) # diff --git a/arrays/RaggedArray.java b/arrays/RaggedArray.java index f58af6ed..8fa2c8ff 100644 --- a/arrays/RaggedArray.java +++ b/arrays/RaggedArray.java @@ -1,4 +1,5 @@ //: arrays/RaggedArray.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class RaggedArray { diff --git a/arrays/RandomGeneratorsTest.java b/arrays/RandomGeneratorsTest.java index aded9883..b366d0e6 100644 --- a/arrays/RandomGeneratorsTest.java +++ b/arrays/RandomGeneratorsTest.java @@ -1,4 +1,5 @@ //: arrays/RandomGeneratorsTest.java +// ©2015 MindView LLC: see Copyright.txt import net.mindview.util.*; public class RandomGeneratorsTest { diff --git a/arrays/Reverse.java b/arrays/Reverse.java index 3ee36ecd..e7cf5cd9 100644 --- a/arrays/Reverse.java +++ b/arrays/Reverse.java @@ -1,4 +1,5 @@ //: arrays/Reverse.java +// ©2015 MindView LLC: see Copyright.txt // The Collections.reverseOrder() Comparator import java.util.*; import net.mindview.util.*; diff --git a/arrays/StringSorting.java b/arrays/StringSorting.java index 082cc5a7..cc642f34 100644 --- a/arrays/StringSorting.java +++ b/arrays/StringSorting.java @@ -1,4 +1,5 @@ //: arrays/StringSorting.java +// ©2015 MindView LLC: see Copyright.txt // Sorting an array of Strings. import java.util.*; import net.mindview.util.*; diff --git a/arrays/TestArrayGeneration.java b/arrays/TestArrayGeneration.java index 02586ea2..6d9c298c 100644 --- a/arrays/TestArrayGeneration.java +++ b/arrays/TestArrayGeneration.java @@ -1,4 +1,5 @@ //: arrays/TestArrayGeneration.java +// ©2015 MindView LLC: see Copyright.txt // Test the tools that use generators to fill arrays. import java.util.*; import net.mindview.util.*; diff --git a/arrays/TestGenerated.java b/arrays/TestGenerated.java index 7ff023ef..bc997857 100644 --- a/arrays/TestGenerated.java +++ b/arrays/TestGenerated.java @@ -1,4 +1,5 @@ //: arrays/TestGenerated.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; import net.mindview.util.*; diff --git a/arrays/ThreeDWithNew.java b/arrays/ThreeDWithNew.java index e8e81084..7ccccc8c 100644 --- a/arrays/ThreeDWithNew.java +++ b/arrays/ThreeDWithNew.java @@ -1,4 +1,5 @@ //: arrays/ThreeDWithNew.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class ThreeDWithNew { diff --git a/assertions/Assert1.java b/assertions/Assert1.java index bd8f663e..7f79159b 100644 --- a/assertions/Assert1.java +++ b/assertions/Assert1.java @@ -1,4 +1,5 @@ //: assertions/Assert1.java +// ©2015 MindView LLC: see Copyright.txt // Non-informative style of assert // {JVMArgs: -ea} // Must run with -ea // {ThrowsException} diff --git a/assertions/Assert2.java b/assertions/Assert2.java index b5bad5c1..58ab3f78 100644 --- a/assertions/Assert2.java +++ b/assertions/Assert2.java @@ -1,4 +1,5 @@ //: assertions/Assert2.java +// ©2015 MindView LLC: see Copyright.txt // Assert with an informative message // {JVMArgs: -ea} // {ThrowsException} diff --git a/assertions/LoaderAssertions.java b/assertions/LoaderAssertions.java index d26ec53c..10ca2782 100644 --- a/assertions/LoaderAssertions.java +++ b/assertions/LoaderAssertions.java @@ -1,4 +1,5 @@ //: assertions/LoaderAssertions.java +// ©2015 MindView LLC: see Copyright.txt // Using the class loader to enable assertions // {ThrowsException} diff --git a/assertions/Queue.java b/assertions/Queue.java index dc34e8da..f162d07c 100644 --- a/assertions/Queue.java +++ b/assertions/Queue.java @@ -1,4 +1,5 @@ //: assertions/Queue.java +// ©2015 MindView LLC: see Copyright.txt // Demonstration of Design by Contract (DbC) combined // with white-box unit testing. // (Install libraries from www.junit.org) diff --git a/clean.bat b/clean.bat new file mode 100644 index 00000000..7a1778c4 --- /dev/null +++ b/clean.bat @@ -0,0 +1,2 @@ +del innerclasses\MultiInterfaces.java +del logging\EmailLogger.java diff --git a/concurrency/ActiveObjectDemo.java b/concurrency/ActiveObjectDemo.java index 2e481c76..cfe65ab2 100644 --- a/concurrency/ActiveObjectDemo.java +++ b/concurrency/ActiveObjectDemo.java @@ -1,4 +1,5 @@ //: concurrency/ActiveObjectDemo.java +// ©2015 MindView LLC: see Copyright.txt // Can only pass constants, immutables, "disconnected // objects," or other active objects as arguments // to asynch methods. diff --git a/concurrency/AtomicEvenGenerator.java b/concurrency/AtomicEvenGenerator.java index c355f282..ec527565 100644 --- a/concurrency/AtomicEvenGenerator.java +++ b/concurrency/AtomicEvenGenerator.java @@ -1,4 +1,5 @@ //: concurrency/AtomicEvenGenerator.java +// ©2015 MindView LLC: see Copyright.txt // Atomic classes are occasionally useful in regular code. // {TimeOutDuringTesting} import java.util.concurrent.atomic.*; diff --git a/concurrency/AtomicIntegerTest.java b/concurrency/AtomicIntegerTest.java index 8ef05eff..f2792768 100644 --- a/concurrency/AtomicIntegerTest.java +++ b/concurrency/AtomicIntegerTest.java @@ -1,4 +1,5 @@ //: concurrency/AtomicIntegerTest.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; import java.util.concurrent.atomic.*; import java.util.*; diff --git a/concurrency/Atomicity.java b/concurrency/Atomicity.java index 4d2a2e42..9b6b302f 100644 --- a/concurrency/Atomicity.java +++ b/concurrency/Atomicity.java @@ -1,4 +1,5 @@ //: concurrency/Atomicity.java +// ©2015 MindView LLC: see Copyright.txt // {Exec: javap -c Atomicity} public class Atomicity { diff --git a/concurrency/AtomicityTest.java b/concurrency/AtomicityTest.java index 2fe558b8..69e4ee38 100644 --- a/concurrency/AtomicityTest.java +++ b/concurrency/AtomicityTest.java @@ -1,4 +1,5 @@ //: concurrency/AtomicityTest.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; public class AtomicityTest implements Runnable { diff --git a/concurrency/AttemptLocking.java b/concurrency/AttemptLocking.java index c54df34a..bf7a0ed8 100644 --- a/concurrency/AttemptLocking.java +++ b/concurrency/AttemptLocking.java @@ -1,4 +1,5 @@ //: concurrency/AttemptLocking.java +// ©2015 MindView LLC: see Copyright.txt // Locks in the concurrent library allow you // to give up on trying to acquire a lock. import java.util.concurrent.*; diff --git a/concurrency/BankTellerSimulation.java b/concurrency/BankTellerSimulation.java index b0022385..b4dbd6a6 100644 --- a/concurrency/BankTellerSimulation.java +++ b/concurrency/BankTellerSimulation.java @@ -1,4 +1,5 @@ //: concurrency/BankTellerSimulation.java +// ©2015 MindView LLC: see Copyright.txt // Using queues and multithreading. // {Args: 5} import java.util.concurrent.*; diff --git a/concurrency/BasicThreads.java b/concurrency/BasicThreads.java index 545f99a5..9734960c 100644 --- a/concurrency/BasicThreads.java +++ b/concurrency/BasicThreads.java @@ -1,4 +1,5 @@ //: concurrency/BasicThreads.java +// ©2015 MindView LLC: see Copyright.txt // The most basic use of the Thread class. public class BasicThreads { diff --git a/concurrency/CachedThreadPool.java b/concurrency/CachedThreadPool.java index ff9cacc0..1878e9f6 100644 --- a/concurrency/CachedThreadPool.java +++ b/concurrency/CachedThreadPool.java @@ -1,4 +1,5 @@ //: concurrency/CachedThreadPool.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; public class CachedThreadPool { diff --git a/concurrency/CallableDemo.java b/concurrency/CallableDemo.java index 3d27d8c7..7a864c3c 100644 --- a/concurrency/CallableDemo.java +++ b/concurrency/CallableDemo.java @@ -1,4 +1,5 @@ //: concurrency/CallableDemo.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; import java.util.*; diff --git a/concurrency/CaptureUncaughtException.java b/concurrency/CaptureUncaughtException.java index d8bb9239..bed9ee80 100644 --- a/concurrency/CaptureUncaughtException.java +++ b/concurrency/CaptureUncaughtException.java @@ -1,4 +1,5 @@ //: concurrency/CaptureUncaughtException.java +// ©2015 MindView LLC: see Copyright.txt // {TimeOutDuringTesting} import java.util.concurrent.*; diff --git a/concurrency/CarBuilder.java b/concurrency/CarBuilder.java index 5bf308b6..54d503c7 100644 --- a/concurrency/CarBuilder.java +++ b/concurrency/CarBuilder.java @@ -1,4 +1,5 @@ //: concurrency/CarBuilder.java +// ©2015 MindView LLC: see Copyright.txt // A complex example of tasks working together. import java.util.concurrent.*; import java.util.*; diff --git a/concurrency/Chopstick.java b/concurrency/Chopstick.java index 686f6aa9..8d392892 100644 --- a/concurrency/Chopstick.java +++ b/concurrency/Chopstick.java @@ -1,4 +1,5 @@ //: concurrency/Chopstick.java +// ©2015 MindView LLC: see Copyright.txt // Chopsticks for dining philosophers. public class Chopstick { diff --git a/concurrency/CloseResource.java b/concurrency/CloseResource.java index 6af608f4..b9c93285 100644 --- a/concurrency/CloseResource.java +++ b/concurrency/CloseResource.java @@ -1,4 +1,5 @@ //: concurrency/CloseResource.java +// ©2015 MindView LLC: see Copyright.txt // Interrupting a blocked task by // closing the underlying resource. // {TimeOutDuringTesting} diff --git a/concurrency/CountDownLatchDemo.java b/concurrency/CountDownLatchDemo.java index 62eecaf9..11e635c1 100644 --- a/concurrency/CountDownLatchDemo.java +++ b/concurrency/CountDownLatchDemo.java @@ -1,4 +1,5 @@ //: concurrency/CountDownLatchDemo.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; import java.util.*; import static net.mindview.util.Print.*; diff --git a/concurrency/CriticalSection.java b/concurrency/CriticalSection.java index 8e11ed68..20b59e3d 100644 --- a/concurrency/CriticalSection.java +++ b/concurrency/CriticalSection.java @@ -1,4 +1,5 @@ //: concurrency/CriticalSection.java +// ©2015 MindView LLC: see Copyright.txt // {TimeOutDuringTesting} // (Behavior may have changed in Java 8). // Synchronizing blocks instead of entire methods. Also diff --git a/concurrency/DaemonFromFactory.java b/concurrency/DaemonFromFactory.java index c6fad692..abd2639c 100644 --- a/concurrency/DaemonFromFactory.java +++ b/concurrency/DaemonFromFactory.java @@ -1,4 +1,5 @@ //: concurrency/DaemonFromFactory.java +// ©2015 MindView LLC: see Copyright.txt // Using a Thread Factory to create daemons. import java.util.concurrent.*; import net.mindview.util.*; diff --git a/concurrency/Daemons.java b/concurrency/Daemons.java index bff30b86..8ac101ce 100644 --- a/concurrency/Daemons.java +++ b/concurrency/Daemons.java @@ -1,4 +1,5 @@ //: concurrency/Daemons.java +// ©2015 MindView LLC: see Copyright.txt // Daemon threads spawn other daemon threads. import java.util.concurrent.*; import static net.mindview.util.Print.*; diff --git a/concurrency/DaemonsDontRunFinally.java b/concurrency/DaemonsDontRunFinally.java index 743558b6..c8785ccb 100644 --- a/concurrency/DaemonsDontRunFinally.java +++ b/concurrency/DaemonsDontRunFinally.java @@ -1,4 +1,5 @@ //: concurrency/DaemonsDontRunFinally.java +// ©2015 MindView LLC: see Copyright.txt // Daemon threads don't run the finally clause import java.util.concurrent.*; import static net.mindview.util.Print.*; diff --git a/concurrency/DeadlockingDiningPhilosophers.java b/concurrency/DeadlockingDiningPhilosophers.java index 4f9e093b..f5f0c3cb 100644 --- a/concurrency/DeadlockingDiningPhilosophers.java +++ b/concurrency/DeadlockingDiningPhilosophers.java @@ -1,4 +1,5 @@ //: concurrency/DeadlockingDiningPhilosophers.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates how deadlock can be hidden in a program. // {Args: 0 5 timeout} import java.util.concurrent.*; diff --git a/concurrency/DelayQueueDemo.java b/concurrency/DelayQueueDemo.java index 1b42e8d6..9afab5bc 100644 --- a/concurrency/DelayQueueDemo.java +++ b/concurrency/DelayQueueDemo.java @@ -1,4 +1,5 @@ //: concurrency/DelayQueueDemo.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; import java.util.*; import static java.util.concurrent.TimeUnit.*; diff --git a/concurrency/EvenChecker.java b/concurrency/EvenChecker.java index 7874581d..93483d98 100644 --- a/concurrency/EvenChecker.java +++ b/concurrency/EvenChecker.java @@ -1,4 +1,5 @@ //: concurrency/EvenChecker.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; public class EvenChecker implements Runnable { diff --git a/concurrency/EvenGenerator.java b/concurrency/EvenGenerator.java index 4a5136de..e4d202e7 100644 --- a/concurrency/EvenGenerator.java +++ b/concurrency/EvenGenerator.java @@ -1,4 +1,5 @@ //: concurrency/EvenGenerator.java +// ©2015 MindView LLC: see Copyright.txt // When threads collide. public class EvenGenerator extends IntGenerator { diff --git a/concurrency/ExceptionThread.java b/concurrency/ExceptionThread.java index 8d11c92f..040d25e3 100644 --- a/concurrency/ExceptionThread.java +++ b/concurrency/ExceptionThread.java @@ -1,4 +1,5 @@ //: concurrency/ExceptionThread.java +// ©2015 MindView LLC: see Copyright.txt // {RunByHand} // {ThrowsException} import java.util.concurrent.*; diff --git a/concurrency/ExchangerDemo.java b/concurrency/ExchangerDemo.java index 5c51569f..fa7a5e84 100644 --- a/concurrency/ExchangerDemo.java +++ b/concurrency/ExchangerDemo.java @@ -1,4 +1,5 @@ //: concurrency/ExchangerDemo.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; import net.mindview.util.*; import java.util.*; diff --git a/concurrency/ExplicitCriticalSection.java b/concurrency/ExplicitCriticalSection.java index 645cc0c4..268007a7 100644 --- a/concurrency/ExplicitCriticalSection.java +++ b/concurrency/ExplicitCriticalSection.java @@ -1,4 +1,5 @@ //: concurrency/ExplicitCriticalSection.java +// ©2015 MindView LLC: see Copyright.txt // {ThrowsException} on a multiprocessor machine // Using explicit Lock objects to create critical sections. package concurrency; diff --git a/concurrency/FastSimulation.java b/concurrency/FastSimulation.java index 8d60d45e..770a3b25 100644 --- a/concurrency/FastSimulation.java +++ b/concurrency/FastSimulation.java @@ -1,4 +1,5 @@ //: concurrency/FastSimulation.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; import java.util.concurrent.atomic.*; import java.util.*; diff --git a/concurrency/Fat.java b/concurrency/Fat.java index 0be5590a..b8951cff 100644 --- a/concurrency/Fat.java +++ b/concurrency/Fat.java @@ -1,4 +1,5 @@ //: concurrency/Fat.java +// ©2015 MindView LLC: see Copyright.txt // Objects that are expensive to create. public class Fat { diff --git a/concurrency/FixedDiningPhilosophers.java b/concurrency/FixedDiningPhilosophers.java index f0c8055f..73c060a1 100644 --- a/concurrency/FixedDiningPhilosophers.java +++ b/concurrency/FixedDiningPhilosophers.java @@ -1,4 +1,5 @@ //: concurrency/FixedDiningPhilosophers.java +// ©2015 MindView LLC: see Copyright.txt // Dining philosophers without deadlock. // {Args: 5 5 timeout} import java.util.concurrent.*; diff --git a/concurrency/FixedThreadPool.java b/concurrency/FixedThreadPool.java index e4da9070..0eeafe2d 100644 --- a/concurrency/FixedThreadPool.java +++ b/concurrency/FixedThreadPool.java @@ -1,4 +1,5 @@ //: concurrency/FixedThreadPool.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; public class FixedThreadPool { diff --git a/concurrency/GreenhouseScheduler.java b/concurrency/GreenhouseScheduler.java index e7b40819..7acf877a 100644 --- a/concurrency/GreenhouseScheduler.java +++ b/concurrency/GreenhouseScheduler.java @@ -1,4 +1,5 @@ //: concurrency/GreenhouseScheduler.java +// ©2015 MindView LLC: see Copyright.txt // Rewriting innerclasses/GreenhouseController.java // to use a ScheduledThreadPoolExecutor. // {Args: 5000} diff --git a/concurrency/HorseRace.java b/concurrency/HorseRace.java index 0a2e2123..c59d584b 100644 --- a/concurrency/HorseRace.java +++ b/concurrency/HorseRace.java @@ -1,4 +1,5 @@ //: concurrency/HorseRace.java +// ©2015 MindView LLC: see Copyright.txt // Using CyclicBarriers. // {CheckOutputByHand} import java.util.concurrent.*; diff --git a/concurrency/IntGenerator.java b/concurrency/IntGenerator.java index 991de0de..2b4373fe 100644 --- a/concurrency/IntGenerator.java +++ b/concurrency/IntGenerator.java @@ -1,4 +1,5 @@ //: concurrency/IntGenerator.java +// ©2015 MindView LLC: see Copyright.txt public abstract class IntGenerator { private volatile boolean canceled = false; diff --git a/concurrency/Interrupting.java b/concurrency/Interrupting.java index 9bcc08f6..aab8f653 100644 --- a/concurrency/Interrupting.java +++ b/concurrency/Interrupting.java @@ -1,4 +1,5 @@ //: concurrency/Interrupting.java +// ©2015 MindView LLC: see Copyright.txt // Interrupting a blocked thread. import java.util.concurrent.*; import java.io.*; diff --git a/concurrency/Interrupting2.java b/concurrency/Interrupting2.java index cd56abf1..ef8f3e35 100644 --- a/concurrency/Interrupting2.java +++ b/concurrency/Interrupting2.java @@ -1,4 +1,5 @@ //: concurrency/Interrupting2.java +// ©2015 MindView LLC: see Copyright.txt // Interrupting a task blocked with a ReentrantLock. import java.util.concurrent.*; import java.util.concurrent.locks.*; diff --git a/concurrency/InterruptingIdiom.java b/concurrency/InterruptingIdiom.java index 115d327a..b71e1805 100644 --- a/concurrency/InterruptingIdiom.java +++ b/concurrency/InterruptingIdiom.java @@ -1,4 +1,5 @@ //: concurrency/InterruptingIdiom.java +// ©2015 MindView LLC: see Copyright.txt // General idiom for interrupting a task. // {Args: 1100} import java.util.concurrent.*; diff --git a/concurrency/Joining.java b/concurrency/Joining.java index 0b637615..f0c8063d 100644 --- a/concurrency/Joining.java +++ b/concurrency/Joining.java @@ -1,4 +1,5 @@ //: concurrency/Joining.java +// ©2015 MindView LLC: see Copyright.txt // Understanding join(). import static net.mindview.util.Print.*; diff --git a/concurrency/LiftOff.java b/concurrency/LiftOff.java index d15bcaa7..e75b38a8 100644 --- a/concurrency/LiftOff.java +++ b/concurrency/LiftOff.java @@ -1,4 +1,5 @@ //: concurrency/LiftOff.java +// ©2015 MindView LLC: see Copyright.txt // Demonstration of the Runnable interface. public class LiftOff implements Runnable { diff --git a/concurrency/ListComparisons.java b/concurrency/ListComparisons.java index 638dd27b..2348a7d6 100644 --- a/concurrency/ListComparisons.java +++ b/concurrency/ListComparisons.java @@ -1,4 +1,5 @@ //: concurrency/ListComparisons.java +// ©2015 MindView LLC: see Copyright.txt // {Args: 1 10 10} (Fast verification check during build) // Rough comparison of thread-safe List performance. import java.util.concurrent.*; diff --git a/concurrency/MainThread.java b/concurrency/MainThread.java index 8f07beee..a169fd88 100644 --- a/concurrency/MainThread.java +++ b/concurrency/MainThread.java @@ -1,4 +1,5 @@ //: concurrency/MainThread.java +// ©2015 MindView LLC: see Copyright.txt public class MainThread { public static void main(String[] args) { diff --git a/concurrency/MapComparisons.java b/concurrency/MapComparisons.java index 6c87fb46..6087ca29 100644 --- a/concurrency/MapComparisons.java +++ b/concurrency/MapComparisons.java @@ -1,4 +1,5 @@ //: concurrency/MapComparisons.java +// ©2015 MindView LLC: see Copyright.txt // {Args: 1 10 10} (Fast verification check during build) // Rough comparison of thread-safe Map performance. import java.util.concurrent.*; diff --git a/concurrency/MoreBasicThreads.java b/concurrency/MoreBasicThreads.java index 59c9b642..708860d2 100644 --- a/concurrency/MoreBasicThreads.java +++ b/concurrency/MoreBasicThreads.java @@ -1,4 +1,5 @@ //: concurrency/MoreBasicThreads.java +// ©2015 MindView LLC: see Copyright.txt // Adding more threads. public class MoreBasicThreads { diff --git a/concurrency/MultiLock.java b/concurrency/MultiLock.java index 6a547137..460544b1 100644 --- a/concurrency/MultiLock.java +++ b/concurrency/MultiLock.java @@ -1,4 +1,5 @@ //: concurrency/MultiLock.java +// ©2015 MindView LLC: see Copyright.txt // One thread can reacquire the same lock. import static net.mindview.util.Print.*; diff --git a/concurrency/MutexEvenGenerator.java b/concurrency/MutexEvenGenerator.java index 650b2187..6c95fe1d 100644 --- a/concurrency/MutexEvenGenerator.java +++ b/concurrency/MutexEvenGenerator.java @@ -1,4 +1,5 @@ //: concurrency/MutexEvenGenerator.java +// ©2015 MindView LLC: see Copyright.txt // Preventing thread collisions with mutexes. // {TimeOutDuringTesting} import java.util.concurrent.locks.*; diff --git a/concurrency/NIOInterruption.java b/concurrency/NIOInterruption.java index 7e30c5da..1af30dab 100644 --- a/concurrency/NIOInterruption.java +++ b/concurrency/NIOInterruption.java @@ -1,4 +1,5 @@ //: concurrency/NIOInterruption.java +// ©2015 MindView LLC: see Copyright.txt // Interrupting a blocked NIO channel. import java.net.*; import java.nio.*; diff --git a/concurrency/NaiveExceptionHandling.java b/concurrency/NaiveExceptionHandling.java index 1d560198..e09ec39d 100644 --- a/concurrency/NaiveExceptionHandling.java +++ b/concurrency/NaiveExceptionHandling.java @@ -1,4 +1,5 @@ //: concurrency/NaiveExceptionHandling.java +// ©2015 MindView LLC: see Copyright.txt // {RunByHand} // {ThrowsException} import java.util.concurrent.*; diff --git a/concurrency/NotifyVsNotifyAll.java b/concurrency/NotifyVsNotifyAll.java index fdae2b5f..bbfcb24d 100644 --- a/concurrency/NotifyVsNotifyAll.java +++ b/concurrency/NotifyVsNotifyAll.java @@ -1,4 +1,5 @@ //: concurrency/NotifyVsNotifyAll.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; import java.util.*; diff --git a/concurrency/OrnamentalGarden.java b/concurrency/OrnamentalGarden.java index 1e17e1ef..47e71fc4 100644 --- a/concurrency/OrnamentalGarden.java +++ b/concurrency/OrnamentalGarden.java @@ -1,4 +1,5 @@ //: concurrency/OrnamentalGarden.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; import java.util.*; import static net.mindview.util.Print.*; diff --git a/concurrency/Philosopher.java b/concurrency/Philosopher.java index a5ddb961..782e3296 100644 --- a/concurrency/Philosopher.java +++ b/concurrency/Philosopher.java @@ -1,4 +1,5 @@ //: concurrency/Philosopher.java +// ©2015 MindView LLC: see Copyright.txt // A dining philosopher import java.util.concurrent.*; import java.util.*; diff --git a/concurrency/PipedIO.java b/concurrency/PipedIO.java index 706a276c..3eda256d 100644 --- a/concurrency/PipedIO.java +++ b/concurrency/PipedIO.java @@ -1,4 +1,5 @@ //: concurrency/PipedIO.java +// ©2015 MindView LLC: see Copyright.txt // Using pipes for inter-task I/O import java.util.concurrent.*; import java.io.*; diff --git a/concurrency/Pool.java b/concurrency/Pool.java index 3d3c400b..8e68cac4 100644 --- a/concurrency/Pool.java +++ b/concurrency/Pool.java @@ -1,4 +1,5 @@ //: concurrency/Pool.java +// ©2015 MindView LLC: see Copyright.txt // Using a Semaphore inside a Pool, to restrict // the number of tasks that can use a resource. import java.util.concurrent.*; diff --git a/concurrency/PriorityBlockingQueueDemo.java b/concurrency/PriorityBlockingQueueDemo.java index 9121fc11..6756e87a 100644 --- a/concurrency/PriorityBlockingQueueDemo.java +++ b/concurrency/PriorityBlockingQueueDemo.java @@ -1,4 +1,5 @@ //: concurrency/PriorityBlockingQueueDemo.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; import java.util.*; import static net.mindview.util.Print.*; diff --git a/concurrency/ReaderWriterList.java b/concurrency/ReaderWriterList.java index 48d1f1af..f4ca1424 100644 --- a/concurrency/ReaderWriterList.java +++ b/concurrency/ReaderWriterList.java @@ -1,4 +1,5 @@ //: concurrency/ReaderWriterList.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; import java.util.concurrent.locks.*; import java.util.*; diff --git a/concurrency/ResponsiveUI.java b/concurrency/ResponsiveUI.java index 70ea0d4f..35d2921b 100644 --- a/concurrency/ResponsiveUI.java +++ b/concurrency/ResponsiveUI.java @@ -1,4 +1,5 @@ //: concurrency/ResponsiveUI.java +// ©2015 MindView LLC: see Copyright.txt // User interface responsiveness. // {TimeOutDuringTesting} diff --git a/concurrency/Restaurant.java b/concurrency/Restaurant.java index 2d0d9ed4..1d8e4dc7 100644 --- a/concurrency/Restaurant.java +++ b/concurrency/Restaurant.java @@ -1,4 +1,5 @@ //: concurrency/Restaurant.java +// ©2015 MindView LLC: see Copyright.txt // The producer-consumer approach to task cooperation. import java.util.concurrent.*; import static net.mindview.util.Print.*; diff --git a/concurrency/SelfManaged.java b/concurrency/SelfManaged.java index 7ceae3e5..e41def04 100644 --- a/concurrency/SelfManaged.java +++ b/concurrency/SelfManaged.java @@ -1,4 +1,5 @@ //: concurrency/SelfManaged.java +// ©2015 MindView LLC: see Copyright.txt // A Runnable containing its own driver Thread. public class SelfManaged implements Runnable { diff --git a/concurrency/SemaphoreDemo.java b/concurrency/SemaphoreDemo.java index 26613a8a..850ede11 100644 --- a/concurrency/SemaphoreDemo.java +++ b/concurrency/SemaphoreDemo.java @@ -1,4 +1,5 @@ //: concurrency/SemaphoreDemo.java +// ©2015 MindView LLC: see Copyright.txt // Testing the Pool class import java.util.concurrent.*; import java.util.*; diff --git a/concurrency/SerialNumberChecker.java b/concurrency/SerialNumberChecker.java index 903eca8c..15a8e818 100644 --- a/concurrency/SerialNumberChecker.java +++ b/concurrency/SerialNumberChecker.java @@ -1,4 +1,5 @@ //: concurrency/SerialNumberChecker.java +// ©2015 MindView LLC: see Copyright.txt // Operations that might seem safe are not, // when threads are present. // {Args: 4} diff --git a/concurrency/SerialNumberGenerator.java b/concurrency/SerialNumberGenerator.java index 9e65add7..56f6828b 100644 --- a/concurrency/SerialNumberGenerator.java +++ b/concurrency/SerialNumberGenerator.java @@ -1,4 +1,5 @@ //: concurrency/SerialNumberGenerator.java +// ©2015 MindView LLC: see Copyright.txt public class SerialNumberGenerator { private static volatile int serialNumber = 0; diff --git a/concurrency/SettingDefaultHandler.java b/concurrency/SettingDefaultHandler.java index 5aad4ad8..8480bd6c 100644 --- a/concurrency/SettingDefaultHandler.java +++ b/concurrency/SettingDefaultHandler.java @@ -1,4 +1,5 @@ //: concurrency/SettingDefaultHandler.java +// ©2015 MindView LLC: see Copyright.txt // {TimeOutDuringTesting} import java.util.concurrent.*; diff --git a/concurrency/SimpleDaemons.java b/concurrency/SimpleDaemons.java index 9afff3b1..14c33f9a 100644 --- a/concurrency/SimpleDaemons.java +++ b/concurrency/SimpleDaemons.java @@ -1,4 +1,5 @@ //: concurrency/SimpleDaemons.java +// ©2015 MindView LLC: see Copyright.txt // Daemon threads don't prevent the program from ending. import java.util.concurrent.*; import static net.mindview.util.Print.*; diff --git a/concurrency/SimpleMicroBenchmark.java b/concurrency/SimpleMicroBenchmark.java index 44e7e986..5b88acf5 100644 --- a/concurrency/SimpleMicroBenchmark.java +++ b/concurrency/SimpleMicroBenchmark.java @@ -1,4 +1,5 @@ //: concurrency/SimpleMicroBenchmark.java +// ©2015 MindView LLC: see Copyright.txt // The dangers of microbenchmarking. import java.util.concurrent.locks.*; diff --git a/concurrency/SimplePriorities.java b/concurrency/SimplePriorities.java index 6acbfed0..140fce8c 100644 --- a/concurrency/SimplePriorities.java +++ b/concurrency/SimplePriorities.java @@ -1,4 +1,5 @@ //: concurrency/SimplePriorities.java +// ©2015 MindView LLC: see Copyright.txt // Shows thread priorities. import java.util.concurrent.*; diff --git a/concurrency/SimpleThread.java b/concurrency/SimpleThread.java index 56827863..a452ef7d 100644 --- a/concurrency/SimpleThread.java +++ b/concurrency/SimpleThread.java @@ -1,4 +1,5 @@ //: concurrency/SimpleThread.java +// ©2015 MindView LLC: see Copyright.txt // Inheriting directly from the Thread class. public class SimpleThread extends Thread { diff --git a/concurrency/SingleThreadExecutor.java b/concurrency/SingleThreadExecutor.java index 3acd6dfe..0548e766 100644 --- a/concurrency/SingleThreadExecutor.java +++ b/concurrency/SingleThreadExecutor.java @@ -1,4 +1,5 @@ //: concurrency/SingleThreadExecutor.java +// ©2015 MindView LLC: see Copyright.txt import java.util.concurrent.*; public class SingleThreadExecutor { diff --git a/concurrency/SleepingTask.java b/concurrency/SleepingTask.java index 0c9ac9f5..d2358d32 100644 --- a/concurrency/SleepingTask.java +++ b/concurrency/SleepingTask.java @@ -1,4 +1,5 @@ //: concurrency/SleepingTask.java +// ©2015 MindView LLC: see Copyright.txt // Calling sleep() to pause for a while. import java.util.concurrent.*; diff --git a/concurrency/SyncObject.java b/concurrency/SyncObject.java index 65d2739f..ea582314 100644 --- a/concurrency/SyncObject.java +++ b/concurrency/SyncObject.java @@ -1,4 +1,5 @@ //: concurrency/SyncObject.java +// ©2015 MindView LLC: see Copyright.txt // Synchronizing on another object. import static net.mindview.util.Print.*; diff --git a/concurrency/SynchronizationComparisons.java b/concurrency/SynchronizationComparisons.java index 965d6d56..570b2d74 100644 --- a/concurrency/SynchronizationComparisons.java +++ b/concurrency/SynchronizationComparisons.java @@ -1,4 +1,5 @@ //: concurrency/SynchronizationComparisons.java +// ©2015 MindView LLC: see Copyright.txt // Comparing the performance of explicit Locks // and Atomics versus the synchronized keyword. import java.util.concurrent.*; diff --git a/concurrency/SynchronizedEvenGenerator.java b/concurrency/SynchronizedEvenGenerator.java index 9210486e..cdf66b3e 100644 --- a/concurrency/SynchronizedEvenGenerator.java +++ b/concurrency/SynchronizedEvenGenerator.java @@ -1,4 +1,5 @@ //: concurrency/SynchronizedEvenGenerator.java +// ©2015 MindView LLC: see Copyright.txt // Simplifying mutexes with the synchronized keyword. // {TimeOutDuringTesting} diff --git a/concurrency/TestBlockingQueues.java b/concurrency/TestBlockingQueues.java index a89f2df6..eac49f18 100644 --- a/concurrency/TestBlockingQueues.java +++ b/concurrency/TestBlockingQueues.java @@ -1,4 +1,5 @@ //: concurrency/TestBlockingQueues.java +// ©2015 MindView LLC: see Copyright.txt // {TimeOutDuringTesting} import java.util.concurrent.*; import java.io.*; diff --git a/concurrency/Tester.java b/concurrency/Tester.java index fbba4533..c90c4904 100644 --- a/concurrency/Tester.java +++ b/concurrency/Tester.java @@ -1,4 +1,5 @@ //: concurrency/Tester.java +// ©2015 MindView LLC: see Copyright.txt // Framework to test performance of concurrency containers. import java.util.concurrent.*; import net.mindview.util.*; diff --git a/concurrency/ThreadLocalVariableHolder.java b/concurrency/ThreadLocalVariableHolder.java index 25bacd8c..3ddac82e 100644 --- a/concurrency/ThreadLocalVariableHolder.java +++ b/concurrency/ThreadLocalVariableHolder.java @@ -1,4 +1,5 @@ //: concurrency/ThreadLocalVariableHolder.java +// ©2015 MindView LLC: see Copyright.txt // Automatically giving each thread its own storage. import java.util.concurrent.*; import java.util.*; diff --git a/concurrency/ThreadVariations.java b/concurrency/ThreadVariations.java index 5316a34e..36a8e9d3 100644 --- a/concurrency/ThreadVariations.java +++ b/concurrency/ThreadVariations.java @@ -1,4 +1,5 @@ //: concurrency/ThreadVariations.java +// ©2015 MindView LLC: see Copyright.txt // Creating threads with inner classes. import java.util.concurrent.*; import static net.mindview.util.Print.*; diff --git a/concurrency/ToastOMatic.java b/concurrency/ToastOMatic.java index 82af0021..c9110c66 100644 --- a/concurrency/ToastOMatic.java +++ b/concurrency/ToastOMatic.java @@ -1,4 +1,5 @@ //: concurrency/ToastOMatic.java +// ©2015 MindView LLC: see Copyright.txt // A toaster that uses queues. import java.util.concurrent.*; import java.util.*; diff --git a/concurrency/restaurant2/RestaurantWithQueues.java b/concurrency/restaurant2/RestaurantWithQueues.java index d9c39961..b4ac4ccd 100644 --- a/concurrency/restaurant2/RestaurantWithQueues.java +++ b/concurrency/restaurant2/RestaurantWithQueues.java @@ -1,4 +1,5 @@ //: concurrency/restaurant2/RestaurantWithQueues.java +// ©2015 MindView LLC: see Copyright.txt // {Args: 5} package concurrency.restaurant2; import enumerated.menu.*; diff --git a/concurrency/waxomatic/WaxOMatic.java b/concurrency/waxomatic/WaxOMatic.java index 7230d8d7..5529a1f0 100644 --- a/concurrency/waxomatic/WaxOMatic.java +++ b/concurrency/waxomatic/WaxOMatic.java @@ -1,4 +1,5 @@ //: concurrency/waxomatic/WaxOMatic.java +// ©2015 MindView LLC: see Copyright.txt // Basic task cooperation. package concurrency.waxomatic; import java.util.concurrent.*; diff --git a/concurrency/waxomatic2/WaxOMatic2.java b/concurrency/waxomatic2/WaxOMatic2.java index f5ad7a3b..497f4fce 100644 --- a/concurrency/waxomatic2/WaxOMatic2.java +++ b/concurrency/waxomatic2/WaxOMatic2.java @@ -1,4 +1,5 @@ //: concurrency/waxomatic2/WaxOMatic2.java +// ©2015 MindView LLC: see Copyright.txt // Using Lock and Condition objects. package concurrency.waxomatic2; import java.util.concurrent.*; diff --git a/containers/AssociativeArray.java b/containers/AssociativeArray.java index fe9d466e..30d20d2b 100644 --- a/containers/AssociativeArray.java +++ b/containers/AssociativeArray.java @@ -1,4 +1,5 @@ //: containers/AssociativeArray.java +// ©2015 MindView LLC: see Copyright.txt // Associates keys with values. import static net.mindview.util.Print.*; diff --git a/containers/Bits.java b/containers/Bits.java index 348ded4a..612769e4 100644 --- a/containers/Bits.java +++ b/containers/Bits.java @@ -1,4 +1,5 @@ //: containers/Bits.java +// ©2015 MindView LLC: see Copyright.txt // Demonstration of BitSet. import java.util.*; import static net.mindview.util.Print.*; diff --git a/containers/CanonicalMapping.java b/containers/CanonicalMapping.java index 56f21ef0..e00e48ce 100644 --- a/containers/CanonicalMapping.java +++ b/containers/CanonicalMapping.java @@ -1,4 +1,5 @@ //: containers/CanonicalMapping.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates WeakHashMap. import java.util.*; diff --git a/containers/CollectionDataGeneration.java b/containers/CollectionDataGeneration.java index 3e9db3a5..a513648f 100644 --- a/containers/CollectionDataGeneration.java +++ b/containers/CollectionDataGeneration.java @@ -1,4 +1,5 @@ //: containers/CollectionDataGeneration.java +// ©2015 MindView LLC: see Copyright.txt // Using the Generators defined in the Arrays chapter. import java.util.*; import net.mindview.util.*; diff --git a/containers/CollectionDataTest.java b/containers/CollectionDataTest.java index 2361eed2..597347b3 100644 --- a/containers/CollectionDataTest.java +++ b/containers/CollectionDataTest.java @@ -1,4 +1,5 @@ //: containers/CollectionDataTest.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; import net.mindview.util.*; diff --git a/containers/CollectionMethods.java b/containers/CollectionMethods.java index 340a46a7..205ed863 100644 --- a/containers/CollectionMethods.java +++ b/containers/CollectionMethods.java @@ -1,4 +1,5 @@ //: containers/CollectionMethods.java +// ©2015 MindView LLC: see Copyright.txt // Things you can do with all Collections. import java.util.*; import net.mindview.util.*; diff --git a/containers/CountedString.java b/containers/CountedString.java index d145a05d..7bbfd37a 100644 --- a/containers/CountedString.java +++ b/containers/CountedString.java @@ -1,4 +1,5 @@ //: containers/CountedString.java +// ©2015 MindView LLC: see Copyright.txt // Creating a good hashCode(). import java.util.*; import static net.mindview.util.Print.*; diff --git a/containers/DequeTest.java b/containers/DequeTest.java index a7dde93d..50a94504 100644 --- a/containers/DequeTest.java +++ b/containers/DequeTest.java @@ -1,4 +1,5 @@ //: containers/DequeTest.java +// ©2015 MindView LLC: see Copyright.txt import net.mindview.util.*; import static net.mindview.util.Print.*; diff --git a/containers/Enumerations.java b/containers/Enumerations.java index c54dc134..b9e14d27 100644 --- a/containers/Enumerations.java +++ b/containers/Enumerations.java @@ -1,4 +1,5 @@ //: containers/Enumerations.java +// ©2015 MindView LLC: see Copyright.txt // Java 1.0/1.1 Vector and Enumeration. import java.util.*; import net.mindview.util.*; diff --git a/containers/FailFast.java b/containers/FailFast.java index a58e216b..1789d631 100644 --- a/containers/FailFast.java +++ b/containers/FailFast.java @@ -1,4 +1,5 @@ //: containers/FailFast.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates the "fail-fast" behavior. import java.util.*; diff --git a/containers/FillingLists.java b/containers/FillingLists.java index b468d088..33bf1acf 100644 --- a/containers/FillingLists.java +++ b/containers/FillingLists.java @@ -1,4 +1,5 @@ //: containers/FillingLists.java +// ©2015 MindView LLC: see Copyright.txt // The Collections.fill() & Collections.nCopies() methods. import java.util.*; diff --git a/containers/Groundhog.java b/containers/Groundhog.java index 5b72eecd..e9969bf5 100644 --- a/containers/Groundhog.java +++ b/containers/Groundhog.java @@ -1,4 +1,5 @@ //: containers/Groundhog.java +// ©2015 MindView LLC: see Copyright.txt // Looks plausible, but doesn't work as a HashMap key. public class Groundhog { diff --git a/containers/Groundhog2.java b/containers/Groundhog2.java index db8f88df..002c613d 100644 --- a/containers/Groundhog2.java +++ b/containers/Groundhog2.java @@ -1,4 +1,5 @@ //: containers/Groundhog2.java +// ©2015 MindView LLC: see Copyright.txt // A class that's used as a key in a HashMap // must override hashCode() and equals(). diff --git a/containers/IndividualTest.java b/containers/IndividualTest.java index a2c6d009..6c3a51a0 100644 --- a/containers/IndividualTest.java +++ b/containers/IndividualTest.java @@ -1,4 +1,5 @@ //: containers/IndividualTest.java +// ©2015 MindView LLC: see Copyright.txt import holding.MapOfList; import typeinfo.pets.*; import java.util.*; diff --git a/containers/LinkedHashMapDemo.java b/containers/LinkedHashMapDemo.java index ca2a1a13..24f64128 100644 --- a/containers/LinkedHashMapDemo.java +++ b/containers/LinkedHashMapDemo.java @@ -1,4 +1,5 @@ //: containers/LinkedHashMapDemo.java +// ©2015 MindView LLC: see Copyright.txt // What you can do with a LinkedHashMap. import java.util.*; import net.mindview.util.*; diff --git a/containers/ListPerformance.java b/containers/ListPerformance.java index 5b097c27..f6d68781 100644 --- a/containers/ListPerformance.java +++ b/containers/ListPerformance.java @@ -1,4 +1,5 @@ //: containers/ListPerformance.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates performance differences in Lists. // {Args: 100 500} Small to keep build testing short import java.util.*; diff --git a/containers/ListSortSearch.java b/containers/ListSortSearch.java index 6bf5774e..eedaca56 100644 --- a/containers/ListSortSearch.java +++ b/containers/ListSortSearch.java @@ -1,4 +1,5 @@ //: containers/ListSortSearch.java +// ©2015 MindView LLC: see Copyright.txt // Sorting and searching Lists with Collections utilities. import java.util.*; import static net.mindview.util.Print.*; diff --git a/containers/Lists.java b/containers/Lists.java index 3085c959..a12bd658 100644 --- a/containers/Lists.java +++ b/containers/Lists.java @@ -1,4 +1,5 @@ //: containers/Lists.java +// ©2015 MindView LLC: see Copyright.txt // Things you can do with Lists. import java.util.*; import net.mindview.util.*; diff --git a/containers/MapDataTest.java b/containers/MapDataTest.java index 051ea26a..56a332e7 100644 --- a/containers/MapDataTest.java +++ b/containers/MapDataTest.java @@ -1,4 +1,5 @@ //: containers/MapDataTest.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; import net.mindview.util.*; import static net.mindview.util.Print.*; diff --git a/containers/MapEntry.java b/containers/MapEntry.java index 38e3ba40..25730ec4 100644 --- a/containers/MapEntry.java +++ b/containers/MapEntry.java @@ -1,4 +1,5 @@ //: containers/MapEntry.java +// ©2015 MindView LLC: see Copyright.txt // A simple Map.Entry for sample Map implementations. import java.util.*; diff --git a/containers/MapPerformance.java b/containers/MapPerformance.java index fd6afe7d..22eb6e45 100644 --- a/containers/MapPerformance.java +++ b/containers/MapPerformance.java @@ -1,4 +1,5 @@ //: containers/MapPerformance.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates performance differences in Maps. // {Args: 100 5000} Small to keep build testing short import java.util.*; diff --git a/containers/Maps.java b/containers/Maps.java index 03391a59..c61c541f 100644 --- a/containers/Maps.java +++ b/containers/Maps.java @@ -1,4 +1,5 @@ //: containers/Maps.java +// ©2015 MindView LLC: see Copyright.txt // Things you can do with Maps. import java.util.concurrent.*; import java.util.*; diff --git a/containers/Prediction.java b/containers/Prediction.java index b6a90bdf..42bd6b5e 100644 --- a/containers/Prediction.java +++ b/containers/Prediction.java @@ -1,4 +1,5 @@ //: containers/Prediction.java +// ©2015 MindView LLC: see Copyright.txt // Predicting the weather with groundhogs. import java.util.*; diff --git a/containers/QueueBehavior.java b/containers/QueueBehavior.java index 4bf4c541..08a68b0d 100644 --- a/containers/QueueBehavior.java +++ b/containers/QueueBehavior.java @@ -1,4 +1,5 @@ //: containers/QueueBehavior.java +// ©2015 MindView LLC: see Copyright.txt // Compares the behavior of some of the queues import java.util.concurrent.*; import java.util.*; diff --git a/containers/RandomBounds.java b/containers/RandomBounds.java index 1fac6beb..0368e344 100644 --- a/containers/RandomBounds.java +++ b/containers/RandomBounds.java @@ -1,4 +1,5 @@ //: containers/RandomBounds.java +// ©2015 MindView LLC: see Copyright.txt // Does Math.random() produce 0.0 and 1.0? // {TimeOutDuringTesting} // {Args: lower} diff --git a/containers/ReadOnly.java b/containers/ReadOnly.java index 0cc4e37a..b3212c50 100644 --- a/containers/ReadOnly.java +++ b/containers/ReadOnly.java @@ -1,4 +1,5 @@ //: containers/ReadOnly.java +// ©2015 MindView LLC: see Copyright.txt // Using the Collections.unmodifiable methods. import java.util.*; import net.mindview.util.*; diff --git a/containers/References.java b/containers/References.java index 77e4f063..5d673501 100644 --- a/containers/References.java +++ b/containers/References.java @@ -1,4 +1,5 @@ //: containers/References.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates Reference objects import java.lang.ref.*; import java.util.*; diff --git a/containers/SetPerformance.java b/containers/SetPerformance.java index 7a0504a9..527fd4ba 100644 --- a/containers/SetPerformance.java +++ b/containers/SetPerformance.java @@ -1,4 +1,5 @@ //: containers/SetPerformance.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates performance differences in Sets. // {Args: 100 5000} Small to keep build testing short import java.util.*; diff --git a/containers/SimpleHashMap.java b/containers/SimpleHashMap.java index 6a80a883..8dbc6e48 100644 --- a/containers/SimpleHashMap.java +++ b/containers/SimpleHashMap.java @@ -1,4 +1,5 @@ //: containers/SimpleHashMap.java +// ©2015 MindView LLC: see Copyright.txt // A demonstration hashed Map. import java.util.*; import net.mindview.util.*; diff --git a/containers/SlowMap.java b/containers/SlowMap.java index 7de5602d..d1daae93 100644 --- a/containers/SlowMap.java +++ b/containers/SlowMap.java @@ -1,4 +1,5 @@ //: containers/SlowMap.java +// ©2015 MindView LLC: see Copyright.txt // A Map implemented with ArrayLists. import java.util.*; import net.mindview.util.*; diff --git a/containers/SortedMapDemo.java b/containers/SortedMapDemo.java index 767d74d7..d0a37048 100644 --- a/containers/SortedMapDemo.java +++ b/containers/SortedMapDemo.java @@ -1,4 +1,5 @@ //: containers/SortedMapDemo.java +// ©2015 MindView LLC: see Copyright.txt // What you can do with a TreeMap. import java.util.*; import net.mindview.util.*; diff --git a/containers/SortedSetDemo.java b/containers/SortedSetDemo.java index 62a503bb..be94fae1 100644 --- a/containers/SortedSetDemo.java +++ b/containers/SortedSetDemo.java @@ -1,4 +1,5 @@ //: containers/SortedSetDemo.java +// ©2015 MindView LLC: see Copyright.txt // What you can do with a TreeSet. import java.util.*; import static net.mindview.util.Print.*; diff --git a/containers/SpringDetector.java b/containers/SpringDetector.java index 87da2090..ed2a54dc 100644 --- a/containers/SpringDetector.java +++ b/containers/SpringDetector.java @@ -1,4 +1,5 @@ //: containers/SpringDetector.java +// ©2015 MindView LLC: see Copyright.txt // What will the weather be? import java.lang.reflect.*; import java.util.*; diff --git a/containers/SpringDetector2.java b/containers/SpringDetector2.java index 34cede17..5e8734a1 100644 --- a/containers/SpringDetector2.java +++ b/containers/SpringDetector2.java @@ -1,4 +1,5 @@ //: containers/SpringDetector2.java +// ©2015 MindView LLC: see Copyright.txt // A working key. public class SpringDetector2 { diff --git a/containers/Stacks.java b/containers/Stacks.java index 0677b01d..9b4ce59d 100644 --- a/containers/Stacks.java +++ b/containers/Stacks.java @@ -1,4 +1,5 @@ //: containers/Stacks.java +// ©2015 MindView LLC: see Copyright.txt // Demonstration of Stack Class. import java.util.*; import static net.mindview.util.Print.*; diff --git a/containers/StringHashCode.java b/containers/StringHashCode.java index 4d169071..c7950a3b 100644 --- a/containers/StringHashCode.java +++ b/containers/StringHashCode.java @@ -1,4 +1,5 @@ //: containers/StringHashCode.java +// ©2015 MindView LLC: see Copyright.txt public class StringHashCode { public static void main(String[] args) { diff --git a/containers/Synchronization.java b/containers/Synchronization.java index 6259caab..e1feb843 100644 --- a/containers/Synchronization.java +++ b/containers/Synchronization.java @@ -1,4 +1,5 @@ //: containers/Synchronization.java +// ©2015 MindView LLC: see Copyright.txt // Using the Collections.synchronized methods. import java.util.*; diff --git a/containers/Test.java b/containers/Test.java index 33977b67..8a20ff2b 100644 --- a/containers/Test.java +++ b/containers/Test.java @@ -1,4 +1,5 @@ //: containers/Test.java +// ©2015 MindView LLC: see Copyright.txt // Framework for performing timed tests of containers. public abstract class Test { diff --git a/containers/TestParam.java b/containers/TestParam.java index 20e4f266..88473f42 100644 --- a/containers/TestParam.java +++ b/containers/TestParam.java @@ -1,4 +1,5 @@ //: containers/TestParam.java +// ©2015 MindView LLC: see Copyright.txt // A "data transfer object." public class TestParam { diff --git a/containers/Tester.java b/containers/Tester.java index b7c1bbf6..71b2657d 100644 --- a/containers/Tester.java +++ b/containers/Tester.java @@ -1,4 +1,5 @@ //: containers/Tester.java +// ©2015 MindView LLC: see Copyright.txt // Applies Test objects to lists of different containers. import java.util.*; diff --git a/containers/ToDoList.java b/containers/ToDoList.java index 39264f11..d7c36bcb 100644 --- a/containers/ToDoList.java +++ b/containers/ToDoList.java @@ -1,4 +1,5 @@ //: containers/ToDoList.java +// ©2015 MindView LLC: see Copyright.txt // A more complex use of PriorityQueue. import java.util.*; diff --git a/containers/TypesForSets.java b/containers/TypesForSets.java index 7ac40b2a..125850b0 100644 --- a/containers/TypesForSets.java +++ b/containers/TypesForSets.java @@ -1,4 +1,5 @@ //: containers/TypesForSets.java +// ©2015 MindView LLC: see Copyright.txt // Methods necessary to put your own type in a Set. import java.lang.reflect.InvocationTargetException; import java.util.*; diff --git a/containers/Unsupported.java b/containers/Unsupported.java index dad37cfc..5ebc2430 100644 --- a/containers/Unsupported.java +++ b/containers/Unsupported.java @@ -1,4 +1,5 @@ //: containers/Unsupported.java +// ©2015 MindView LLC: see Copyright.txt // Unsupported operations in Java containers. import java.util.*; diff --git a/containers/Utilities.java b/containers/Utilities.java index ee6b30ff..c7893895 100644 --- a/containers/Utilities.java +++ b/containers/Utilities.java @@ -1,4 +1,5 @@ //: containers/Utilities.java +// ©2015 MindView LLC: see Copyright.txt // Simple demonstrations of the Collections utilities. import java.util.*; import static net.mindview.util.Print.*; diff --git a/control/BreakAndContinue.java b/control/BreakAndContinue.java index dff4d8c2..0d4b43a4 100644 --- a/control/BreakAndContinue.java +++ b/control/BreakAndContinue.java @@ -1,4 +1,5 @@ //: control/BreakAndContinue.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates break and continue keywords. import static net.mindview.util.Range.*; diff --git a/control/CommaOperator.java b/control/CommaOperator.java index cea2efeb..79ed6d69 100644 --- a/control/CommaOperator.java +++ b/control/CommaOperator.java @@ -1,4 +1,5 @@ //: control/CommaOperator.java +// ©2015 MindView LLC: see Copyright.txt public class CommaOperator { public static void main(String[] args) { diff --git a/control/ForEachFloat.java b/control/ForEachFloat.java index f641c6b2..263bcdbe 100644 --- a/control/ForEachFloat.java +++ b/control/ForEachFloat.java @@ -1,4 +1,5 @@ //: control/ForEachFloat.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class ForEachFloat { diff --git a/control/ForEachInt.java b/control/ForEachInt.java index b1edfd2e..5247803e 100644 --- a/control/ForEachInt.java +++ b/control/ForEachInt.java @@ -1,4 +1,5 @@ //: control/ForEachInt.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Range.*; import static net.mindview.util.Print.*; diff --git a/control/ForEachString.java b/control/ForEachString.java index f7e08c53..08b453d4 100644 --- a/control/ForEachString.java +++ b/control/ForEachString.java @@ -1,4 +1,5 @@ //: control/ForEachString.java +// ©2015 MindView LLC: see Copyright.txt public class ForEachString { public static void main(String[] args) { diff --git a/control/IfElse.java b/control/IfElse.java index f6ba6e37..9d22c0d7 100644 --- a/control/IfElse.java +++ b/control/IfElse.java @@ -1,4 +1,5 @@ //: control/IfElse.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; public class IfElse { diff --git a/control/IfElse2.java b/control/IfElse2.java index e2d1442e..47eea419 100644 --- a/control/IfElse2.java +++ b/control/IfElse2.java @@ -1,4 +1,5 @@ //: control/IfElse2.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; public class IfElse2 { diff --git a/control/LabeledFor.java b/control/LabeledFor.java index 616f7d6f..dbed717b 100644 --- a/control/LabeledFor.java +++ b/control/LabeledFor.java @@ -1,4 +1,5 @@ //: control/LabeledFor.java +// ©2015 MindView LLC: see Copyright.txt // For loops with "labeled break" and "labeled continue." import static net.mindview.util.Print.*; diff --git a/control/LabeledWhile.java b/control/LabeledWhile.java index 8732883d..917dd1ad 100644 --- a/control/LabeledWhile.java +++ b/control/LabeledWhile.java @@ -1,4 +1,5 @@ //: control/LabeledWhile.java +// ©2015 MindView LLC: see Copyright.txt // While loops with "labeled break" and "labeled continue." import static net.mindview.util.Print.*; diff --git a/control/ListCharacters.java b/control/ListCharacters.java index 7bd02126c..4e19dcf8 100644 --- a/control/ListCharacters.java +++ b/control/ListCharacters.java @@ -1,4 +1,5 @@ //: control/ListCharacters.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates "for" loop by listing // all the lowercase ASCII letters. diff --git a/control/StringSwitch.java b/control/StringSwitch.java index d548d496..753773e7 100644 --- a/control/StringSwitch.java +++ b/control/StringSwitch.java @@ -1,4 +1,5 @@ //: control/StringSwitch.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; public class StringSwitch { diff --git a/control/VowelsAndConsonants.java b/control/VowelsAndConsonants.java index 606a180b..70b3b40e 100644 --- a/control/VowelsAndConsonants.java +++ b/control/VowelsAndConsonants.java @@ -1,4 +1,5 @@ //: control/VowelsAndConsonants.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates the switch statement. import java.util.*; import static net.mindview.util.Print.*; diff --git a/control/WhileTest.java b/control/WhileTest.java index 49d764b6..7cb433bf 100644 --- a/control/WhileTest.java +++ b/control/WhileTest.java @@ -1,4 +1,5 @@ //: control/WhileTest.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates the while loop. public class WhileTest { diff --git a/debugging/SimpleDebugging.java b/debugging/SimpleDebugging.java index 204c1203..751a326b 100644 --- a/debugging/SimpleDebugging.java +++ b/debugging/SimpleDebugging.java @@ -1,4 +1,5 @@ //: debugging/SimpleDebugging.java +// ©2015 MindView LLC: see Copyright.txt // {ThrowsException} public class SimpleDebugging { private static void foo1() { diff --git a/enumerated/AlarmPoints.java b/enumerated/AlarmPoints.java index 2ab3be8a..46bd34af 100644 --- a/enumerated/AlarmPoints.java +++ b/enumerated/AlarmPoints.java @@ -1,4 +1,5 @@ //: enumerated/AlarmPoints.java +// ©2015 MindView LLC: see Copyright.txt package enumerated; public enum AlarmPoints { STAIR1, STAIR2, LOBBY, OFFICE1, OFFICE2, OFFICE3, diff --git a/enumerated/BigEnumSet.java b/enumerated/BigEnumSet.java index a52c0ab8..35e43dd1 100644 --- a/enumerated/BigEnumSet.java +++ b/enumerated/BigEnumSet.java @@ -1,4 +1,5 @@ //: enumerated/BigEnumSet.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class BigEnumSet { diff --git a/enumerated/Burrito.java b/enumerated/Burrito.java index 8eab04c4..3867d59e 100644 --- a/enumerated/Burrito.java +++ b/enumerated/Burrito.java @@ -1,4 +1,5 @@ //: enumerated/Burrito.java +// ©2015 MindView LLC: see Copyright.txt package enumerated; import static enumerated.Spiciness.*; diff --git a/enumerated/CarWash.java b/enumerated/CarWash.java index 3ec38543..85ac9a0a 100644 --- a/enumerated/CarWash.java +++ b/enumerated/CarWash.java @@ -1,4 +1,5 @@ //: enumerated/CarWash.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; import static net.mindview.util.Print.*; diff --git a/enumerated/Competitor.java b/enumerated/Competitor.java index 7d825466..46af5cfa 100644 --- a/enumerated/Competitor.java +++ b/enumerated/Competitor.java @@ -1,4 +1,5 @@ //: enumerated/Competitor.java +// ©2015 MindView LLC: see Copyright.txt // Switching one enum on another. package enumerated; diff --git a/enumerated/ConstantSpecificMethod.java b/enumerated/ConstantSpecificMethod.java index aa0f2d67..2d90d076 100644 --- a/enumerated/ConstantSpecificMethod.java +++ b/enumerated/ConstantSpecificMethod.java @@ -1,4 +1,5 @@ //: enumerated/ConstantSpecificMethod.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; import java.text.*; diff --git a/enumerated/EnumClass.java b/enumerated/EnumClass.java index 3a1cf69c..475eee94 100644 --- a/enumerated/EnumClass.java +++ b/enumerated/EnumClass.java @@ -1,4 +1,5 @@ //: enumerated/EnumClass.java +// ©2015 MindView LLC: see Copyright.txt // Capabilities of the Enum class import static net.mindview.util.Print.*; diff --git a/enumerated/EnumMaps.java b/enumerated/EnumMaps.java index 60b3434b..62b8f2f8 100644 --- a/enumerated/EnumMaps.java +++ b/enumerated/EnumMaps.java @@ -1,4 +1,5 @@ //: enumerated/EnumMaps.java +// ©2015 MindView LLC: see Copyright.txt // Basics of EnumMaps. package enumerated; import java.util.*; diff --git a/enumerated/EnumSets.java b/enumerated/EnumSets.java index 0f04b7a9..1677d771 100644 --- a/enumerated/EnumSets.java +++ b/enumerated/EnumSets.java @@ -1,4 +1,5 @@ //: enumerated/EnumSets.java +// ©2015 MindView LLC: see Copyright.txt // Operations on EnumSets package enumerated; import java.util.*; diff --git a/enumerated/Input.java b/enumerated/Input.java index e6e7f3f7..46cc4fde 100644 --- a/enumerated/Input.java +++ b/enumerated/Input.java @@ -1,4 +1,5 @@ //: enumerated/Input.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public enum Input { diff --git a/enumerated/NonEnum.java b/enumerated/NonEnum.java index 7c5ee351..6109b4ad 100644 --- a/enumerated/NonEnum.java +++ b/enumerated/NonEnum.java @@ -1,4 +1,5 @@ //: enumerated/NonEnum.java +// ©2015 MindView LLC: see Copyright.txt public class NonEnum { public static void main(String[] args) { diff --git a/enumerated/NotClasses.java b/enumerated/NotClasses.java index d55fea52..d12d41b3 100644 --- a/enumerated/NotClasses.java +++ b/enumerated/NotClasses.java @@ -1,4 +1,5 @@ //: enumerated/NotClasses.java +// ©2015 MindView LLC: see Copyright.txt // {Exec: javap -c LikeClasses} import static net.mindview.util.Print.*; diff --git a/enumerated/Outcome.java b/enumerated/Outcome.java index d9ada317..554cb93e 100644 --- a/enumerated/Outcome.java +++ b/enumerated/Outcome.java @@ -1,3 +1,4 @@ //: enumerated/Outcome.java +// ©2015 MindView LLC: see Copyright.txt package enumerated; public enum Outcome { WIN, LOSE, DRAW } ///:~ diff --git a/enumerated/OverrideConstantSpecific.java b/enumerated/OverrideConstantSpecific.java index 0b574da1..1b21db46 100644 --- a/enumerated/OverrideConstantSpecific.java +++ b/enumerated/OverrideConstantSpecific.java @@ -1,4 +1,5 @@ //: enumerated/OverrideConstantSpecific.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; public enum OverrideConstantSpecific { diff --git a/enumerated/OzWitch.java b/enumerated/OzWitch.java index 28d94d05..13cbc634 100644 --- a/enumerated/OzWitch.java +++ b/enumerated/OzWitch.java @@ -1,4 +1,5 @@ //: enumerated/OzWitch.java +// ©2015 MindView LLC: see Copyright.txt // The witches in the land of Oz. import static net.mindview.util.Print.*; diff --git a/enumerated/PostOffice.java b/enumerated/PostOffice.java index 5a12049e..933935d6 100644 --- a/enumerated/PostOffice.java +++ b/enumerated/PostOffice.java @@ -1,4 +1,5 @@ //: enumerated/PostOffice.java +// ©2015 MindView LLC: see Copyright.txt // Modeling a post office. import java.util.*; import net.mindview.util.*; diff --git a/enumerated/RandomTest.java b/enumerated/RandomTest.java index 523817a0..b893f666 100644 --- a/enumerated/RandomTest.java +++ b/enumerated/RandomTest.java @@ -1,4 +1,5 @@ //: enumerated/RandomTest.java +// ©2015 MindView LLC: see Copyright.txt import net.mindview.util.*; enum Activity { SITTING, LYING, STANDING, HOPPING, diff --git a/enumerated/Reflection.java b/enumerated/Reflection.java index 12684f6f..e637f836 100644 --- a/enumerated/Reflection.java +++ b/enumerated/Reflection.java @@ -1,4 +1,5 @@ //: enumerated/Reflection.java +// ©2015 MindView LLC: see Copyright.txt // Analyzing enums using reflection. import java.lang.reflect.*; import java.util.*; diff --git a/enumerated/RoShamBo.java b/enumerated/RoShamBo.java index e629009c..4bfc2500 100644 --- a/enumerated/RoShamBo.java +++ b/enumerated/RoShamBo.java @@ -1,4 +1,5 @@ //: enumerated/RoShamBo.java +// ©2015 MindView LLC: see Copyright.txt // Common tools for RoShamBo examples. package enumerated; import net.mindview.util.*; diff --git a/enumerated/RoShamBo1.java b/enumerated/RoShamBo1.java index cb5deb51..b99f41d3 100644 --- a/enumerated/RoShamBo1.java +++ b/enumerated/RoShamBo1.java @@ -1,4 +1,5 @@ //: enumerated/RoShamBo1.java +// ©2015 MindView LLC: see Copyright.txt // Demonstration of multiple dispatching. package enumerated; import java.util.*; diff --git a/enumerated/RoShamBo2.java b/enumerated/RoShamBo2.java index 206b8345..08cca244 100644 --- a/enumerated/RoShamBo2.java +++ b/enumerated/RoShamBo2.java @@ -1,4 +1,5 @@ //: enumerated/RoShamBo2.java +// ©2015 MindView LLC: see Copyright.txt // Switching one enum on another. package enumerated; import static enumerated.Outcome.*; diff --git a/enumerated/RoShamBo3.java b/enumerated/RoShamBo3.java index b2baf0b2..a9b01bec 100644 --- a/enumerated/RoShamBo3.java +++ b/enumerated/RoShamBo3.java @@ -1,4 +1,5 @@ //: enumerated/RoShamBo3.java +// ©2015 MindView LLC: see Copyright.txt // Using constant-specific methods. package enumerated; import static enumerated.Outcome.*; diff --git a/enumerated/RoShamBo4.java b/enumerated/RoShamBo4.java index 2eb3432a..11375336 100644 --- a/enumerated/RoShamBo4.java +++ b/enumerated/RoShamBo4.java @@ -1,4 +1,5 @@ //: enumerated/RoShamBo4.java +// ©2015 MindView LLC: see Copyright.txt package enumerated; public enum RoShamBo4 implements Competitor { diff --git a/enumerated/RoShamBo5.java b/enumerated/RoShamBo5.java index 29d8fcc8..5f9a04a7 100644 --- a/enumerated/RoShamBo5.java +++ b/enumerated/RoShamBo5.java @@ -1,4 +1,5 @@ //: enumerated/RoShamBo5.java +// ©2015 MindView LLC: see Copyright.txt // Multiple dispatching using an EnumMap of EnumMaps. package enumerated; import java.util.*; diff --git a/enumerated/RoShamBo6.java b/enumerated/RoShamBo6.java index 9553f846..33f36308 100644 --- a/enumerated/RoShamBo6.java +++ b/enumerated/RoShamBo6.java @@ -1,4 +1,5 @@ //: enumerated/RoShamBo6.java +// ©2015 MindView LLC: see Copyright.txt // Enums using "tables" instead of multiple dispatch. package enumerated; import static enumerated.Outcome.*; diff --git a/enumerated/SecurityCategory.java b/enumerated/SecurityCategory.java index f498d1f7..22707994 100644 --- a/enumerated/SecurityCategory.java +++ b/enumerated/SecurityCategory.java @@ -1,4 +1,5 @@ //: enumerated/SecurityCategory.java +// ©2015 MindView LLC: see Copyright.txt // More succinct subcategorization of enums. import net.mindview.util.*; diff --git a/enumerated/SpaceShip.java b/enumerated/SpaceShip.java index 6e526f3d..fd3310d5 100644 --- a/enumerated/SpaceShip.java +++ b/enumerated/SpaceShip.java @@ -1,4 +1,5 @@ //: enumerated/SpaceShip.java +// ©2015 MindView LLC: see Copyright.txt public enum SpaceShip { SCOUT, CARGO, TRANSPORT, CRUISER, BATTLESHIP, MOTHERSHIP; @Override diff --git a/enumerated/Spiciness.java b/enumerated/Spiciness.java index 3e481e65..70484505 100644 --- a/enumerated/Spiciness.java +++ b/enumerated/Spiciness.java @@ -1,4 +1,5 @@ //: enumerated/Spiciness.java +// ©2015 MindView LLC: see Copyright.txt package enumerated; public enum Spiciness { diff --git a/enumerated/TrafficLight.java b/enumerated/TrafficLight.java index 68951e57..f5dfd215 100644 --- a/enumerated/TrafficLight.java +++ b/enumerated/TrafficLight.java @@ -1,4 +1,5 @@ //: enumerated/TrafficLight.java +// ©2015 MindView LLC: see Copyright.txt // Enums in switch statements. import static net.mindview.util.Print.*; diff --git a/enumerated/UpcastEnum.java b/enumerated/UpcastEnum.java index 4c88e2d7..510b320d 100644 --- a/enumerated/UpcastEnum.java +++ b/enumerated/UpcastEnum.java @@ -1,4 +1,5 @@ //: enumerated/UpcastEnum.java +// ©2015 MindView LLC: see Copyright.txt // No values() method if you upcast an enum enum Search { HITHER, YON } diff --git a/enumerated/VendingMachine.java b/enumerated/VendingMachine.java index a8470e79..d4f3d70a 100644 --- a/enumerated/VendingMachine.java +++ b/enumerated/VendingMachine.java @@ -1,4 +1,5 @@ //: enumerated/VendingMachine.java +// ©2015 MindView LLC: see Copyright.txt // {CompileTimeError} Not working in Java 8 // {Args: VendingMachineInput.txt} import java.util.*; diff --git a/enumerated/cartoons/EnumImplementation.java b/enumerated/cartoons/EnumImplementation.java index 2ef3fbf2..a681470c 100644 --- a/enumerated/cartoons/EnumImplementation.java +++ b/enumerated/cartoons/EnumImplementation.java @@ -1,4 +1,5 @@ //: enumerated/cartoons/EnumImplementation.java +// ©2015 MindView LLC: see Copyright.txt // An enum can implement an interface package enumerated.cartoons; import java.util.*; diff --git a/enumerated/menu/Course.java b/enumerated/menu/Course.java index 4a667fd3..0bf64f57 100644 --- a/enumerated/menu/Course.java +++ b/enumerated/menu/Course.java @@ -1,4 +1,5 @@ //: enumerated/menu/Course.java +// ©2015 MindView LLC: see Copyright.txt package enumerated.menu; import net.mindview.util.*; diff --git a/enumerated/menu/Food.java b/enumerated/menu/Food.java index 8edb498d..22a82ad0 100644 --- a/enumerated/menu/Food.java +++ b/enumerated/menu/Food.java @@ -1,4 +1,5 @@ //: enumerated/menu/Food.java +// ©2015 MindView LLC: see Copyright.txt // Subcategorization of enums within interfaces. package enumerated.menu; diff --git a/enumerated/menu/Meal.java b/enumerated/menu/Meal.java index 3b001d8d..0effda88 100644 --- a/enumerated/menu/Meal.java +++ b/enumerated/menu/Meal.java @@ -1,4 +1,5 @@ //: enumerated/menu/Meal.java +// ©2015 MindView LLC: see Copyright.txt package enumerated.menu; public class Meal { diff --git a/enumerated/menu/Meal2.java b/enumerated/menu/Meal2.java index 38d8df8b..c765091c 100644 --- a/enumerated/menu/Meal2.java +++ b/enumerated/menu/Meal2.java @@ -1,4 +1,5 @@ //: enumerated/menu/Meal2.java +// ©2015 MindView LLC: see Copyright.txt package enumerated.menu; import net.mindview.util.*; diff --git a/enumerated/menu/TypeOfFood.java b/enumerated/menu/TypeOfFood.java index fb1138b5..01ae0457 100644 --- a/enumerated/menu/TypeOfFood.java +++ b/enumerated/menu/TypeOfFood.java @@ -1,4 +1,5 @@ //: enumerated/menu/TypeOfFood.java +// ©2015 MindView LLC: see Copyright.txt package enumerated.menu; import static enumerated.menu.Food.*; diff --git a/exceptions/AlwaysFinally.java b/exceptions/AlwaysFinally.java index 372372d2..7bde02b4 100644 --- a/exceptions/AlwaysFinally.java +++ b/exceptions/AlwaysFinally.java @@ -1,4 +1,5 @@ //: exceptions/AlwaysFinally.java +// ©2015 MindView LLC: see Copyright.txt // Finally is always executed. import static net.mindview.util.Print.*; diff --git a/exceptions/Cleanup.java b/exceptions/Cleanup.java index bc857a2e..a84d9ecd 100644 --- a/exceptions/Cleanup.java +++ b/exceptions/Cleanup.java @@ -1,4 +1,5 @@ //: exceptions/Cleanup.java +// ©2015 MindView LLC: see Copyright.txt // Guaranteeing proper cleanup of a resource. public class Cleanup { diff --git a/exceptions/CleanupIdiom.java b/exceptions/CleanupIdiom.java index 0d64a024..414a78ec 100644 --- a/exceptions/CleanupIdiom.java +++ b/exceptions/CleanupIdiom.java @@ -1,4 +1,5 @@ //: exceptions/CleanupIdiom.java +// ©2015 MindView LLC: see Copyright.txt // Each disposable object must be followed by a try-finally class NeedsCleanup { // Construction can't fail diff --git a/exceptions/DynamicFields.java b/exceptions/DynamicFields.java index acb1a842..cde2f371 100644 --- a/exceptions/DynamicFields.java +++ b/exceptions/DynamicFields.java @@ -1,4 +1,5 @@ //: exceptions/DynamicFields.java +// ©2015 MindView LLC: see Copyright.txt // {ThrowsException} // A Class that dynamically adds fields to itself. // Demonstrates exception chaining. diff --git a/exceptions/ExceptionMethods.java b/exceptions/ExceptionMethods.java index db844e87..600db553 100644 --- a/exceptions/ExceptionMethods.java +++ b/exceptions/ExceptionMethods.java @@ -1,4 +1,5 @@ //: exceptions/ExceptionMethods.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrating the Exception Methods. import static net.mindview.util.Print.*; diff --git a/exceptions/ExceptionSilencer.java b/exceptions/ExceptionSilencer.java index dfc17634..1ceefac9 100644 --- a/exceptions/ExceptionSilencer.java +++ b/exceptions/ExceptionSilencer.java @@ -1,4 +1,5 @@ //: exceptions/ExceptionSilencer.java +// ©2015 MindView LLC: see Copyright.txt public class ExceptionSilencer { public static void main(String[] args) { diff --git a/exceptions/ExtraFeatures.java b/exceptions/ExtraFeatures.java index bc42d39e..623a6ec4 100644 --- a/exceptions/ExtraFeatures.java +++ b/exceptions/ExtraFeatures.java @@ -1,4 +1,5 @@ //: exceptions/ExtraFeatures.java +// ©2015 MindView LLC: see Copyright.txt // Further embellishment of exception classes. import static net.mindview.util.Print.*; diff --git a/exceptions/FinallyWorks.java b/exceptions/FinallyWorks.java index b6dea3eb..459d075a 100644 --- a/exceptions/FinallyWorks.java +++ b/exceptions/FinallyWorks.java @@ -1,4 +1,5 @@ //: exceptions/FinallyWorks.java +// ©2015 MindView LLC: see Copyright.txt // The finally clause is always executed. class ThreeException extends Exception {} diff --git a/exceptions/FullConstructors.java b/exceptions/FullConstructors.java index 97ad26f0..267f2f23 100644 --- a/exceptions/FullConstructors.java +++ b/exceptions/FullConstructors.java @@ -1,4 +1,5 @@ //: exceptions/FullConstructors.java +// ©2015 MindView LLC: see Copyright.txt class MyException extends Exception { public MyException() {} diff --git a/exceptions/Human.java b/exceptions/Human.java index b5e7676b..e725c968 100644 --- a/exceptions/Human.java +++ b/exceptions/Human.java @@ -1,4 +1,5 @@ //: exceptions/Human.java +// ©2015 MindView LLC: see Copyright.txt // Catching exception hierarchies. class Annoyance extends Exception {} diff --git a/exceptions/InheritingExceptions.java b/exceptions/InheritingExceptions.java index 3fe510c8..94284d50 100644 --- a/exceptions/InheritingExceptions.java +++ b/exceptions/InheritingExceptions.java @@ -1,4 +1,5 @@ //: exceptions/InheritingExceptions.java +// ©2015 MindView LLC: see Copyright.txt // Creating your own exceptions. class SimpleException extends Exception {} diff --git a/exceptions/InputFile.java b/exceptions/InputFile.java index bdc4dad9..911fccfd 100644 --- a/exceptions/InputFile.java +++ b/exceptions/InputFile.java @@ -1,4 +1,5 @@ //: exceptions/InputFile.java +// ©2015 MindView LLC: see Copyright.txt // Paying attention to exceptions in constructors. import java.io.*; diff --git a/exceptions/LoggingExceptions.java b/exceptions/LoggingExceptions.java index 3dd4be7f..6016f1cc 100644 --- a/exceptions/LoggingExceptions.java +++ b/exceptions/LoggingExceptions.java @@ -1,4 +1,5 @@ //: exceptions/LoggingExceptions.java +// ©2015 MindView LLC: see Copyright.txt // An exception that reports through a Logger. import java.util.logging.*; import java.io.*; diff --git a/exceptions/LoggingExceptions2.java b/exceptions/LoggingExceptions2.java index bd1892d0..81c5711f 100644 --- a/exceptions/LoggingExceptions2.java +++ b/exceptions/LoggingExceptions2.java @@ -1,4 +1,5 @@ //: exceptions/LoggingExceptions2.java +// ©2015 MindView LLC: see Copyright.txt // Logging caught exceptions. import java.util.logging.*; import java.io.*; diff --git a/exceptions/LostMessage.java b/exceptions/LostMessage.java index 152fb002..70b2568e 100644 --- a/exceptions/LostMessage.java +++ b/exceptions/LostMessage.java @@ -1,4 +1,5 @@ //: exceptions/LostMessage.java +// ©2015 MindView LLC: see Copyright.txt // How an exception can be lost. class VeryImportantException extends Exception { diff --git a/exceptions/MainException.java b/exceptions/MainException.java index e7915021..14031795 100644 --- a/exceptions/MainException.java +++ b/exceptions/MainException.java @@ -1,4 +1,5 @@ //: exceptions/MainException.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; public class MainException { diff --git a/exceptions/MultipleReturns.java b/exceptions/MultipleReturns.java index f2c6cdcc..bc77c05f 100644 --- a/exceptions/MultipleReturns.java +++ b/exceptions/MultipleReturns.java @@ -1,4 +1,5 @@ //: exceptions/MultipleReturns.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; public class MultipleReturns { diff --git a/exceptions/NeverCaught.java b/exceptions/NeverCaught.java index cb8ac52c..630ecfaf 100644 --- a/exceptions/NeverCaught.java +++ b/exceptions/NeverCaught.java @@ -1,4 +1,5 @@ //: exceptions/NeverCaught.java +// ©2015 MindView LLC: see Copyright.txt // Ignoring RuntimeExceptions. // {ThrowsException} diff --git a/exceptions/OnOffException1.java b/exceptions/OnOffException1.java index a3565356..4eecb13c 100644 --- a/exceptions/OnOffException1.java +++ b/exceptions/OnOffException1.java @@ -1,2 +1,3 @@ //: exceptions/OnOffException1.java +// ©2015 MindView LLC: see Copyright.txt public class OnOffException1 extends Exception {} ///:~ diff --git a/exceptions/OnOffException2.java b/exceptions/OnOffException2.java index 492c8962..97e6f2e8 100644 --- a/exceptions/OnOffException2.java +++ b/exceptions/OnOffException2.java @@ -1,2 +1,3 @@ //: exceptions/OnOffException2.java +// ©2015 MindView LLC: see Copyright.txt public class OnOffException2 extends Exception {} ///:~ diff --git a/exceptions/OnOffSwitch.java b/exceptions/OnOffSwitch.java index e967c325..da72c9cd 100644 --- a/exceptions/OnOffSwitch.java +++ b/exceptions/OnOffSwitch.java @@ -1,4 +1,5 @@ //: exceptions/OnOffSwitch.java +// ©2015 MindView LLC: see Copyright.txt // Why use finally? public class OnOffSwitch { diff --git a/exceptions/RethrowNew.java b/exceptions/RethrowNew.java index ea132e15..aa7e45fb 100644 --- a/exceptions/RethrowNew.java +++ b/exceptions/RethrowNew.java @@ -1,4 +1,5 @@ //: exceptions/RethrowNew.java +// ©2015 MindView LLC: see Copyright.txt // Rethrow a different object from the one that was caught. class OneException extends Exception { diff --git a/exceptions/Rethrowing.java b/exceptions/Rethrowing.java index eff53d62..62c3666a 100644 --- a/exceptions/Rethrowing.java +++ b/exceptions/Rethrowing.java @@ -1,4 +1,5 @@ //: exceptions/Rethrowing.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrating fillInStackTrace() public class Rethrowing { diff --git a/exceptions/StormyInning.java b/exceptions/StormyInning.java index bb1b0420..e432d285 100644 --- a/exceptions/StormyInning.java +++ b/exceptions/StormyInning.java @@ -1,4 +1,5 @@ //: exceptions/StormyInning.java +// ©2015 MindView LLC: see Copyright.txt // 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/Switch.java b/exceptions/Switch.java index 085cb2a2..5b66f3b5 100644 --- a/exceptions/Switch.java +++ b/exceptions/Switch.java @@ -1,4 +1,5 @@ //: exceptions/Switch.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; public class Switch { diff --git a/exceptions/TurnOffChecking.java b/exceptions/TurnOffChecking.java index 47085648..64a8f15e 100644 --- a/exceptions/TurnOffChecking.java +++ b/exceptions/TurnOffChecking.java @@ -1,4 +1,5 @@ //: exceptions/TurnOffChecking.java +// ©2015 MindView LLC: see Copyright.txt // "Turning off" Checked exceptions. import java.io.*; import static net.mindview.util.Print.*; diff --git a/exceptions/WhoCalled.java b/exceptions/WhoCalled.java index fd2d35db..08548acb 100644 --- a/exceptions/WhoCalled.java +++ b/exceptions/WhoCalled.java @@ -1,4 +1,5 @@ //: exceptions/WhoCalled.java +// ©2015 MindView LLC: see Copyright.txt // Programmatic access to stack trace information. public class WhoCalled { diff --git a/exceptions/WithFinally.java b/exceptions/WithFinally.java index 05484243..64792a4f 100644 --- a/exceptions/WithFinally.java +++ b/exceptions/WithFinally.java @@ -1,4 +1,5 @@ //: exceptions/WithFinally.java +// ©2015 MindView LLC: see Copyright.txt // Finally Guarantees cleanup. public class WithFinally { diff --git a/generics/Apply.java b/generics/Apply.java index 69a9b1cc..22967f61 100644 --- a/generics/Apply.java +++ b/generics/Apply.java @@ -1,4 +1,5 @@ //: generics/Apply.java +// ©2015 MindView LLC: see Copyright.txt // {main: ApplyTest} import java.lang.reflect.*; import java.util.*; diff --git a/generics/ArrayMaker.java b/generics/ArrayMaker.java index f17cca29..ab97959b 100644 --- a/generics/ArrayMaker.java +++ b/generics/ArrayMaker.java @@ -1,4 +1,5 @@ //: generics/ArrayMaker.java +// ©2015 MindView LLC: see Copyright.txt import java.lang.reflect.*; import java.util.*; diff --git a/generics/ArrayOfGeneric.java b/generics/ArrayOfGeneric.java index 481d244f..26025fc3 100644 --- a/generics/ArrayOfGeneric.java +++ b/generics/ArrayOfGeneric.java @@ -1,4 +1,5 @@ //: generics/ArrayOfGeneric.java +// ©2015 MindView LLC: see Copyright.txt public class ArrayOfGeneric { static final int SIZE = 100; diff --git a/generics/ArrayOfGenericReference.java b/generics/ArrayOfGenericReference.java index f6be5f7f..7b135797 100644 --- a/generics/ArrayOfGenericReference.java +++ b/generics/ArrayOfGenericReference.java @@ -1,4 +1,5 @@ //: generics/ArrayOfGenericReference.java +// ©2015 MindView LLC: see Copyright.txt class Generic {} diff --git a/generics/BankTeller.java b/generics/BankTeller.java index fffb82b1..ee36117a 100644 --- a/generics/BankTeller.java +++ b/generics/BankTeller.java @@ -1,4 +1,5 @@ //: generics/BankTeller.java +// ©2015 MindView LLC: see Copyright.txt // A very simple bank teller simulation. import java.util.*; import net.mindview.util.*; diff --git a/generics/BasicBounds.java b/generics/BasicBounds.java index 8894a482..1b0da537 100644 --- a/generics/BasicBounds.java +++ b/generics/BasicBounds.java @@ -1,4 +1,5 @@ //: generics/BasicBounds.java +// ©2015 MindView LLC: see Copyright.txt interface HasColor { java.awt.Color getColor(); } diff --git a/generics/BasicGeneratorDemo.java b/generics/BasicGeneratorDemo.java index 104d4d64..51589135 100644 --- a/generics/BasicGeneratorDemo.java +++ b/generics/BasicGeneratorDemo.java @@ -1,4 +1,5 @@ //: generics/BasicGeneratorDemo.java +// ©2015 MindView LLC: see Copyright.txt import net.mindview.util.*; public class BasicGeneratorDemo { diff --git a/generics/BasicHolder.java b/generics/BasicHolder.java index 4c68664e..b88668f9 100644 --- a/generics/BasicHolder.java +++ b/generics/BasicHolder.java @@ -1,4 +1,5 @@ //: generics/BasicHolder.java +// ©2015 MindView LLC: see Copyright.txt public class BasicHolder { T element; diff --git a/generics/ByteSet.java b/generics/ByteSet.java index f9a3bcfd..db4e75bd 100644 --- a/generics/ByteSet.java +++ b/generics/ByteSet.java @@ -1,4 +1,5 @@ //: generics/ByteSet.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class ByteSet { diff --git a/generics/CRGWithBasicHolder.java b/generics/CRGWithBasicHolder.java index 341741ca..76ca69ed 100644 --- a/generics/CRGWithBasicHolder.java +++ b/generics/CRGWithBasicHolder.java @@ -1,4 +1,5 @@ //: generics/CRGWithBasicHolder.java +// ©2015 MindView LLC: see Copyright.txt class Subtype extends BasicHolder {} diff --git a/generics/CaptureConversion.java b/generics/CaptureConversion.java index 1a43318f..3716aa68 100644 --- a/generics/CaptureConversion.java +++ b/generics/CaptureConversion.java @@ -1,4 +1,5 @@ //: generics/CaptureConversion.java +// ©2015 MindView LLC: see Copyright.txt public class CaptureConversion { static void f1(Holder holder) { diff --git a/generics/CheckedList.java b/generics/CheckedList.java index b79e37a8..74015ee5 100644 --- a/generics/CheckedList.java +++ b/generics/CheckedList.java @@ -1,4 +1,5 @@ //: generics/CheckedList.java +// ©2015 MindView LLC: see Copyright.txt // Using Collection.checkedList(). import typeinfo.pets.*; import java.util.*; diff --git a/generics/ClassCasting.java b/generics/ClassCasting.java index bb4af2c5..f290a894 100644 --- a/generics/ClassCasting.java +++ b/generics/ClassCasting.java @@ -1,4 +1,5 @@ //: generics/ClassCasting.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; import java.util.*; diff --git a/generics/ClassTypeCapture.java b/generics/ClassTypeCapture.java index 1067495d..c94e53c0 100644 --- a/generics/ClassTypeCapture.java +++ b/generics/ClassTypeCapture.java @@ -1,4 +1,5 @@ //: generics/ClassTypeCapture.java +// ©2015 MindView LLC: see Copyright.txt class Building {} class House extends Building {} diff --git a/generics/ComparablePet.java b/generics/ComparablePet.java index 74cc373b..840a065f 100644 --- a/generics/ComparablePet.java +++ b/generics/ComparablePet.java @@ -1,4 +1,5 @@ //: generics/ComparablePet.java +// ©2015 MindView LLC: see Copyright.txt public class ComparablePet implements Comparable { diff --git a/generics/CompilerIntelligence.java b/generics/CompilerIntelligence.java index bc17bfab..49848531 100644 --- a/generics/CompilerIntelligence.java +++ b/generics/CompilerIntelligence.java @@ -1,4 +1,5 @@ //: generics/CompilerIntelligence.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class CompilerIntelligence { diff --git a/generics/CountedObject.java b/generics/CountedObject.java index 6443eb0f..dae5b0e9 100644 --- a/generics/CountedObject.java +++ b/generics/CountedObject.java @@ -1,4 +1,5 @@ //: generics/CountedObject.java +// ©2015 MindView LLC: see Copyright.txt public class CountedObject { private static long counter = 0; diff --git a/generics/CovariantArrays.java b/generics/CovariantArrays.java index 7bd18fd3..9f46be67 100644 --- a/generics/CovariantArrays.java +++ b/generics/CovariantArrays.java @@ -1,4 +1,5 @@ //: generics/CovariantArrays.java +// ©2015 MindView LLC: see Copyright.txt class Fruit {} class Apple extends Fruit {} diff --git a/generics/CovariantReturnTypes.java b/generics/CovariantReturnTypes.java index 6fa68109..2cb15bc4 100644 --- a/generics/CovariantReturnTypes.java +++ b/generics/CovariantReturnTypes.java @@ -1,4 +1,5 @@ //: generics/CovariantReturnTypes.java +// ©2015 MindView LLC: see Copyright.txt class Base {} class Derived extends Base {} diff --git a/generics/CreatorGeneric.java b/generics/CreatorGeneric.java index 5be81f34..9e0c44da 100644 --- a/generics/CreatorGeneric.java +++ b/generics/CreatorGeneric.java @@ -1,4 +1,5 @@ //: generics/CreatorGeneric.java +// ©2015 MindView LLC: see Copyright.txt abstract class GenericWithCreate { final T element; diff --git a/generics/CuriouslyRecurringGeneric.java b/generics/CuriouslyRecurringGeneric.java index a6c7ca9a..e7ede29d 100644 --- a/generics/CuriouslyRecurringGeneric.java +++ b/generics/CuriouslyRecurringGeneric.java @@ -1,4 +1,5 @@ //: generics/CuriouslyRecurringGeneric.java +// ©2015 MindView LLC: see Copyright.txt class GenericType {} diff --git a/generics/Diamond.java b/generics/Diamond.java index 2a80d8e8..5d4b1c6f 100644 --- a/generics/Diamond.java +++ b/generics/Diamond.java @@ -1,4 +1,5 @@ //: generics/Diamond.java +// ©2015 MindView LLC: see Copyright.txt public class Diamond { private T a; diff --git a/generics/DogsAndRobots.cpp b/generics/DogsAndRobots.cpp index 0947e784..7f82b60f 100644 --- a/generics/DogsAndRobots.cpp +++ b/generics/DogsAndRobots.cpp @@ -1,4 +1,5 @@ //: generics/DogsAndRobots.cpp +// ©2015 MindView LLC: see Copyright.txt class Dog { public: diff --git a/generics/DogsAndRobots.java b/generics/DogsAndRobots.java index c93c7bf2..e7cf6403 100644 --- a/generics/DogsAndRobots.java +++ b/generics/DogsAndRobots.java @@ -1,4 +1,5 @@ //: generics/DogsAndRobots.java +// ©2015 MindView LLC: see Copyright.txt // No latent typing in Java import typeinfo.pets.*; import static net.mindview.util.Print.*; diff --git a/generics/DogsAndRobots.py b/generics/DogsAndRobots.py index ddcb48d3..1022a3dd 100644 --- a/generics/DogsAndRobots.py +++ b/generics/DogsAndRobots.py @@ -1,4 +1,5 @@ #: generics/DogsAndRobots.py +# ©2015 MindView LLC: see Copyright.txt class Dog: def speak(self): diff --git a/generics/DynamicProxyMixin.java b/generics/DynamicProxyMixin.java index 5acf834b..670790b1 100644 --- a/generics/DynamicProxyMixin.java +++ b/generics/DynamicProxyMixin.java @@ -1,4 +1,5 @@ //: generics/DynamicProxyMixin.java +// ©2015 MindView LLC: see Copyright.txt import java.lang.reflect.*; import java.util.*; import net.mindview.util.*; diff --git a/generics/EpicBattle.java b/generics/EpicBattle.java index c1d24c8d..14b3b314 100644 --- a/generics/EpicBattle.java +++ b/generics/EpicBattle.java @@ -1,4 +1,5 @@ //: generics/EpicBattle.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrating bounds in Java generics. import java.util.*; diff --git a/generics/Erased.java b/generics/Erased.java index dfa3f515..97530c2a 100644 --- a/generics/Erased.java +++ b/generics/Erased.java @@ -1,4 +1,5 @@ //: generics/Erased.java +// ©2015 MindView LLC: see Copyright.txt // {CompileTimeError} (Won't compile) public class Erased { diff --git a/generics/ErasedTypeEquivalence.java b/generics/ErasedTypeEquivalence.java index c454314b..111f0432 100644 --- a/generics/ErasedTypeEquivalence.java +++ b/generics/ErasedTypeEquivalence.java @@ -1,4 +1,5 @@ //: generics/ErasedTypeEquivalence.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class ErasedTypeEquivalence { diff --git a/generics/ErasureAndInheritance.java b/generics/ErasureAndInheritance.java index 17a254c5..4589074e 100644 --- a/generics/ErasureAndInheritance.java +++ b/generics/ErasureAndInheritance.java @@ -1,4 +1,5 @@ //: generics/ErasureAndInheritance.java +// ©2015 MindView LLC: see Copyright.txt class GenericBase { private T element; diff --git a/generics/ExplicitTypeSpecification.java b/generics/ExplicitTypeSpecification.java index 311cdb31..5428ad42 100644 --- a/generics/ExplicitTypeSpecification.java +++ b/generics/ExplicitTypeSpecification.java @@ -1,4 +1,5 @@ //: generics/ExplicitTypeSpecification.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; import java.util.*; import net.mindview.util.*; diff --git a/generics/FactoryConstraint.java b/generics/FactoryConstraint.java index 7bf1827b..2430988e 100644 --- a/generics/FactoryConstraint.java +++ b/generics/FactoryConstraint.java @@ -1,4 +1,5 @@ //: generics/FactoryConstraint.java +// ©2015 MindView LLC: see Copyright.txt interface FactoryI { T create(); diff --git a/generics/Fibonacci.java b/generics/Fibonacci.java index 012dbada..c7671f4e 100644 --- a/generics/Fibonacci.java +++ b/generics/Fibonacci.java @@ -1,4 +1,5 @@ //: generics/Fibonacci.java +// ©2015 MindView LLC: see Copyright.txt // Generate a Fibonacci sequence. import net.mindview.util.*; diff --git a/generics/Fill.java b/generics/Fill.java index 7ca4700e..06d55048 100644 --- a/generics/Fill.java +++ b/generics/Fill.java @@ -1,4 +1,5 @@ //: generics/Fill.java +// ©2015 MindView LLC: see Copyright.txt // Generalizing the FilledList idea // {main: FillTest} import java.util.*; diff --git a/generics/Fill2.java b/generics/Fill2.java index 9cd8d5bb..dfe29e58 100644 --- a/generics/Fill2.java +++ b/generics/Fill2.java @@ -1,4 +1,5 @@ //: generics/Fill2.java +// ©2015 MindView LLC: see Copyright.txt // Using adapters to simulate latent typing. // {main: Fill2Test} import generics.coffee.*; diff --git a/generics/FilledListMaker.java b/generics/FilledListMaker.java index 469675c6..696936bc 100644 --- a/generics/FilledListMaker.java +++ b/generics/FilledListMaker.java @@ -1,4 +1,5 @@ //: generics/FilledListMaker.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class FilledListMaker { diff --git a/generics/Functional.java b/generics/Functional.java index 63e2d157..fe331a45 100644 --- a/generics/Functional.java +++ b/generics/Functional.java @@ -1,4 +1,5 @@ //: generics/Functional.java +// ©2015 MindView LLC: see Copyright.txt import java.math.*; import java.util.concurrent.atomic.*; import java.util.*; diff --git a/generics/Generators.java b/generics/Generators.java index 42ef01e5..1ef8645d 100644 --- a/generics/Generators.java +++ b/generics/Generators.java @@ -1,4 +1,5 @@ //: generics/Generators.java +// ©2015 MindView LLC: see Copyright.txt // A utility to use with Generators. import generics.coffee.*; import java.util.*; diff --git a/generics/GenericArray.java b/generics/GenericArray.java index a737b4f2..9937f3f8 100644 --- a/generics/GenericArray.java +++ b/generics/GenericArray.java @@ -1,4 +1,5 @@ //: generics/GenericArray.java +// ©2015 MindView LLC: see Copyright.txt public class GenericArray { private T[] array; diff --git a/generics/GenericArray2.java b/generics/GenericArray2.java index 41dc5b47..ed205492 100644 --- a/generics/GenericArray2.java +++ b/generics/GenericArray2.java @@ -1,4 +1,5 @@ //: generics/GenericArray2.java +// ©2015 MindView LLC: see Copyright.txt public class GenericArray2 { private Object[] array; diff --git a/generics/GenericArrayWithTypeToken.java b/generics/GenericArrayWithTypeToken.java index 3d1c018b..b5e5705e 100644 --- a/generics/GenericArrayWithTypeToken.java +++ b/generics/GenericArrayWithTypeToken.java @@ -1,4 +1,5 @@ //: generics/GenericArrayWithTypeToken.java +// ©2015 MindView LLC: see Copyright.txt import java.lang.reflect.*; public class GenericArrayWithTypeToken { diff --git a/generics/GenericCast.java b/generics/GenericCast.java index f2480013..cf3534af 100644 --- a/generics/GenericCast.java +++ b/generics/GenericCast.java @@ -1,4 +1,5 @@ //: generics/GenericCast.java +// ©2015 MindView LLC: see Copyright.txt class FixedSizeStack { private int index = 0; diff --git a/generics/GenericHolder.java b/generics/GenericHolder.java index d95062bd..b1ee7936 100644 --- a/generics/GenericHolder.java +++ b/generics/GenericHolder.java @@ -1,4 +1,5 @@ //: generics/GenericHolder.java +// ©2015 MindView LLC: see Copyright.txt public class GenericHolder { private T obj; diff --git a/generics/GenericMethods.java b/generics/GenericMethods.java index c1a534c5..5c7f315c 100644 --- a/generics/GenericMethods.java +++ b/generics/GenericMethods.java @@ -1,4 +1,5 @@ //: generics/GenericMethods.java +// ©2015 MindView LLC: see Copyright.txt public class GenericMethods { public void f(T x) { diff --git a/generics/GenericReading.java b/generics/GenericReading.java index f5bbfe47..ef053be4 100644 --- a/generics/GenericReading.java +++ b/generics/GenericReading.java @@ -1,4 +1,5 @@ //: generics/GenericReading.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class GenericReading { diff --git a/generics/GenericVarargs.java b/generics/GenericVarargs.java index 1a55a0fa..ae43245a 100644 --- a/generics/GenericVarargs.java +++ b/generics/GenericVarargs.java @@ -1,4 +1,5 @@ //: generics/GenericVarargs.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class GenericVarargs { diff --git a/generics/GenericWriting.java b/generics/GenericWriting.java index 11d5082b..2ae0fff4 100644 --- a/generics/GenericWriting.java +++ b/generics/GenericWriting.java @@ -1,4 +1,5 @@ //: generics/GenericWriting.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class GenericWriting { diff --git a/generics/GenericsAndCovariance.java b/generics/GenericsAndCovariance.java index df3c04d8..4b7dfe93 100644 --- a/generics/GenericsAndCovariance.java +++ b/generics/GenericsAndCovariance.java @@ -1,4 +1,5 @@ //: generics/GenericsAndCovariance.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class GenericsAndCovariance { diff --git a/generics/GenericsAndReturnTypes.java b/generics/GenericsAndReturnTypes.java index 7fd41ce1..30d65199 100644 --- a/generics/GenericsAndReturnTypes.java +++ b/generics/GenericsAndReturnTypes.java @@ -1,4 +1,5 @@ //: generics/GenericsAndReturnTypes.java +// ©2015 MindView LLC: see Copyright.txt interface GenericGetter> { T get(); diff --git a/generics/HasF.java b/generics/HasF.java index c036d8c9..e1cc38be 100644 --- a/generics/HasF.java +++ b/generics/HasF.java @@ -1,4 +1,5 @@ //: generics/HasF.java +// ©2015 MindView LLC: see Copyright.txt public class HasF { public void f() { System.out.println("HasF.f()"); } diff --git a/generics/HijackedInterface.java b/generics/HijackedInterface.java index 610336d1..3514396b 100644 --- a/generics/HijackedInterface.java +++ b/generics/HijackedInterface.java @@ -1,4 +1,5 @@ //: generics/HijackedInterface.java +// ©2015 MindView LLC: see Copyright.txt // {CompileTimeError} (Won't compile) class Cat extends ComparablePet implements Comparable{ diff --git a/generics/Holder.java b/generics/Holder.java index b52ba242..cd305b11 100644 --- a/generics/Holder.java +++ b/generics/Holder.java @@ -1,4 +1,5 @@ //: generics/Holder.java +// ©2015 MindView LLC: see Copyright.txt public class Holder { private T value; diff --git a/generics/Holder1.java b/generics/Holder1.java index 760d6d8b..fc3d1315 100644 --- a/generics/Holder1.java +++ b/generics/Holder1.java @@ -1,4 +1,5 @@ //: generics/Holder1.java +// ©2015 MindView LLC: see Copyright.txt class Automobile {} diff --git a/generics/Holder2.java b/generics/Holder2.java index 8e8d0a04..d1a97229 100644 --- a/generics/Holder2.java +++ b/generics/Holder2.java @@ -1,4 +1,5 @@ //: generics/Holder2.java +// ©2015 MindView LLC: see Copyright.txt public class Holder2 { private Object a; diff --git a/generics/Holder3.java b/generics/Holder3.java index 74c9704d..56d7a2e7 100644 --- a/generics/Holder3.java +++ b/generics/Holder3.java @@ -1,4 +1,5 @@ //: generics/Holder3.java +// ©2015 MindView LLC: see Copyright.txt public class Holder3 { private T a; diff --git a/generics/InheritBounds.java b/generics/InheritBounds.java index d94da6b2..8884a809 100644 --- a/generics/InheritBounds.java +++ b/generics/InheritBounds.java @@ -1,4 +1,5 @@ //: generics/InheritBounds.java +// ©2015 MindView LLC: see Copyright.txt class HoldItem { T item; diff --git a/generics/InstantiateGenericType.cpp b/generics/InstantiateGenericType.cpp index 4f00cdd2..3412213a 100644 --- a/generics/InstantiateGenericType.cpp +++ b/generics/InstantiateGenericType.cpp @@ -1,4 +1,5 @@ //: generics/InstantiateGenericType.cpp +// ©2015 MindView LLC: see Copyright.txt // C++, not Java! template class Foo { diff --git a/generics/InstantiateGenericType.java b/generics/InstantiateGenericType.java index 2c5becd2..facaeef0 100644 --- a/generics/InstantiateGenericType.java +++ b/generics/InstantiateGenericType.java @@ -1,4 +1,5 @@ //: generics/InstantiateGenericType.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; class ClassAsFactory { diff --git a/generics/IterableFibonacci.java b/generics/IterableFibonacci.java index 248f7b0d..673755a3 100644 --- a/generics/IterableFibonacci.java +++ b/generics/IterableFibonacci.java @@ -1,4 +1,5 @@ //: generics/IterableFibonacci.java +// ©2015 MindView LLC: see Copyright.txt // Adapt the Fibonacci class to make it Iterable. import java.util.*; diff --git a/generics/LatentReflection.java b/generics/LatentReflection.java index ee81bdaa..1ea144d7 100644 --- a/generics/LatentReflection.java +++ b/generics/LatentReflection.java @@ -1,4 +1,5 @@ //: generics/LatentReflection.java +// ©2015 MindView LLC: see Copyright.txt // Using Reflection to produce latent typing. import java.lang.reflect.*; import static net.mindview.util.Print.*; diff --git a/generics/LimitsOfInference.java b/generics/LimitsOfInference.java index 41fff201..ec2cf41f 100644 --- a/generics/LimitsOfInference.java +++ b/generics/LimitsOfInference.java @@ -1,4 +1,5 @@ //: generics/LimitsOfInference.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; import java.util.*; diff --git a/generics/LinkedStack.java b/generics/LinkedStack.java index d1725f1f..dfd989ce 100644 --- a/generics/LinkedStack.java +++ b/generics/LinkedStack.java @@ -1,4 +1,5 @@ //: generics/LinkedStack.java +// ©2015 MindView LLC: see Copyright.txt // A stack implemented with an internal linked structure. public class LinkedStack { diff --git a/generics/ListMaker.java b/generics/ListMaker.java index 1034aada..3bf67385 100644 --- a/generics/ListMaker.java +++ b/generics/ListMaker.java @@ -1,4 +1,5 @@ //: generics/ListMaker.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class ListMaker { diff --git a/generics/ListOfGenerics.java b/generics/ListOfGenerics.java index 52c51d2d..f2f109ee 100644 --- a/generics/ListOfGenerics.java +++ b/generics/ListOfGenerics.java @@ -1,4 +1,5 @@ //: generics/ListOfGenerics.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class ListOfGenerics { diff --git a/generics/ListOfInt.java b/generics/ListOfInt.java index 554696bb..6c7c4357 100644 --- a/generics/ListOfInt.java +++ b/generics/ListOfInt.java @@ -1,4 +1,5 @@ //: generics/ListOfInt.java +// ©2015 MindView LLC: see Copyright.txt // Autoboxing compensates for the inability to use // primitives in generics. import java.util.*; diff --git a/generics/LostInformation.java b/generics/LostInformation.java index 30631875..c6cfbceb 100644 --- a/generics/LostInformation.java +++ b/generics/LostInformation.java @@ -1,4 +1,5 @@ //: generics/LostInformation.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; class Frob {} diff --git a/generics/Manipulation.java b/generics/Manipulation.java index ee5621c2..9fc22b2c 100644 --- a/generics/Manipulation.java +++ b/generics/Manipulation.java @@ -1,4 +1,5 @@ //: generics/Manipulation.java +// ©2015 MindView LLC: see Copyright.txt // {CompileTimeError} (Will not compile) class Manipulator { diff --git a/generics/Manipulator2.java b/generics/Manipulator2.java index 46c6312a..e135349a 100644 --- a/generics/Manipulator2.java +++ b/generics/Manipulator2.java @@ -1,4 +1,5 @@ //: generics/Manipulator2.java +// ©2015 MindView LLC: see Copyright.txt class Manipulator2 { private T obj; diff --git a/generics/Manipulator3.java b/generics/Manipulator3.java index 054ba6a3..48e475c6 100644 --- a/generics/Manipulator3.java +++ b/generics/Manipulator3.java @@ -1,4 +1,5 @@ //: generics/Manipulator3.java +// ©2015 MindView LLC: see Copyright.txt class Manipulator3 { private HasF obj; diff --git a/generics/Mixins.cpp b/generics/Mixins.cpp index b5d100ab..6bffdd26 100644 --- a/generics/Mixins.cpp +++ b/generics/Mixins.cpp @@ -1,4 +1,5 @@ //: generics/Mixins.cpp +// ©2015 MindView LLC: see Copyright.txt #include #include #include diff --git a/generics/Mixins.java b/generics/Mixins.java index 6f982589..a37ec3fc 100644 --- a/generics/Mixins.java +++ b/generics/Mixins.java @@ -1,4 +1,5 @@ //: generics/Mixins.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; interface TimeStamped { long getStamp(); } diff --git a/generics/MultipleInterfaceVariants.java b/generics/MultipleInterfaceVariants.java index 07793c44..5dc651bf 100644 --- a/generics/MultipleInterfaceVariants.java +++ b/generics/MultipleInterfaceVariants.java @@ -1,4 +1,5 @@ //: generics/MultipleInterfaceVariants.java +// ©2015 MindView LLC: see Copyright.txt // {CompileTimeError} (Won't compile) interface Payable {} diff --git a/generics/NeedCasting.java b/generics/NeedCasting.java index 7822fc11..058c843b 100644 --- a/generics/NeedCasting.java +++ b/generics/NeedCasting.java @@ -1,4 +1,5 @@ //: generics/NeedCasting.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; import java.util.*; diff --git a/generics/NonCovariantGenerics.java b/generics/NonCovariantGenerics.java index 536d16d8..ce1f1021 100644 --- a/generics/NonCovariantGenerics.java +++ b/generics/NonCovariantGenerics.java @@ -1,4 +1,5 @@ //: generics/NonCovariantGenerics.java +// ©2015 MindView LLC: see Copyright.txt // {CompileTimeError} (Won't compile) import java.util.*; diff --git a/generics/NotSelfBounded.java b/generics/NotSelfBounded.java index bef3be23..a501faf0 100644 --- a/generics/NotSelfBounded.java +++ b/generics/NotSelfBounded.java @@ -1,4 +1,5 @@ //: generics/NotSelfBounded.java +// ©2015 MindView LLC: see Copyright.txt public class NotSelfBounded { T element; diff --git a/generics/OrdinaryArguments.java b/generics/OrdinaryArguments.java index 20147e5d..ce0781e9 100644 --- a/generics/OrdinaryArguments.java +++ b/generics/OrdinaryArguments.java @@ -1,4 +1,5 @@ //: generics/OrdinaryArguments.java +// ©2015 MindView LLC: see Copyright.txt class OrdinarySetter { void set(Base base) { diff --git a/generics/Performs.java b/generics/Performs.java index f6f5de44..3057dae5 100644 --- a/generics/Performs.java +++ b/generics/Performs.java @@ -1,4 +1,5 @@ //: generics/Performs.java +// ©2015 MindView LLC: see Copyright.txt public interface Performs { void speak(); diff --git a/generics/PlainGenericInheritance.java b/generics/PlainGenericInheritance.java index 1eb78376..a4dc6387 100644 --- a/generics/PlainGenericInheritance.java +++ b/generics/PlainGenericInheritance.java @@ -1,4 +1,5 @@ //: generics/PlainGenericInheritance.java +// ©2015 MindView LLC: see Copyright.txt class GenericSetter { // Not self-bounded void set(T arg){ diff --git a/generics/PrimitiveGenericTest.java b/generics/PrimitiveGenericTest.java index efbaccd5..0f0c674d 100644 --- a/generics/PrimitiveGenericTest.java +++ b/generics/PrimitiveGenericTest.java @@ -1,4 +1,5 @@ //: generics/PrimitiveGenericTest.java +// ©2015 MindView LLC: see Copyright.txt import net.mindview.util.*; // Fill an array using a generator: diff --git a/generics/RandomList.java b/generics/RandomList.java index d06c912f..f012312a 100644 --- a/generics/RandomList.java +++ b/generics/RandomList.java @@ -1,4 +1,5 @@ //: generics/RandomList.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class RandomList { diff --git a/generics/RestrictedComparablePets.java b/generics/RestrictedComparablePets.java index 0c9f34f3..95f39402 100644 --- a/generics/RestrictedComparablePets.java +++ b/generics/RestrictedComparablePets.java @@ -1,4 +1,5 @@ //: generics/RestrictedComparablePets.java +// ©2015 MindView LLC: see Copyright.txt class Hamster extends ComparablePet implements Comparable { diff --git a/generics/ReturnGenericType.java b/generics/ReturnGenericType.java index c4cec085..454af769 100644 --- a/generics/ReturnGenericType.java +++ b/generics/ReturnGenericType.java @@ -1,4 +1,5 @@ //: generics/ReturnGenericType.java +// ©2015 MindView LLC: see Copyright.txt class ReturnGenericType { private T obj; diff --git a/generics/SelfBounding.java b/generics/SelfBounding.java index b8cdeeda..9c6482bf 100644 --- a/generics/SelfBounding.java +++ b/generics/SelfBounding.java @@ -1,4 +1,5 @@ //: generics/SelfBounding.java +// ©2015 MindView LLC: see Copyright.txt class SelfBounded> { T element; diff --git a/generics/SelfBoundingAndCovariantArguments.java b/generics/SelfBoundingAndCovariantArguments.java index 908d0254..0d589390 100644 --- a/generics/SelfBoundingAndCovariantArguments.java +++ b/generics/SelfBoundingAndCovariantArguments.java @@ -1,4 +1,5 @@ //: generics/SelfBoundingAndCovariantArguments.java +// ©2015 MindView LLC: see Copyright.txt interface SelfBoundSetter> { void set(T arg); diff --git a/generics/SelfBoundingMethods.java b/generics/SelfBoundingMethods.java index c687ba52..ec857a6e 100644 --- a/generics/SelfBoundingMethods.java +++ b/generics/SelfBoundingMethods.java @@ -1,4 +1,5 @@ //: generics/SelfBoundingMethods.java +// ©2015 MindView LLC: see Copyright.txt public class SelfBoundingMethods { static > T f(T arg) { diff --git a/generics/SimpleDogsAndRobots.java b/generics/SimpleDogsAndRobots.java index dc60f9a7..ffad22d9 100644 --- a/generics/SimpleDogsAndRobots.java +++ b/generics/SimpleDogsAndRobots.java @@ -1,4 +1,5 @@ //: generics/SimpleDogsAndRobots.java +// ©2015 MindView LLC: see Copyright.txt // Removing the generic; code still works. class CommunicateSimply { diff --git a/generics/SimpleHolder.java b/generics/SimpleHolder.java index 516c6d98..4dff4849 100644 --- a/generics/SimpleHolder.java +++ b/generics/SimpleHolder.java @@ -1,4 +1,5 @@ //: generics/SimpleHolder.java +// ©2015 MindView LLC: see Copyright.txt public class SimpleHolder { private Object obj; diff --git a/generics/SimpleQueue.java b/generics/SimpleQueue.java index b7b65ae9..c146428d 100644 --- a/generics/SimpleQueue.java +++ b/generics/SimpleQueue.java @@ -1,4 +1,5 @@ //: generics/SimpleQueue.java +// ©2015 MindView LLC: see Copyright.txt // A different kind of container that is Iterable import java.util.*; diff --git a/generics/SimplerPets.java b/generics/SimplerPets.java index 260d3829..e4458179 100644 --- a/generics/SimplerPets.java +++ b/generics/SimplerPets.java @@ -1,4 +1,5 @@ //: generics/SimplerPets.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; import java.util.*; import net.mindview.util.*; diff --git a/generics/Store.java b/generics/Store.java index e38d3621..22220028 100644 --- a/generics/Store.java +++ b/generics/Store.java @@ -1,4 +1,5 @@ //: generics/Store.java +// ©2015 MindView LLC: see Copyright.txt // Building up a complex model using generic containers. import java.util.*; import net.mindview.util.*; diff --git a/generics/SuperTypeWildcards.java b/generics/SuperTypeWildcards.java index 65c4f8c1..ac42bef0 100644 --- a/generics/SuperTypeWildcards.java +++ b/generics/SuperTypeWildcards.java @@ -1,4 +1,5 @@ //: generics/SuperTypeWildcards.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class SuperTypeWildcards { diff --git a/generics/Templates.cpp b/generics/Templates.cpp index 8422a991..737ab15c 100644 --- a/generics/Templates.cpp +++ b/generics/Templates.cpp @@ -1,4 +1,5 @@ //: generics/Templates.cpp +// ©2015 MindView LLC: see Copyright.txt #include using namespace std; diff --git a/generics/ThrowGenericException.java b/generics/ThrowGenericException.java index 457e5642..122bfd51 100644 --- a/generics/ThrowGenericException.java +++ b/generics/ThrowGenericException.java @@ -1,4 +1,5 @@ //: generics/ThrowGenericException.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; interface Processor { diff --git a/generics/TupleList.java b/generics/TupleList.java index e75ea01b..52f1eca7 100644 --- a/generics/TupleList.java +++ b/generics/TupleList.java @@ -1,4 +1,5 @@ //: generics/TupleList.java +// ©2015 MindView LLC: see Copyright.txt // Combining generic types to make complex generic types. import java.util.*; import net.mindview.util.*; diff --git a/generics/TupleTest.java b/generics/TupleTest.java index 199f1517..22a95a3f 100644 --- a/generics/TupleTest.java +++ b/generics/TupleTest.java @@ -1,4 +1,5 @@ //: generics/TupleTest.java +// ©2015 MindView LLC: see Copyright.txt import net.mindview.util.*; class Amphibian {} diff --git a/generics/TupleTest2.java b/generics/TupleTest2.java index d4fbea60..24871064 100644 --- a/generics/TupleTest2.java +++ b/generics/TupleTest2.java @@ -1,4 +1,5 @@ //: generics/TupleTest2.java +// ©2015 MindView LLC: see Copyright.txt import net.mindview.util.*; import static net.mindview.util.Tuple.*; diff --git a/generics/UnboundedWildcards1.java b/generics/UnboundedWildcards1.java index a6d5860f..9ae55621 100644 --- a/generics/UnboundedWildcards1.java +++ b/generics/UnboundedWildcards1.java @@ -1,4 +1,5 @@ //: generics/UnboundedWildcards1.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class UnboundedWildcards1 { diff --git a/generics/UnboundedWildcards2.java b/generics/UnboundedWildcards2.java index a2ffe625..b1b06349 100644 --- a/generics/UnboundedWildcards2.java +++ b/generics/UnboundedWildcards2.java @@ -1,4 +1,5 @@ //: generics/UnboundedWildcards2.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class UnboundedWildcards2 { diff --git a/generics/Unconstrained.java b/generics/Unconstrained.java index 8cb50108..b324a8e0 100644 --- a/generics/Unconstrained.java +++ b/generics/Unconstrained.java @@ -1,4 +1,5 @@ //: generics/Unconstrained.java +// ©2015 MindView LLC: see Copyright.txt class Other {} class BasicOther extends BasicHolder {} diff --git a/generics/UseList.java b/generics/UseList.java index b95ec893..ecf4e970 100644 --- a/generics/UseList.java +++ b/generics/UseList.java @@ -1,4 +1,5 @@ //: generics/UseList.java +// ©2015 MindView LLC: see Copyright.txt // {CompileTimeError} (Will not compile) public class UseList { diff --git a/generics/UseList2.java b/generics/UseList2.java index 133a4e25..208a0887 100644 --- a/generics/UseList2.java +++ b/generics/UseList2.java @@ -1,4 +1,5 @@ //: generics/UseList2.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class UseList2 { diff --git a/generics/WatercolorSets.java b/generics/WatercolorSets.java index f126ee23..d841a434 100644 --- a/generics/WatercolorSets.java +++ b/generics/WatercolorSets.java @@ -1,4 +1,5 @@ //: generics/WatercolorSets.java +// ©2015 MindView LLC: see Copyright.txt import generics.watercolors.*; import java.util.*; import static net.mindview.util.Print.*; diff --git a/generics/Wildcards.java b/generics/Wildcards.java index 847b248b..765c73a6 100644 --- a/generics/Wildcards.java +++ b/generics/Wildcards.java @@ -1,4 +1,5 @@ //: generics/Wildcards.java +// ©2015 MindView LLC: see Copyright.txt // Exploring the meaning of wildcards. public class Wildcards { diff --git a/generics/coffee/Americano.java b/generics/coffee/Americano.java index 51ad82f1..acfabe91 100644 --- a/generics/coffee/Americano.java +++ b/generics/coffee/Americano.java @@ -1,3 +1,4 @@ //: generics/coffee/Americano.java +// ©2015 MindView LLC: see Copyright.txt package generics.coffee; public class Americano extends Coffee {} ///:~ diff --git a/generics/coffee/Breve.java b/generics/coffee/Breve.java index 8c28e3fd..e558dabd 100644 --- a/generics/coffee/Breve.java +++ b/generics/coffee/Breve.java @@ -1,3 +1,4 @@ //: generics/coffee/Breve.java +// ©2015 MindView LLC: see Copyright.txt package generics.coffee; public class Breve extends Coffee {} ///:~ diff --git a/generics/coffee/Cappuccino.java b/generics/coffee/Cappuccino.java index 8e961ed7..493bb565 100644 --- a/generics/coffee/Cappuccino.java +++ b/generics/coffee/Cappuccino.java @@ -1,3 +1,4 @@ //: generics/coffee/Cappuccino.java +// ©2015 MindView LLC: see Copyright.txt package generics.coffee; public class Cappuccino extends Coffee {} ///:~ diff --git a/generics/coffee/Coffee.java b/generics/coffee/Coffee.java index 4990e025..2b623dfb 100644 --- a/generics/coffee/Coffee.java +++ b/generics/coffee/Coffee.java @@ -1,4 +1,5 @@ //: generics/coffee/Coffee.java +// ©2015 MindView LLC: see Copyright.txt package generics.coffee; public class Coffee { diff --git a/generics/coffee/CoffeeGenerator.java b/generics/coffee/CoffeeGenerator.java index 87a626c9..ed7a571d 100644 --- a/generics/coffee/CoffeeGenerator.java +++ b/generics/coffee/CoffeeGenerator.java @@ -1,4 +1,5 @@ //: generics/coffee/CoffeeGenerator.java +// ©2015 MindView LLC: see Copyright.txt // Generate different types of Coffee: package generics.coffee; import java.util.*; diff --git a/generics/coffee/Latte.java b/generics/coffee/Latte.java index 4006f190..8f88bcad 100644 --- a/generics/coffee/Latte.java +++ b/generics/coffee/Latte.java @@ -1,3 +1,4 @@ //: generics/coffee/Latte.java +// ©2015 MindView LLC: see Copyright.txt package generics.coffee; public class Latte extends Coffee {} ///:~ diff --git a/generics/coffee/Mocha.java b/generics/coffee/Mocha.java index 6bf8b297..541d9186 100644 --- a/generics/coffee/Mocha.java +++ b/generics/coffee/Mocha.java @@ -1,3 +1,4 @@ //: generics/coffee/Mocha.java +// ©2015 MindView LLC: see Copyright.txt package generics.coffee; public class Mocha extends Coffee {} ///:~ diff --git a/generics/decorator/Decoration.java b/generics/decorator/Decoration.java index 52f3ba77..38f1bb0c 100644 --- a/generics/decorator/Decoration.java +++ b/generics/decorator/Decoration.java @@ -1,4 +1,5 @@ //: generics/decorator/Decoration.java +// ©2015 MindView LLC: see Copyright.txt package generics.decorator; import java.util.*; diff --git a/generics/watercolors/Watercolors.java b/generics/watercolors/Watercolors.java index e6657db6..f931bab5 100644 --- a/generics/watercolors/Watercolors.java +++ b/generics/watercolors/Watercolors.java @@ -1,4 +1,5 @@ //: generics/watercolors/Watercolors.java +// ©2015 MindView LLC: see Copyright.txt package generics.watercolors; public enum Watercolors { diff --git a/gui/BorderLayout1.java b/gui/BorderLayout1.java index 0b46d264..8cc82c8d 100644 --- a/gui/BorderLayout1.java +++ b/gui/BorderLayout1.java @@ -1,4 +1,5 @@ //: gui/BorderLayout1.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates BorderLayout. import javax.swing.*; import java.awt.*; diff --git a/gui/Borders.java b/gui/Borders.java index 3f77aee1..43025ead 100644 --- a/gui/Borders.java +++ b/gui/Borders.java @@ -1,4 +1,5 @@ //: gui/Borders.java +// ©2015 MindView LLC: see Copyright.txt // Different Swing borders. import javax.swing.*; import javax.swing.border.*; diff --git a/gui/Button1.java b/gui/Button1.java index 25451a0a..3304abde 100644 --- a/gui/Button1.java +++ b/gui/Button1.java @@ -1,4 +1,5 @@ //: gui/Button1.java +// ©2015 MindView LLC: see Copyright.txt // Putting buttons on a Swing application. import javax.swing.*; import java.awt.*; diff --git a/gui/Button2.java b/gui/Button2.java index f855c2a5..20aa2a01 100644 --- a/gui/Button2.java +++ b/gui/Button2.java @@ -1,4 +1,5 @@ //: gui/Button2.java +// ©2015 MindView LLC: see Copyright.txt // Responding to button presses. import javax.swing.*; import java.awt.*; diff --git a/gui/Button2b.java b/gui/Button2b.java index a1e7612c..96f7bebf 100644 --- a/gui/Button2b.java +++ b/gui/Button2b.java @@ -1,4 +1,5 @@ //: gui/Button2b.java +// ©2015 MindView LLC: see Copyright.txt // Using anonymous inner classes. import javax.swing.*; import java.awt.*; diff --git a/gui/ButtonGroups.java b/gui/ButtonGroups.java index 94140c83..c126b299 100644 --- a/gui/ButtonGroups.java +++ b/gui/ButtonGroups.java @@ -1,4 +1,5 @@ //: gui/ButtonGroups.java +// ©2015 MindView LLC: see Copyright.txt // Uses reflection to create groups // of different types of AbstractButton. import javax.swing.*; diff --git a/gui/Buttons.java b/gui/Buttons.java index 2aa9cbab..58e0ea54 100644 --- a/gui/Buttons.java +++ b/gui/Buttons.java @@ -1,4 +1,5 @@ //: gui/Buttons.java +// ©2015 MindView LLC: see Copyright.txt // Various Swing buttons. import javax.swing.*; import javax.swing.border.*; diff --git a/gui/CheckBoxes.java b/gui/CheckBoxes.java index 504b2ca7..184a570a 100644 --- a/gui/CheckBoxes.java +++ b/gui/CheckBoxes.java @@ -1,4 +1,5 @@ //: gui/CheckBoxes.java +// ©2015 MindView LLC: see Copyright.txt // Using JCheckBoxes. import javax.swing.*; import java.awt.*; diff --git a/gui/ColorBoxes.java b/gui/ColorBoxes.java index 81d08f01..8af5a462 100644 --- a/gui/ColorBoxes.java +++ b/gui/ColorBoxes.java @@ -1,4 +1,5 @@ //: gui/ColorBoxes.java +// ©2015 MindView LLC: see Copyright.txt // A visual demonstration of threading. import javax.swing.*; import java.awt.*; diff --git a/gui/ComboBoxes.java b/gui/ComboBoxes.java index 48e4d694..a516fbc1 100644 --- a/gui/ComboBoxes.java +++ b/gui/ComboBoxes.java @@ -1,4 +1,5 @@ //: gui/ComboBoxes.java +// ©2015 MindView LLC: see Copyright.txt // Using drop-down lists. import javax.swing.*; import java.awt.*; diff --git a/gui/Dialogs.java b/gui/Dialogs.java index 8fa54856..22ba132d 100644 --- a/gui/Dialogs.java +++ b/gui/Dialogs.java @@ -1,4 +1,5 @@ //: gui/Dialogs.java +// ©2015 MindView LLC: see Copyright.txt // Creating and using Dialog Boxes. import javax.swing.*; import java.awt.*; diff --git a/gui/Faces.java b/gui/Faces.java index efb56438..08ba2785 100644 --- a/gui/Faces.java +++ b/gui/Faces.java @@ -1,4 +1,5 @@ //: gui/Faces.java +// ©2015 MindView LLC: see Copyright.txt // Icon behavior in JButtons. import javax.swing.*; import java.awt.*; diff --git a/gui/FileChooserTest.java b/gui/FileChooserTest.java index 6a52033a..9dfbe659 100644 --- a/gui/FileChooserTest.java +++ b/gui/FileChooserTest.java @@ -1,4 +1,5 @@ //: gui/FileChooserTest.java +// ©2015 MindView LLC: see Copyright.txt // Demonstration of File dialog boxes. import javax.swing.*; import java.awt.*; diff --git a/gui/FlowLayout1.java b/gui/FlowLayout1.java index b37804b9..889765d4 100644 --- a/gui/FlowLayout1.java +++ b/gui/FlowLayout1.java @@ -1,4 +1,5 @@ //: gui/FlowLayout1.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates FlowLayout. import javax.swing.*; import java.awt.*; diff --git a/gui/GridLayout1.java b/gui/GridLayout1.java index 7d9ba572..ac468f3f 100644 --- a/gui/GridLayout1.java +++ b/gui/GridLayout1.java @@ -1,4 +1,5 @@ //: gui/GridLayout1.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates GridLayout. import javax.swing.*; import java.awt.*; diff --git a/gui/HTMLButton.java b/gui/HTMLButton.java index 79d43b82..bebea040 100644 --- a/gui/HTMLButton.java +++ b/gui/HTMLButton.java @@ -1,4 +1,5 @@ //: gui/HTMLButton.java +// ©2015 MindView LLC: see Copyright.txt // Putting HTML text on Swing components. import javax.swing.*; import java.awt.*; diff --git a/gui/HelloLabel.java b/gui/HelloLabel.java index 277abe32..ebd5e5c3 100644 --- a/gui/HelloLabel.java +++ b/gui/HelloLabel.java @@ -1,4 +1,5 @@ //: gui/HelloLabel.java +// ©2015 MindView LLC: see Copyright.txt import javax.swing.*; import java.util.concurrent.*; diff --git a/gui/HelloSwing.java b/gui/HelloSwing.java index ae52b67e..2f546741 100644 --- a/gui/HelloSwing.java +++ b/gui/HelloSwing.java @@ -1,4 +1,5 @@ //: gui/HelloSwing.java +// ©2015 MindView LLC: see Copyright.txt import javax.swing.*; public class HelloSwing { diff --git a/gui/InterruptableLongRunningCallable.java b/gui/InterruptableLongRunningCallable.java index 9d668bef..03905256 100644 --- a/gui/InterruptableLongRunningCallable.java +++ b/gui/InterruptableLongRunningCallable.java @@ -1,4 +1,5 @@ //: gui/InterruptableLongRunningCallable.java +// ©2015 MindView LLC: see Copyright.txt // Using Callables for long-running tasks. import javax.swing.*; import java.awt.*; diff --git a/gui/InterruptableLongRunningTask.java b/gui/InterruptableLongRunningTask.java index 1fc8907d..95301d87 100644 --- a/gui/InterruptableLongRunningTask.java +++ b/gui/InterruptableLongRunningTask.java @@ -1,4 +1,5 @@ //: gui/InterruptableLongRunningTask.java +// ©2015 MindView LLC: see Copyright.txt // Long-running tasks in threads. import javax.swing.*; import java.awt.*; diff --git a/gui/List.java b/gui/List.java index fa34f01e..d829c8ce 100644 --- a/gui/List.java +++ b/gui/List.java @@ -1,4 +1,5 @@ //: gui/List.java +// ©2015 MindView LLC: see Copyright.txt import javax.swing.*; import javax.swing.border.*; import javax.swing.event.*; diff --git a/gui/LongRunningTask.java b/gui/LongRunningTask.java index 3a03346c..7700aeb7 100644 --- a/gui/LongRunningTask.java +++ b/gui/LongRunningTask.java @@ -1,4 +1,5 @@ //: gui/LongRunningTask.java +// ©2015 MindView LLC: see Copyright.txt // A badly designed program. import javax.swing.*; import java.awt.*; diff --git a/gui/LookAndFeel.java b/gui/LookAndFeel.java index 348a5bbe..9b61dd0a 100644 --- a/gui/LookAndFeel.java +++ b/gui/LookAndFeel.java @@ -1,4 +1,5 @@ //: gui/LookAndFeel.java +// ©2015 MindView LLC: see Copyright.txt // Selecting different looks & feels. // {Args: motif} import javax.swing.*; diff --git a/gui/Menus.java b/gui/Menus.java index 2e115485..4e51fcc8 100644 --- a/gui/Menus.java +++ b/gui/Menus.java @@ -1,4 +1,5 @@ //: gui/Menus.java +// ©2015 MindView LLC: see Copyright.txt // Submenus, check box menu items, swapping menus, // mnemonics (shortcuts) and action commands. import javax.swing.*; diff --git a/gui/MessageBoxes.java b/gui/MessageBoxes.java index 1a3f033a..33fd9db3 100644 --- a/gui/MessageBoxes.java +++ b/gui/MessageBoxes.java @@ -1,4 +1,5 @@ //: gui/MessageBoxes.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates JOptionPane. import javax.swing.*; import java.awt.*; diff --git a/gui/MonitoredLongRunningCallable.java b/gui/MonitoredLongRunningCallable.java index a6493b32..26f0f2ac 100644 --- a/gui/MonitoredLongRunningCallable.java +++ b/gui/MonitoredLongRunningCallable.java @@ -1,4 +1,5 @@ //: gui/MonitoredLongRunningCallable.java +// ©2015 MindView LLC: see Copyright.txt // Displaying task progress with ProgressMonitors. import javax.swing.*; import java.awt.*; diff --git a/gui/Popup.java b/gui/Popup.java index 87fc3aa0..f6ee5f88 100644 --- a/gui/Popup.java +++ b/gui/Popup.java @@ -1,4 +1,5 @@ //: gui/Popup.java +// ©2015 MindView LLC: see Copyright.txt // Creating popup menus with Swing. import javax.swing.*; import java.awt.*; diff --git a/gui/Progress.java b/gui/Progress.java index 1aaa3937..d01e972a 100644 --- a/gui/Progress.java +++ b/gui/Progress.java @@ -1,4 +1,5 @@ //: gui/Progress.java +// ©2015 MindView LLC: see Copyright.txt // Using sliders, progress bars and progress monitors. import javax.swing.*; import javax.swing.border.*; diff --git a/gui/RadioButtons.java b/gui/RadioButtons.java index 75d172f5..865eaaf4 100644 --- a/gui/RadioButtons.java +++ b/gui/RadioButtons.java @@ -1,4 +1,5 @@ //: gui/RadioButtons.java +// ©2015 MindView LLC: see Copyright.txt // Using JRadioButtons. import javax.swing.*; import java.awt.*; diff --git a/gui/ShowAddListeners.java b/gui/ShowAddListeners.java index 6e215fe5..83d3c482 100644 --- a/gui/ShowAddListeners.java +++ b/gui/ShowAddListeners.java @@ -1,4 +1,5 @@ //: gui/ShowAddListeners.java +// ©2015 MindView LLC: see Copyright.txt // Display the "addXXXListener" methods of any Swing class. import javax.swing.*; import java.awt.*; diff --git a/gui/SimpleMenus.java b/gui/SimpleMenus.java index 1f7870fe..78980e94 100644 --- a/gui/SimpleMenus.java +++ b/gui/SimpleMenus.java @@ -1,4 +1,5 @@ //: gui/SimpleMenus.java +// ©2015 MindView LLC: see Copyright.txt import javax.swing.*; import java.awt.*; import java.awt.event.*; diff --git a/gui/SineWave.java b/gui/SineWave.java index b1e9b31b..35b750c1 100644 --- a/gui/SineWave.java +++ b/gui/SineWave.java @@ -1,4 +1,5 @@ //: gui/SineWave.java +// ©2015 MindView LLC: see Copyright.txt // Drawing with Swing, using a JSlider. import javax.swing.*; import javax.swing.event.*; diff --git a/gui/SubmitLabelManipulationTask.java b/gui/SubmitLabelManipulationTask.java index 1bc7258b..546512d0 100644 --- a/gui/SubmitLabelManipulationTask.java +++ b/gui/SubmitLabelManipulationTask.java @@ -1,4 +1,5 @@ //: gui/SubmitLabelManipulationTask.java +// ©2015 MindView LLC: see Copyright.txt import javax.swing.*; import java.util.concurrent.*; diff --git a/gui/SubmitSwingProgram.java b/gui/SubmitSwingProgram.java index 377602b8..19cad32b 100644 --- a/gui/SubmitSwingProgram.java +++ b/gui/SubmitSwingProgram.java @@ -1,4 +1,5 @@ //: gui/SubmitSwingProgram.java +// ©2015 MindView LLC: see Copyright.txt import javax.swing.*; import java.util.concurrent.*; diff --git a/gui/TabbedPane1.java b/gui/TabbedPane1.java index bf9bcb5f..7c8e4649 100644 --- a/gui/TabbedPane1.java +++ b/gui/TabbedPane1.java @@ -1,4 +1,5 @@ //: gui/TabbedPane1.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates the Tabbed Pane. import javax.swing.*; import java.awt.*; diff --git a/gui/TextArea.java b/gui/TextArea.java index 0174312b..c9e1484a 100644 --- a/gui/TextArea.java +++ b/gui/TextArea.java @@ -1,4 +1,5 @@ //: gui/TextArea.java +// ©2015 MindView LLC: see Copyright.txt // Using the JTextArea control. import javax.swing.*; import java.awt.*; diff --git a/gui/TextFields.java b/gui/TextFields.java index 08b586d4..8b7d48b5 100644 --- a/gui/TextFields.java +++ b/gui/TextFields.java @@ -1,4 +1,5 @@ //: gui/TextFields.java +// ©2015 MindView LLC: see Copyright.txt // Text fields and Java events. import javax.swing.*; import javax.swing.event.*; diff --git a/gui/TextPane.java b/gui/TextPane.java index 57e20081..fd9a1da2 100644 --- a/gui/TextPane.java +++ b/gui/TextPane.java @@ -1,4 +1,5 @@ //: gui/TextPane.java +// ©2015 MindView LLC: see Copyright.txt // The JTextPane control is a little editor. import javax.swing.*; import java.awt.*; diff --git a/gui/TicTacToe.java b/gui/TicTacToe.java index 2c2ef3f4..799ff08e 100644 --- a/gui/TicTacToe.java +++ b/gui/TicTacToe.java @@ -1,4 +1,5 @@ //: gui/TicTacToe.java +// ©2015 MindView LLC: see Copyright.txt // Dialog boxes and creating your own components. import javax.swing.*; import java.awt.*; diff --git a/gui/TrackEvent.java b/gui/TrackEvent.java index 9f55e2d5..93178b24 100644 --- a/gui/TrackEvent.java +++ b/gui/TrackEvent.java @@ -1,4 +1,5 @@ //: gui/TrackEvent.java +// ©2015 MindView LLC: see Copyright.txt // Show events as they happen. import javax.swing.*; import java.awt.*; diff --git a/holding/AdapterMethodIdiom.java b/holding/AdapterMethodIdiom.java index 4f2aefe2..348f5393 100644 --- a/holding/AdapterMethodIdiom.java +++ b/holding/AdapterMethodIdiom.java @@ -1,4 +1,5 @@ //: holding/AdapterMethodIdiom.java +// ©2015 MindView LLC: see Copyright.txt // The "Adapter Method" idiom uses foreach // with additional kinds of Iterables. import java.util.*; diff --git a/holding/AddingGroups.java b/holding/AddingGroups.java index fff940b9..bd7db5fb 100644 --- a/holding/AddingGroups.java +++ b/holding/AddingGroups.java @@ -1,4 +1,5 @@ //: holding/AddingGroups.java +// ©2015 MindView LLC: see Copyright.txt // Adding groups of elements to Collection objects. import java.util.*; diff --git a/holding/ApplesAndOrangesWithGenerics.java b/holding/ApplesAndOrangesWithGenerics.java index 4d3fbed2..307a227f 100644 --- a/holding/ApplesAndOrangesWithGenerics.java +++ b/holding/ApplesAndOrangesWithGenerics.java @@ -1,4 +1,5 @@ //: holding/ApplesAndOrangesWithGenerics.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class ApplesAndOrangesWithGenerics { diff --git a/holding/ApplesAndOrangesWithoutGenerics.java b/holding/ApplesAndOrangesWithoutGenerics.java index f9c5e930..cbb02f20 100644 --- a/holding/ApplesAndOrangesWithoutGenerics.java +++ b/holding/ApplesAndOrangesWithoutGenerics.java @@ -1,4 +1,5 @@ //: holding/ApplesAndOrangesWithoutGenerics.java +// ©2015 MindView LLC: see Copyright.txt // Simple container example (produces compiler warnings). // {ThrowsException} import java.util.*; diff --git a/holding/ArrayIsNotIterable.java b/holding/ArrayIsNotIterable.java index 2ee2b6c6..43315f41 100644 --- a/holding/ArrayIsNotIterable.java +++ b/holding/ArrayIsNotIterable.java @@ -1,4 +1,5 @@ //: holding/ArrayIsNotIterable.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class ArrayIsNotIterable { diff --git a/holding/AsListInference.java b/holding/AsListInference.java index 77b7378c..d8093b89 100644 --- a/holding/AsListInference.java +++ b/holding/AsListInference.java @@ -1,4 +1,5 @@ //: holding/AsListInference.java +// ©2015 MindView LLC: see Copyright.txt // Arrays.asList() makes its best guess about type. import java.util.*; diff --git a/holding/CollectionSequence.java b/holding/CollectionSequence.java index 2d33ace0..a274cedd 100644 --- a/holding/CollectionSequence.java +++ b/holding/CollectionSequence.java @@ -1,4 +1,5 @@ //: holding/CollectionSequence.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; import java.util.*; diff --git a/holding/ContainerMethods.java b/holding/ContainerMethods.java index 740c637e..cb1f2a79 100644 --- a/holding/ContainerMethods.java +++ b/holding/ContainerMethods.java @@ -1,4 +1,5 @@ //: holding/ContainerMethods.java +// ©2015 MindView LLC: see Copyright.txt import net.mindview.util.*; public class ContainerMethods { diff --git a/holding/CrossContainerIteration.java b/holding/CrossContainerIteration.java index d01f9aed..a6a7f0b5 100644 --- a/holding/CrossContainerIteration.java +++ b/holding/CrossContainerIteration.java @@ -1,4 +1,5 @@ //: holding/CrossContainerIteration.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; import java.util.*; diff --git a/holding/EnvironmentVariables.java b/holding/EnvironmentVariables.java index 1bc00d3e..955ea725 100644 --- a/holding/EnvironmentVariables.java +++ b/holding/EnvironmentVariables.java @@ -1,4 +1,5 @@ //: holding/EnvironmentVariables.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class EnvironmentVariables { diff --git a/holding/ForEachCollections.java b/holding/ForEachCollections.java index 3b235b28..7afcde35 100644 --- a/holding/ForEachCollections.java +++ b/holding/ForEachCollections.java @@ -1,4 +1,5 @@ //: holding/ForEachCollections.java +// ©2015 MindView LLC: see Copyright.txt // All collections work with foreach. import java.util.*; diff --git a/holding/GenericsAndUpcasting.java b/holding/GenericsAndUpcasting.java index 98bd2470..c7c48b5f 100644 --- a/holding/GenericsAndUpcasting.java +++ b/holding/GenericsAndUpcasting.java @@ -1,4 +1,5 @@ //: holding/GenericsAndUpcasting.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; class GrannySmith extends Apple {} diff --git a/holding/InterfaceVsIterator.java b/holding/InterfaceVsIterator.java index cdefc4ec..1765ea70 100644 --- a/holding/InterfaceVsIterator.java +++ b/holding/InterfaceVsIterator.java @@ -1,4 +1,5 @@ //: holding/InterfaceVsIterator.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; import java.util.*; diff --git a/holding/IterableClass.java b/holding/IterableClass.java index 777cdf79..280a35b5 100644 --- a/holding/IterableClass.java +++ b/holding/IterableClass.java @@ -1,4 +1,5 @@ //: holding/IterableClass.java +// ©2015 MindView LLC: see Copyright.txt // Anything Iterable works with foreach. import java.util.*; diff --git a/holding/LinkedListFeatures.java b/holding/LinkedListFeatures.java index 264046aa..36c5c0f4 100644 --- a/holding/LinkedListFeatures.java +++ b/holding/LinkedListFeatures.java @@ -1,4 +1,5 @@ //: holding/LinkedListFeatures.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; import java.util.*; import static net.mindview.util.Print.*; diff --git a/holding/ListFeatures.java b/holding/ListFeatures.java index e5c8ccb0..42f71ad9 100644 --- a/holding/ListFeatures.java +++ b/holding/ListFeatures.java @@ -1,4 +1,5 @@ //: holding/ListFeatures.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; import java.util.*; import static net.mindview.util.Print.*; diff --git a/holding/ListIteration.java b/holding/ListIteration.java index 9bf818a5..ed3b353e 100644 --- a/holding/ListIteration.java +++ b/holding/ListIteration.java @@ -1,4 +1,5 @@ //: holding/ListIteration.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; import java.util.*; diff --git a/holding/MapOfList.java b/holding/MapOfList.java index 8b123121..d89dcb7c 100644 --- a/holding/MapOfList.java +++ b/holding/MapOfList.java @@ -1,4 +1,5 @@ //: holding/MapOfList.java +// ©2015 MindView LLC: see Copyright.txt package holding; import typeinfo.pets.*; import java.util.*; diff --git a/holding/ModifyingArraysAsList.java b/holding/ModifyingArraysAsList.java index 3f57d4d1..445378cd 100644 --- a/holding/ModifyingArraysAsList.java +++ b/holding/ModifyingArraysAsList.java @@ -1,4 +1,5 @@ //: holding/ModifyingArraysAsList.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class ModifyingArraysAsList { diff --git a/holding/MultiIterableClass.java b/holding/MultiIterableClass.java index 9b605900..2f74499f 100644 --- a/holding/MultiIterableClass.java +++ b/holding/MultiIterableClass.java @@ -1,4 +1,5 @@ //: holding/MultiIterableClass.java +// ©2015 MindView LLC: see Copyright.txt // Adding several Adapter Methods. import java.util.*; diff --git a/holding/NonCollectionSequence.java b/holding/NonCollectionSequence.java index ec404894..83930d53 100644 --- a/holding/NonCollectionSequence.java +++ b/holding/NonCollectionSequence.java @@ -1,4 +1,5 @@ //: holding/NonCollectionSequence.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; import java.util.*; diff --git a/holding/PetMap.java b/holding/PetMap.java index 9ee13d71..8593072b 100644 --- a/holding/PetMap.java +++ b/holding/PetMap.java @@ -1,4 +1,5 @@ //: holding/PetMap.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; import java.util.*; import static net.mindview.util.Print.*; diff --git a/holding/PrintingContainers.java b/holding/PrintingContainers.java index f2780712..4e7f0e57 100644 --- a/holding/PrintingContainers.java +++ b/holding/PrintingContainers.java @@ -1,4 +1,5 @@ //: holding/PrintingContainers.java +// ©2015 MindView LLC: see Copyright.txt // Containers print themselves automatically. import java.util.*; import static net.mindview.util.Print.*; diff --git a/holding/PriorityQueueDemo.java b/holding/PriorityQueueDemo.java index 61906220..588a7171 100644 --- a/holding/PriorityQueueDemo.java +++ b/holding/PriorityQueueDemo.java @@ -1,4 +1,5 @@ //: holding/PriorityQueueDemo.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class PriorityQueueDemo { diff --git a/holding/QueueDemo.java b/holding/QueueDemo.java index 1995fdf6..49bd9367 100644 --- a/holding/QueueDemo.java +++ b/holding/QueueDemo.java @@ -1,4 +1,5 @@ //: holding/QueueDemo.java +// ©2015 MindView LLC: see Copyright.txt // Upcasting to a Queue from a LinkedList. import java.util.*; diff --git a/holding/SetOfInteger.java b/holding/SetOfInteger.java index c2e089f2..feab6cb7 100644 --- a/holding/SetOfInteger.java +++ b/holding/SetOfInteger.java @@ -1,4 +1,5 @@ //: holding/SetOfInteger.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class SetOfInteger { diff --git a/holding/SetOperations.java b/holding/SetOperations.java index 626dcb05..4cae4575 100644 --- a/holding/SetOperations.java +++ b/holding/SetOperations.java @@ -1,4 +1,5 @@ //: holding/SetOperations.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; import static net.mindview.util.Print.*; diff --git a/holding/SimpleCollection.java b/holding/SimpleCollection.java index d4c11188..e0ebe1a6 100644 --- a/holding/SimpleCollection.java +++ b/holding/SimpleCollection.java @@ -1,4 +1,5 @@ //: holding/SimpleCollection.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class SimpleCollection { diff --git a/holding/SimpleIteration.java b/holding/SimpleIteration.java index 817291f5..5844a7ae 100644 --- a/holding/SimpleIteration.java +++ b/holding/SimpleIteration.java @@ -1,4 +1,5 @@ //: holding/SimpleIteration.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; import java.util.*; diff --git a/holding/SortedSetOfInteger.java b/holding/SortedSetOfInteger.java index e7074855..27664044 100644 --- a/holding/SortedSetOfInteger.java +++ b/holding/SortedSetOfInteger.java @@ -1,4 +1,5 @@ //: holding/SortedSetOfInteger.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class SortedSetOfInteger { diff --git a/holding/StackCollision.java b/holding/StackCollision.java index f344b3a9..b1f4bd72 100644 --- a/holding/StackCollision.java +++ b/holding/StackCollision.java @@ -1,4 +1,5 @@ //: holding/StackCollision.java +// ©2015 MindView LLC: see Copyright.txt public class StackCollision { public static void main(String[] args) { diff --git a/holding/StackTest.java b/holding/StackTest.java index 3c25446e..783af667 100644 --- a/holding/StackTest.java +++ b/holding/StackTest.java @@ -1,4 +1,5 @@ //: holding/StackTest.java +// ©2015 MindView LLC: see Copyright.txt import net.mindview.util.*; public class StackTest { diff --git a/holding/Statistics.java b/holding/Statistics.java index 134e9069..33dd8a81 100644 --- a/holding/Statistics.java +++ b/holding/Statistics.java @@ -1,4 +1,5 @@ //: holding/Statistics.java +// ©2015 MindView LLC: see Copyright.txt // Simple demonstration of HashMap. import java.util.*; diff --git a/holding/UniqueWords.java b/holding/UniqueWords.java index 295eaf06..8a078eab 100644 --- a/holding/UniqueWords.java +++ b/holding/UniqueWords.java @@ -1,4 +1,5 @@ //: holding/UniqueWords.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; import net.mindview.util.*; diff --git a/holding/UniqueWordsAlphabetic.java b/holding/UniqueWordsAlphabetic.java index 57930166..6b1494cb 100644 --- a/holding/UniqueWordsAlphabetic.java +++ b/holding/UniqueWordsAlphabetic.java @@ -1,4 +1,5 @@ //: holding/UniqueWordsAlphabetic.java +// ©2015 MindView LLC: see Copyright.txt // Producing an alphabetic listing. import java.util.*; import net.mindview.util.*; diff --git a/initialization/Apricot.java b/initialization/Apricot.java index 0e6faef8..5af00e2e 100644 --- a/initialization/Apricot.java +++ b/initialization/Apricot.java @@ -1,4 +1,5 @@ //: initialization/Apricot.java +// ©2015 MindView LLC: see Copyright.txt public class Apricot { void pick() { /* ... */ } void pit() { pick(); /* ... */ } diff --git a/initialization/ArrayClassObj.java b/initialization/ArrayClassObj.java index 658d6085..bb1c52ff 100644 --- a/initialization/ArrayClassObj.java +++ b/initialization/ArrayClassObj.java @@ -1,4 +1,5 @@ //: initialization/ArrayClassObj.java +// ©2015 MindView LLC: see Copyright.txt // Creating an array of nonprimitive objects. import java.util.*; import static net.mindview.util.Print.*; diff --git a/initialization/ArrayInit.java b/initialization/ArrayInit.java index 304643f0..1126d72e 100644 --- a/initialization/ArrayInit.java +++ b/initialization/ArrayInit.java @@ -1,4 +1,5 @@ //: initialization/ArrayInit.java +// ©2015 MindView LLC: see Copyright.txt // Array initialization. import java.util.*; diff --git a/initialization/ArrayNew.java b/initialization/ArrayNew.java index 69c3a1e8..ee41d442 100644 --- a/initialization/ArrayNew.java +++ b/initialization/ArrayNew.java @@ -1,4 +1,5 @@ //: initialization/ArrayNew.java +// ©2015 MindView LLC: see Copyright.txt // Creating arrays with new. import java.util.*; import static net.mindview.util.Print.*; diff --git a/initialization/ArraysOfPrimitives.java b/initialization/ArraysOfPrimitives.java index 254707ca..a559ef20 100644 --- a/initialization/ArraysOfPrimitives.java +++ b/initialization/ArraysOfPrimitives.java @@ -1,4 +1,5 @@ //: initialization/ArraysOfPrimitives.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; public class ArraysOfPrimitives { diff --git a/initialization/AutoboxingVarargs.java b/initialization/AutoboxingVarargs.java index 6c955537..2ac39326 100644 --- a/initialization/AutoboxingVarargs.java +++ b/initialization/AutoboxingVarargs.java @@ -1,4 +1,5 @@ //: initialization/AutoboxingVarargs.java +// ©2015 MindView LLC: see Copyright.txt public class AutoboxingVarargs { public static void f(Integer... args) { diff --git a/initialization/BananaPeel.java b/initialization/BananaPeel.java index 3930cb82..a39b195a 100644 --- a/initialization/BananaPeel.java +++ b/initialization/BananaPeel.java @@ -1,4 +1,5 @@ //: initialization/BananaPeel.java +// ©2015 MindView LLC: see Copyright.txt class Banana { void peel(int i) { /* ... */ } } diff --git a/initialization/Burrito.java b/initialization/Burrito.java index 8be824e8..402b4ba4 100644 --- a/initialization/Burrito.java +++ b/initialization/Burrito.java @@ -1,4 +1,5 @@ //: initialization/Burrito.java +// ©2015 MindView LLC: see Copyright.txt public class Burrito { Spiciness degree; diff --git a/initialization/Counter.java b/initialization/Counter.java index b4096995..6e730214 100644 --- a/initialization/Counter.java +++ b/initialization/Counter.java @@ -1,4 +1,5 @@ //: initialization/Counter.java +// ©2015 MindView LLC: see Copyright.txt public class Counter { int i; Counter() { i = 7; } diff --git a/initialization/DefaultConstructor.java b/initialization/DefaultConstructor.java index 0691a357..56c9df41 100644 --- a/initialization/DefaultConstructor.java +++ b/initialization/DefaultConstructor.java @@ -1,4 +1,5 @@ //: initialization/DefaultConstructor.java +// ©2015 MindView LLC: see Copyright.txt class Bird {} diff --git a/initialization/Demotion.java b/initialization/Demotion.java index 7cece5ff..d8634ae9 100644 --- a/initialization/Demotion.java +++ b/initialization/Demotion.java @@ -1,4 +1,5 @@ //: initialization/Demotion.java +// ©2015 MindView LLC: see Copyright.txt // Demotion of primitives and overloading. import static net.mindview.util.Print.*; diff --git a/initialization/DynamicArray.java b/initialization/DynamicArray.java index dd4ddef9..1a09078d 100644 --- a/initialization/DynamicArray.java +++ b/initialization/DynamicArray.java @@ -1,4 +1,5 @@ //: initialization/DynamicArray.java +// ©2015 MindView LLC: see Copyright.txt // Array initialization. public class DynamicArray { diff --git a/initialization/EnumOrder.java b/initialization/EnumOrder.java index cb532df7..def8abe6 100644 --- a/initialization/EnumOrder.java +++ b/initialization/EnumOrder.java @@ -1,4 +1,5 @@ //: initialization/EnumOrder.java +// ©2015 MindView LLC: see Copyright.txt public class EnumOrder { public static void main(String[] args) { diff --git a/initialization/ExplicitStatic.java b/initialization/ExplicitStatic.java index 3abab2b2..4689960e 100644 --- a/initialization/ExplicitStatic.java +++ b/initialization/ExplicitStatic.java @@ -1,4 +1,5 @@ //: initialization/ExplicitStatic.java +// ©2015 MindView LLC: see Copyright.txt // Explicit static initialization with the "static" clause. import static net.mindview.util.Print.*; diff --git a/initialization/Flower.java b/initialization/Flower.java index 2ad38e07..5d94a834 100644 --- a/initialization/Flower.java +++ b/initialization/Flower.java @@ -1,4 +1,5 @@ //: initialization/Flower.java +// ©2015 MindView LLC: see Copyright.txt // Calling constructors with "this" import static net.mindview.util.Print.*; diff --git a/initialization/InitialValues.java b/initialization/InitialValues.java index a90b0c6f..4c88eb61 100644 --- a/initialization/InitialValues.java +++ b/initialization/InitialValues.java @@ -1,4 +1,5 @@ //: initialization/InitialValues.java +// ©2015 MindView LLC: see Copyright.txt // Shows default initial values. import static net.mindview.util.Print.*; diff --git a/initialization/InitialValues2.java b/initialization/InitialValues2.java index c453947a..11d9a685 100644 --- a/initialization/InitialValues2.java +++ b/initialization/InitialValues2.java @@ -1,4 +1,5 @@ //: initialization/InitialValues2.java +// ©2015 MindView LLC: see Copyright.txt // Providing explicit initial values. public class InitialValues2 { diff --git a/initialization/Leaf.java b/initialization/Leaf.java index 04c0423f..3cec4c1f 100644 --- a/initialization/Leaf.java +++ b/initialization/Leaf.java @@ -1,4 +1,5 @@ //: initialization/Leaf.java +// ©2015 MindView LLC: see Copyright.txt // Simple use of the "this" keyword. public class Leaf { diff --git a/initialization/Measurement.java b/initialization/Measurement.java index e0824eb8..bd3dbedc 100644 --- a/initialization/Measurement.java +++ b/initialization/Measurement.java @@ -1,4 +1,5 @@ //: initialization/Measurement.java +// ©2015 MindView LLC: see Copyright.txt class Depth {} public class Measurement { diff --git a/initialization/MethodInit.java b/initialization/MethodInit.java index af32932f..9debec4b 100644 --- a/initialization/MethodInit.java +++ b/initialization/MethodInit.java @@ -1,4 +1,5 @@ //: initialization/MethodInit.java +// ©2015 MindView LLC: see Copyright.txt public class MethodInit { int i = f(); int f() { return 11; } diff --git a/initialization/MethodInit2.java b/initialization/MethodInit2.java index 7dec2169..19795c52 100644 --- a/initialization/MethodInit2.java +++ b/initialization/MethodInit2.java @@ -1,4 +1,5 @@ //: initialization/MethodInit2.java +// ©2015 MindView LLC: see Copyright.txt public class MethodInit2 { int i = f(); int j = g(i); diff --git a/initialization/MethodInit3.java b/initialization/MethodInit3.java index 4ec45f6a..c95540de 100644 --- a/initialization/MethodInit3.java +++ b/initialization/MethodInit3.java @@ -1,4 +1,5 @@ //: initialization/MethodInit3.java +// ©2015 MindView LLC: see Copyright.txt public class MethodInit3 { //! int j = g(i); // Illegal forward reference int i = f(); diff --git a/initialization/Mugs.java b/initialization/Mugs.java index 9af159b4..097112f5 100644 --- a/initialization/Mugs.java +++ b/initialization/Mugs.java @@ -1,4 +1,5 @@ //: initialization/Mugs.java +// ©2015 MindView LLC: see Copyright.txt // Java "Instance Initialization." import static net.mindview.util.Print.*; diff --git a/initialization/NewVarArgs.java b/initialization/NewVarArgs.java index 85878086..f27d1faf 100644 --- a/initialization/NewVarArgs.java +++ b/initialization/NewVarArgs.java @@ -1,4 +1,5 @@ //: initialization/NewVarArgs.java +// ©2015 MindView LLC: see Copyright.txt // Using array syntax to create variable argument lists. public class NewVarArgs { diff --git a/initialization/NoSynthesis.java b/initialization/NoSynthesis.java index c1f8a53b..4658c545 100644 --- a/initialization/NoSynthesis.java +++ b/initialization/NoSynthesis.java @@ -1,4 +1,5 @@ //: initialization/NoSynthesis.java +// ©2015 MindView LLC: see Copyright.txt class Bird2 { Bird2(int i) {} diff --git a/initialization/OptionalTrailingArguments.java b/initialization/OptionalTrailingArguments.java index 81a705a7..c5662a35 100644 --- a/initialization/OptionalTrailingArguments.java +++ b/initialization/OptionalTrailingArguments.java @@ -1,4 +1,5 @@ //: initialization/OptionalTrailingArguments.java +// ©2015 MindView LLC: see Copyright.txt public class OptionalTrailingArguments { static void f(int required, String... trailing) { diff --git a/initialization/OrderOfInitialization.java b/initialization/OrderOfInitialization.java index 8bd653e3..487cb52d 100644 --- a/initialization/OrderOfInitialization.java +++ b/initialization/OrderOfInitialization.java @@ -1,4 +1,5 @@ //: initialization/OrderOfInitialization.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates initialization order. import static net.mindview.util.Print.*; diff --git a/initialization/Overloading.java b/initialization/Overloading.java index 5c182a4a..86ab7e63 100644 --- a/initialization/Overloading.java +++ b/initialization/Overloading.java @@ -1,4 +1,5 @@ //: initialization/Overloading.java +// ©2015 MindView LLC: see Copyright.txt // Demonstration of both constructor // and ordinary method overloading. import static net.mindview.util.Print.*; diff --git a/initialization/OverloadingOrder.java b/initialization/OverloadingOrder.java index bd8de050..ea50ce6d 100644 --- a/initialization/OverloadingOrder.java +++ b/initialization/OverloadingOrder.java @@ -1,4 +1,5 @@ //: initialization/OverloadingOrder.java +// ©2015 MindView LLC: see Copyright.txt // Overloading based on the order of the arguments. import static net.mindview.util.Print.*; diff --git a/initialization/OverloadingVarargs.java b/initialization/OverloadingVarargs.java index a64a79bb..40a14f0f 100644 --- a/initialization/OverloadingVarargs.java +++ b/initialization/OverloadingVarargs.java @@ -1,4 +1,5 @@ //: initialization/OverloadingVarargs.java +// ©2015 MindView LLC: see Copyright.txt public class OverloadingVarargs { static void f(Character... args) { diff --git a/initialization/OverloadingVarargs2.java b/initialization/OverloadingVarargs2.java index d1f66162..2ac50514 100644 --- a/initialization/OverloadingVarargs2.java +++ b/initialization/OverloadingVarargs2.java @@ -1,4 +1,5 @@ //: initialization/OverloadingVarargs2.java +// ©2015 MindView LLC: see Copyright.txt // {CompileTimeError} (Won't compile) public class OverloadingVarargs2 { diff --git a/initialization/OverloadingVarargs3.java b/initialization/OverloadingVarargs3.java index e498ca9b..20ebb221 100644 --- a/initialization/OverloadingVarargs3.java +++ b/initialization/OverloadingVarargs3.java @@ -1,4 +1,5 @@ //: initialization/OverloadingVarargs3.java +// ©2015 MindView LLC: see Copyright.txt public class OverloadingVarargs3 { static void f(float i, Character... args) { diff --git a/initialization/PassingThis.java b/initialization/PassingThis.java index d909e07e..31dae6ac 100644 --- a/initialization/PassingThis.java +++ b/initialization/PassingThis.java @@ -1,4 +1,5 @@ //: initialization/PassingThis.java +// ©2015 MindView LLC: see Copyright.txt class Person { public void eat(Apple apple) { diff --git a/initialization/PrimitiveOverloading.java b/initialization/PrimitiveOverloading.java index 39b43b13..d7e140c7 100644 --- a/initialization/PrimitiveOverloading.java +++ b/initialization/PrimitiveOverloading.java @@ -1,4 +1,5 @@ //: initialization/PrimitiveOverloading.java +// ©2015 MindView LLC: see Copyright.txt // Promotion of primitives and overloading. import static net.mindview.util.Print.*; diff --git a/initialization/SimpleConstructor.java b/initialization/SimpleConstructor.java index 98878443..e9f1c5ae 100644 --- a/initialization/SimpleConstructor.java +++ b/initialization/SimpleConstructor.java @@ -1,4 +1,5 @@ //: initialization/SimpleConstructor.java +// ©2015 MindView LLC: see Copyright.txt // Demonstration of a simple constructor. class Rock { diff --git a/initialization/SimpleConstructor2.java b/initialization/SimpleConstructor2.java index 4df2e3e0..505779dc 100644 --- a/initialization/SimpleConstructor2.java +++ b/initialization/SimpleConstructor2.java @@ -1,4 +1,5 @@ //: initialization/SimpleConstructor2.java +// ©2015 MindView LLC: see Copyright.txt // Constructors can have arguments. class Rock2 { diff --git a/initialization/SimpleEnumUse.java b/initialization/SimpleEnumUse.java index 1a635a78..487634f1 100644 --- a/initialization/SimpleEnumUse.java +++ b/initialization/SimpleEnumUse.java @@ -1,4 +1,5 @@ //: initialization/SimpleEnumUse.java +// ©2015 MindView LLC: see Copyright.txt public class SimpleEnumUse { public static void main(String[] args) { diff --git a/initialization/Spiciness.java b/initialization/Spiciness.java index b2b38172..1bd537a2 100644 --- a/initialization/Spiciness.java +++ b/initialization/Spiciness.java @@ -1,4 +1,5 @@ //: initialization/Spiciness.java +// ©2015 MindView LLC: see Copyright.txt public enum Spiciness { NOT, MILD, MEDIUM, HOT, FLAMING diff --git a/initialization/Spoon.java b/initialization/Spoon.java index f3f0736d..6c851a72 100644 --- a/initialization/Spoon.java +++ b/initialization/Spoon.java @@ -1,4 +1,5 @@ //: initialization/Spoon.java +// ©2015 MindView LLC: see Copyright.txt public class Spoon { static int i; static { diff --git a/initialization/StaticInitialization.java b/initialization/StaticInitialization.java index 3fe0c9b1..6d6e3a2b 100644 --- a/initialization/StaticInitialization.java +++ b/initialization/StaticInitialization.java @@ -1,4 +1,5 @@ //: initialization/StaticInitialization.java +// ©2015 MindView LLC: see Copyright.txt // Specifying initial values in a class definition. import static net.mindview.util.Print.*; diff --git a/initialization/TerminationCondition.java b/initialization/TerminationCondition.java index 4fa2935d..1988b3a1 100644 --- a/initialization/TerminationCondition.java +++ b/initialization/TerminationCondition.java @@ -1,4 +1,5 @@ //: initialization/TerminationCondition.java +// ©2015 MindView LLC: see Copyright.txt // Using finalize() to detect an object that // hasn't been properly cleaned up. diff --git a/initialization/VarArgs.java b/initialization/VarArgs.java index 56b06dd8..2ecbdcf1 100644 --- a/initialization/VarArgs.java +++ b/initialization/VarArgs.java @@ -1,4 +1,5 @@ //: initialization/VarArgs.java +// ©2015 MindView LLC: see Copyright.txt // Using array syntax to create variable argument lists. class A {} diff --git a/initialization/VarargType.java b/initialization/VarargType.java index e20d5233..9fbfe63f 100644 --- a/initialization/VarargType.java +++ b/initialization/VarargType.java @@ -1,4 +1,5 @@ //: initialization/VarargType.java +// ©2015 MindView LLC: see Copyright.txt public class VarargType { static void f(Character... args) { diff --git a/innerclasses/AnonymousConstructor.java b/innerclasses/AnonymousConstructor.java index 80af26d0..4e4343b7 100644 --- a/innerclasses/AnonymousConstructor.java +++ b/innerclasses/AnonymousConstructor.java @@ -1,4 +1,5 @@ //: innerclasses/AnonymousConstructor.java +// ©2015 MindView LLC: see Copyright.txt // Creating a constructor for an anonymous inner class. import static net.mindview.util.Print.*; diff --git a/innerclasses/ArgReturnReferences.java b/innerclasses/ArgReturnReferences.java index 2cef7df5..47b846e6 100644 --- a/innerclasses/ArgReturnReferences.java +++ b/innerclasses/ArgReturnReferences.java @@ -1,5 +1,7 @@ //: innerclasses/ArgReturnReferences.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates method references +package innerclasses; import java.util.function.*; import static net.mindview.util.Print.*; diff --git a/innerclasses/BigEgg.java b/innerclasses/BigEgg.java index b640530c..0684d042 100644 --- a/innerclasses/BigEgg.java +++ b/innerclasses/BigEgg.java @@ -1,4 +1,5 @@ //: innerclasses/BigEgg.java +// ©2015 MindView LLC: see Copyright.txt // An inner class cannot be overriden like a method. import static net.mindview.util.Print.*; diff --git a/innerclasses/BigEgg2.java b/innerclasses/BigEgg2.java index 4ff4fc96..0e7804a4 100644 --- a/innerclasses/BigEgg2.java +++ b/innerclasses/BigEgg2.java @@ -1,4 +1,5 @@ //: innerclasses/BigEgg2.java +// ©2015 MindView LLC: see Copyright.txt // Proper inheritance of an inner class. import static net.mindview.util.Print.*; diff --git a/innerclasses/Callbacks.java b/innerclasses/Callbacks.java index 8abc6278..cd08516c 100644 --- a/innerclasses/Callbacks.java +++ b/innerclasses/Callbacks.java @@ -1,4 +1,5 @@ //: innerclasses/Callbacks.java +// ©2015 MindView LLC: see Copyright.txt // Using inner classes for callbacks package innerclasses; import static net.mindview.util.Print.*; diff --git a/innerclasses/ClassInInterface.java b/innerclasses/ClassInInterface.java index fb5f196b..07b44983 100644 --- a/innerclasses/ClassInInterface.java +++ b/innerclasses/ClassInInterface.java @@ -1,4 +1,5 @@ //: innerclasses/ClassInInterface.java +// ©2015 MindView LLC: see Copyright.txt // {main: ClassInInterface$Test} public interface ClassInInterface { diff --git a/innerclasses/Contents.java b/innerclasses/Contents.java index 4cf9b830..8f279867 100644 --- a/innerclasses/Contents.java +++ b/innerclasses/Contents.java @@ -1,4 +1,5 @@ //: innerclasses/Contents.java +// ©2015 MindView LLC: see Copyright.txt public interface Contents { int value(); } ///:~ diff --git a/innerclasses/CtorReference.java b/innerclasses/CtorReference.java index 86b807dc..f2e40025 100644 --- a/innerclasses/CtorReference.java +++ b/innerclasses/CtorReference.java @@ -1,4 +1,5 @@ //: innerclasses/CtorReference.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates java.util.function import java.util.function.*; import static net.mindview.util.Print.*; diff --git a/innerclasses/Destination.java b/innerclasses/Destination.java index ae2bc423..b364e970 100644 --- a/innerclasses/Destination.java +++ b/innerclasses/Destination.java @@ -1,4 +1,5 @@ //: innerclasses/Destination.java +// ©2015 MindView LLC: see Copyright.txt public interface Destination { String readLabel(); } ///:~ diff --git a/innerclasses/DotNew.java b/innerclasses/DotNew.java index 5996f608..deb44ca2 100644 --- a/innerclasses/DotNew.java +++ b/innerclasses/DotNew.java @@ -1,4 +1,5 @@ //: innerclasses/DotNew.java +// ©2015 MindView LLC: see Copyright.txt // Creating an inner class directly using the .new syntax. public class DotNew { diff --git a/innerclasses/DotThis.java b/innerclasses/DotThis.java index 3030a5f6..6c88ae75 100644 --- a/innerclasses/DotThis.java +++ b/innerclasses/DotThis.java @@ -1,4 +1,5 @@ //: innerclasses/DotThis.java +// ©2015 MindView LLC: see Copyright.txt // Qualifying access to the outer-class object. public class DotThis { diff --git a/innerclasses/Factories.java b/innerclasses/Factories.java index 81eb59fd..9895b005 100644 --- a/innerclasses/Factories.java +++ b/innerclasses/Factories.java @@ -1,4 +1,5 @@ //: innerclasses/Factories.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; interface Service { diff --git a/innerclasses/Games.java b/innerclasses/Games.java index 1f8b7a1f..26694dd1 100644 --- a/innerclasses/Games.java +++ b/innerclasses/Games.java @@ -1,4 +1,5 @@ //: innerclasses/Games.java +// ©2015 MindView LLC: see Copyright.txt // Using anonymous inner classes with the Game framework. import static net.mindview.util.Print.*; diff --git a/innerclasses/GreenhouseController.java b/innerclasses/GreenhouseController.java index 466352a6..127cc319 100644 --- a/innerclasses/GreenhouseController.java +++ b/innerclasses/GreenhouseController.java @@ -1,4 +1,5 @@ //: innerclasses/GreenhouseController.java +// ©2015 MindView LLC: see Copyright.txt // Configure and execute the greenhouse system. // {Args: 5000} import innerclasses.controller.*; diff --git a/innerclasses/GreenhouseControls.java b/innerclasses/GreenhouseControls.java index 2de66db2..bb93ff9b 100644 --- a/innerclasses/GreenhouseControls.java +++ b/innerclasses/GreenhouseControls.java @@ -1,4 +1,5 @@ //: innerclasses/GreenhouseControls.java +// ©2015 MindView LLC: see Copyright.txt // 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 790a8610..d554d339 100644 --- a/innerclasses/InheritInner.java +++ b/innerclasses/InheritInner.java @@ -1,4 +1,5 @@ //: innerclasses/InheritInner.java +// ©2015 MindView LLC: see Copyright.txt // Inheriting an inner class. class WithInner { diff --git a/innerclasses/LambdaExpressions.java b/innerclasses/LambdaExpressions.java index 52561962..7b3225d2 100644 --- a/innerclasses/LambdaExpressions.java +++ b/innerclasses/LambdaExpressions.java @@ -1,4 +1,5 @@ //: innerclasses/LambdaExpressions.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; interface Description { diff --git a/innerclasses/LocalInnerClass.java b/innerclasses/LocalInnerClass.java index d45ec444..31506545 100644 --- a/innerclasses/LocalInnerClass.java +++ b/innerclasses/LocalInnerClass.java @@ -1,4 +1,5 @@ //: innerclasses/LocalInnerClass.java +// ©2015 MindView LLC: see Copyright.txt // Holds a sequence of Objects. import static net.mindview.util.Print.*; diff --git a/innerclasses/MethodReferences.java b/innerclasses/MethodReferences.java index 954e1228..b2154df2 100644 --- a/innerclasses/MethodReferences.java +++ b/innerclasses/MethodReferences.java @@ -1,4 +1,5 @@ //: innerclasses/MethodReferences.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class MethodReferences { diff --git a/innerclasses/MultiImplementation.java b/innerclasses/MultiImplementation.java index fe067a9a..bff395b4 100644 --- a/innerclasses/MultiImplementation.java +++ b/innerclasses/MultiImplementation.java @@ -1,4 +1,5 @@ //: innerclasses/MultiImplementation.java +// ©2015 MindView LLC: see Copyright.txt // With concrete or abstract classes, inner // classes are the only way to produce the effect // of "multiple implementation inheritance." diff --git a/innerclasses/MultiNestingAccess.java b/innerclasses/MultiNestingAccess.java index b2511cc7..1c9a0dd2 100644 --- a/innerclasses/MultiNestingAccess.java +++ b/innerclasses/MultiNestingAccess.java @@ -1,4 +1,5 @@ //: innerclasses/MultiNestingAccess.java +// ©2015 MindView LLC: see Copyright.txt // 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 7ad6db41..4b68f81a 100644 --- a/innerclasses/Parcel1.java +++ b/innerclasses/Parcel1.java @@ -1,4 +1,5 @@ //: innerclasses/Parcel1.java +// ©2015 MindView LLC: see Copyright.txt // Creating inner classes. public class Parcel1 { diff --git a/innerclasses/Parcel10.java b/innerclasses/Parcel10.java index 2b6a648c..85edda48 100644 --- a/innerclasses/Parcel10.java +++ b/innerclasses/Parcel10.java @@ -1,4 +1,5 @@ //: innerclasses/Parcel10.java +// ©2015 MindView LLC: see Copyright.txt // Using "instance initialization" to perform // construction on an anonymous inner class. diff --git a/innerclasses/Parcel11.java b/innerclasses/Parcel11.java index 3476ddc8..53264a15 100644 --- a/innerclasses/Parcel11.java +++ b/innerclasses/Parcel11.java @@ -1,4 +1,5 @@ //: innerclasses/Parcel11.java +// ©2015 MindView LLC: see Copyright.txt // Nested classes (static inner classes). public class Parcel11 { diff --git a/innerclasses/Parcel2.java b/innerclasses/Parcel2.java index f4f0324b..beb7e1ad 100644 --- a/innerclasses/Parcel2.java +++ b/innerclasses/Parcel2.java @@ -1,4 +1,5 @@ //: innerclasses/Parcel2.java +// ©2015 MindView LLC: see Copyright.txt // Returning a reference to an inner class. public class Parcel2 { diff --git a/innerclasses/Parcel3.java b/innerclasses/Parcel3.java index 0d98c42d..3fa51d25 100644 --- a/innerclasses/Parcel3.java +++ b/innerclasses/Parcel3.java @@ -1,4 +1,5 @@ //: innerclasses/Parcel3.java +// ©2015 MindView LLC: see Copyright.txt // Using .new to create instances of inner classes. public class Parcel3 { diff --git a/innerclasses/Parcel5.java b/innerclasses/Parcel5.java index 9f752841..6453d34d 100644 --- a/innerclasses/Parcel5.java +++ b/innerclasses/Parcel5.java @@ -1,4 +1,5 @@ //: innerclasses/Parcel5.java +// ©2015 MindView LLC: see Copyright.txt // Nesting a class within a method. public class Parcel5 { diff --git a/innerclasses/Parcel6.java b/innerclasses/Parcel6.java index e8c7014e..1cf6199c 100644 --- a/innerclasses/Parcel6.java +++ b/innerclasses/Parcel6.java @@ -1,4 +1,5 @@ //: innerclasses/Parcel6.java +// ©2015 MindView LLC: see Copyright.txt // Nesting a class within a scope. public class Parcel6 { diff --git a/innerclasses/Parcel7.java b/innerclasses/Parcel7.java index 333dbd8c..6862fe67 100644 --- a/innerclasses/Parcel7.java +++ b/innerclasses/Parcel7.java @@ -1,4 +1,5 @@ //: innerclasses/Parcel7.java +// ©2015 MindView LLC: see Copyright.txt // Returning an instance of an anonymous inner class. public class Parcel7 { diff --git a/innerclasses/Parcel7b.java b/innerclasses/Parcel7b.java index 43fe4dee..9dbf2e45 100644 --- a/innerclasses/Parcel7b.java +++ b/innerclasses/Parcel7b.java @@ -1,4 +1,5 @@ //: innerclasses/Parcel7b.java +// ©2015 MindView LLC: see Copyright.txt // Expanded version of Parcel7.java public class Parcel7b { diff --git a/innerclasses/Parcel8.java b/innerclasses/Parcel8.java index 01495648..dce170c7 100644 --- a/innerclasses/Parcel8.java +++ b/innerclasses/Parcel8.java @@ -1,4 +1,5 @@ //: innerclasses/Parcel8.java +// ©2015 MindView LLC: see Copyright.txt // Calling the base-class constructor. public class Parcel8 { diff --git a/innerclasses/Parcel9.java b/innerclasses/Parcel9.java index f7edb7a9..b262f4a9 100644 --- a/innerclasses/Parcel9.java +++ b/innerclasses/Parcel9.java @@ -1,4 +1,5 @@ //: innerclasses/Parcel9.java +// ©2015 MindView LLC: see Copyright.txt // An anonymous inner class that performs // initialization. A briefer version of Parcel5.java. diff --git a/innerclasses/RunnableMethodReference.java b/innerclasses/RunnableMethodReference.java index e9a9646d..8570f347 100644 --- a/innerclasses/RunnableMethodReference.java +++ b/innerclasses/RunnableMethodReference.java @@ -1,4 +1,5 @@ //: innerclasses/RunnableMethodReference.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates method references import static net.mindview.util.Print.*; diff --git a/innerclasses/Sequence.java b/innerclasses/Sequence.java index d710df7e..faff03da 100644 --- a/innerclasses/Sequence.java +++ b/innerclasses/Sequence.java @@ -1,4 +1,5 @@ //: innerclasses/Sequence.java +// ©2015 MindView LLC: see Copyright.txt // Holds a sequence of Objects. interface Selector { diff --git a/innerclasses/TestBed.java b/innerclasses/TestBed.java index 886e8031..08372e64 100644 --- a/innerclasses/TestBed.java +++ b/innerclasses/TestBed.java @@ -1,4 +1,5 @@ //: innerclasses/TestBed.java +// ©2015 MindView LLC: see Copyright.txt // Putting test code in a nested class. // {main: TestBed$Tester} diff --git a/innerclasses/TestParcel.java b/innerclasses/TestParcel.java index 7e55b2c6..a0f61fef 100644 --- a/innerclasses/TestParcel.java +++ b/innerclasses/TestParcel.java @@ -1,4 +1,5 @@ //: innerclasses/TestParcel.java +// ©2015 MindView LLC: see Copyright.txt class Parcel4 { private class PContents implements Contents { diff --git a/innerclasses/UnboundMethodReference.java b/innerclasses/UnboundMethodReference.java index 8973e954..41399acd 100644 --- a/innerclasses/UnboundMethodReference.java +++ b/innerclasses/UnboundMethodReference.java @@ -1,4 +1,5 @@ //: innerclasses/UnboundMethodReference.java +// ©2015 MindView LLC: see Copyright.txt // Method reference without an object. import java.util.*; import java.util.function.*; diff --git a/innerclasses/Wrapping.java b/innerclasses/Wrapping.java index cea314bd..4cdcc666 100644 --- a/innerclasses/Wrapping.java +++ b/innerclasses/Wrapping.java @@ -1,4 +1,5 @@ //: innerclasses/Wrapping.java +// ©2015 MindView LLC: see Copyright.txt public class Wrapping { private int i; public Wrapping(int x) { i = x; } diff --git a/innerclasses/build.xml b/innerclasses/build.xml index 89602857..c669f158 100644 --- a/innerclasses/build.xml +++ b/innerclasses/build.xml @@ -8,7 +8,7 @@ - + @@ -24,7 +24,6 @@ - @@ -42,6 +41,7 @@ + diff --git a/innerclasses/controller/Controller.java b/innerclasses/controller/Controller.java index a4cb0a82..a207326e 100644 --- a/innerclasses/controller/Controller.java +++ b/innerclasses/controller/Controller.java @@ -1,4 +1,5 @@ //: innerclasses/controller/Controller.java +// ©2015 MindView LLC: see Copyright.txt // 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 93a5ad94..1d60ae46 100644 --- a/innerclasses/controller/Event.java +++ b/innerclasses/controller/Event.java @@ -1,4 +1,5 @@ //: innerclasses/controller/Event.java +// ©2015 MindView LLC: see Copyright.txt // The common methods for any control event. package innerclasses.controller; diff --git a/interfaces/AdaptedRandomDoubles.java b/interfaces/AdaptedRandomDoubles.java index d775bad7..be905455 100644 --- a/interfaces/AdaptedRandomDoubles.java +++ b/interfaces/AdaptedRandomDoubles.java @@ -1,4 +1,5 @@ //: interfaces/AdaptedRandomDoubles.java +// ©2015 MindView LLC: see Copyright.txt // Creating an adapter with inheritance. import java.nio.*; import java.util.*; diff --git a/interfaces/Adventure.java b/interfaces/Adventure.java index 1dd05145..1af1e02e 100644 --- a/interfaces/Adventure.java +++ b/interfaces/Adventure.java @@ -1,4 +1,5 @@ //: interfaces/Adventure.java +// ©2015 MindView LLC: see Copyright.txt // Multiple interfaces. interface CanFight { diff --git a/interfaces/Factories.java b/interfaces/Factories.java index 815c4218..b03d7879 100644 --- a/interfaces/Factories.java +++ b/interfaces/Factories.java @@ -1,4 +1,5 @@ //: interfaces/Factories.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; interface Service { diff --git a/interfaces/Games.java b/interfaces/Games.java index 6690db8e..afd690b9 100644 --- a/interfaces/Games.java +++ b/interfaces/Games.java @@ -1,4 +1,5 @@ //: interfaces/Games.java +// ©2015 MindView LLC: see Copyright.txt // A Game framework using Factory Methods. import static net.mindview.util.Print.*; diff --git a/interfaces/HorrorShow.java b/interfaces/HorrorShow.java index 8d2f262a..16706028 100644 --- a/interfaces/HorrorShow.java +++ b/interfaces/HorrorShow.java @@ -1,4 +1,5 @@ //: interfaces/HorrorShow.java +// ©2015 MindView LLC: see Copyright.txt // Extending an interface with inheritance. interface Monster { diff --git a/interfaces/InterfaceCollision.java b/interfaces/InterfaceCollision.java index 3e6056d3..e28473e2 100644 --- a/interfaces/InterfaceCollision.java +++ b/interfaces/InterfaceCollision.java @@ -1,4 +1,5 @@ //: interfaces/InterfaceCollision.java +// ©2015 MindView LLC: see Copyright.txt package interfaces; interface I1 { void f(); } diff --git a/interfaces/Months.java b/interfaces/Months.java index ac53864d..c23760ae 100644 --- a/interfaces/Months.java +++ b/interfaces/Months.java @@ -1,4 +1,5 @@ //: interfaces/Months.java +// ©2015 MindView LLC: see Copyright.txt // Using interfaces to create groups of constants. package interfaces; diff --git a/interfaces/RandVals.java b/interfaces/RandVals.java index f22c4a08..82b40fe0 100644 --- a/interfaces/RandVals.java +++ b/interfaces/RandVals.java @@ -1,4 +1,5 @@ //: interfaces/RandVals.java +// ©2015 MindView LLC: see Copyright.txt // Initializing interface fields with // non-constant initializers. import java.util.*; diff --git a/interfaces/RandomDoubles.java b/interfaces/RandomDoubles.java index a70b8c57..3003f82a 100644 --- a/interfaces/RandomDoubles.java +++ b/interfaces/RandomDoubles.java @@ -1,4 +1,5 @@ //: interfaces/RandomDoubles.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class RandomDoubles { diff --git a/interfaces/RandomWords.java b/interfaces/RandomWords.java index 853d5084..e2e13dcf 100644 --- a/interfaces/RandomWords.java +++ b/interfaces/RandomWords.java @@ -1,4 +1,5 @@ //: interfaces/RandomWords.java +// ©2015 MindView LLC: see Copyright.txt // 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 175ad595..720d4503 100644 --- a/interfaces/TestRandVals.java +++ b/interfaces/TestRandVals.java @@ -1,4 +1,5 @@ //: interfaces/TestRandVals.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; public class TestRandVals { diff --git a/interfaces/classprocessor/Apply.java b/interfaces/classprocessor/Apply.java index f87317a5..821eeeeb 100644 --- a/interfaces/classprocessor/Apply.java +++ b/interfaces/classprocessor/Apply.java @@ -1,4 +1,5 @@ //: interfaces/classprocessor/Apply.java +// ©2015 MindView LLC: see Copyright.txt package interfaces.classprocessor; import java.util.*; import static net.mindview.util.Print.*; diff --git a/interfaces/filters/BandPass.java b/interfaces/filters/BandPass.java index e8b3645a..6f9e9132 100644 --- a/interfaces/filters/BandPass.java +++ b/interfaces/filters/BandPass.java @@ -1,4 +1,5 @@ //: interfaces/filters/BandPass.java +// ©2015 MindView LLC: see Copyright.txt package interfaces.filters; public class BandPass extends Filter { diff --git a/interfaces/filters/Filter.java b/interfaces/filters/Filter.java index 5a0bcba5..e637ada5 100644 --- a/interfaces/filters/Filter.java +++ b/interfaces/filters/Filter.java @@ -1,4 +1,5 @@ //: interfaces/filters/Filter.java +// ©2015 MindView LLC: see Copyright.txt package interfaces.filters; public class Filter { diff --git a/interfaces/filters/HighPass.java b/interfaces/filters/HighPass.java index 6a878fb8..af433363 100644 --- a/interfaces/filters/HighPass.java +++ b/interfaces/filters/HighPass.java @@ -1,4 +1,5 @@ //: interfaces/filters/HighPass.java +// ©2015 MindView LLC: see Copyright.txt package interfaces.filters; public class HighPass extends Filter { diff --git a/interfaces/filters/LowPass.java b/interfaces/filters/LowPass.java index 8b039b95..fafdfcd0 100644 --- a/interfaces/filters/LowPass.java +++ b/interfaces/filters/LowPass.java @@ -1,4 +1,5 @@ //: interfaces/filters/LowPass.java +// ©2015 MindView LLC: see Copyright.txt package interfaces.filters; public class LowPass extends Filter { diff --git a/interfaces/filters/Waveform.java b/interfaces/filters/Waveform.java index 3302c3c6..67c0cd6d 100644 --- a/interfaces/filters/Waveform.java +++ b/interfaces/filters/Waveform.java @@ -1,4 +1,5 @@ //: interfaces/filters/Waveform.java +// ©2015 MindView LLC: see Copyright.txt package interfaces.filters; public class Waveform { diff --git a/interfaces/interfaceprocessor/Apply.java b/interfaces/interfaceprocessor/Apply.java index 11fc9229..30f74457 100644 --- a/interfaces/interfaceprocessor/Apply.java +++ b/interfaces/interfaceprocessor/Apply.java @@ -1,4 +1,5 @@ //: interfaces/interfaceprocessor/Apply.java +// ©2015 MindView LLC: see Copyright.txt package interfaces.interfaceprocessor; import static net.mindview.util.Print.*; diff --git a/interfaces/interfaceprocessor/FilterProcessor.java b/interfaces/interfaceprocessor/FilterProcessor.java index ec3a39f3..419388d5 100644 --- a/interfaces/interfaceprocessor/FilterProcessor.java +++ b/interfaces/interfaceprocessor/FilterProcessor.java @@ -1,4 +1,5 @@ //: interfaces/interfaceprocessor/FilterProcessor.java +// ©2015 MindView LLC: see Copyright.txt package interfaces.interfaceprocessor; import interfaces.filters.*; diff --git a/interfaces/interfaceprocessor/Processor.java b/interfaces/interfaceprocessor/Processor.java index 8787ea45..cf33a5b5 100644 --- a/interfaces/interfaceprocessor/Processor.java +++ b/interfaces/interfaceprocessor/Processor.java @@ -1,4 +1,5 @@ //: interfaces/interfaceprocessor/Processor.java +// ©2015 MindView LLC: see Copyright.txt package interfaces.interfaceprocessor; public interface Processor { diff --git a/interfaces/interfaceprocessor/StringProcessor.java b/interfaces/interfaceprocessor/StringProcessor.java index 53113012..40a3ecd1 100644 --- a/interfaces/interfaceprocessor/StringProcessor.java +++ b/interfaces/interfaceprocessor/StringProcessor.java @@ -1,4 +1,5 @@ //: interfaces/interfaceprocessor/StringProcessor.java +// ©2015 MindView LLC: see Copyright.txt package interfaces.interfaceprocessor; import java.util.*; diff --git a/interfaces/music4/Music4.java b/interfaces/music4/Music4.java index 43f2373f..e0c8cc76 100644 --- a/interfaces/music4/Music4.java +++ b/interfaces/music4/Music4.java @@ -1,4 +1,5 @@ //: interfaces/music4/Music4.java +// ©2015 MindView LLC: see Copyright.txt // Abstract classes and methods. package interfaces.music4; import polymorphism.music.Note; diff --git a/interfaces/music5/Music5.java b/interfaces/music5/Music5.java index d9019cbe..4c62238e 100644 --- a/interfaces/music5/Music5.java +++ b/interfaces/music5/Music5.java @@ -1,4 +1,5 @@ //: interfaces/music5/Music5.java +// ©2015 MindView LLC: see Copyright.txt // Interfaces. package interfaces.music5; import polymorphism.music.Note; diff --git a/interfaces/nesting/NestingInterfaces.java b/interfaces/nesting/NestingInterfaces.java index 7b18c979..c30b1900 100644 --- a/interfaces/nesting/NestingInterfaces.java +++ b/interfaces/nesting/NestingInterfaces.java @@ -1,4 +1,5 @@ //: interfaces/nesting/NestingInterfaces.java +// ©2015 MindView LLC: see Copyright.txt package interfaces.nesting; class A { diff --git a/io/AStoreCADState.java b/io/AStoreCADState.java index 81e2cbbd..3de143d1 100644 --- a/io/AStoreCADState.java +++ b/io/AStoreCADState.java @@ -1,4 +1,5 @@ //: io/AStoreCADState.java +// ©2015 MindView LLC: see Copyright.txt // Saving the state of a pretend CAD system. import java.io.*; import java.util.*; diff --git a/io/Alien.java b/io/Alien.java index 486f41ca..81e3dec1 100644 --- a/io/Alien.java +++ b/io/Alien.java @@ -1,4 +1,5 @@ //: io/Alien.java +// ©2015 MindView LLC: see Copyright.txt // A serializable class. import java.io.*; public class Alien implements Serializable {} ///:~ diff --git a/io/AvailableCharSets.java b/io/AvailableCharSets.java index 0c6e1518..8853fd48 100644 --- a/io/AvailableCharSets.java +++ b/io/AvailableCharSets.java @@ -1,4 +1,5 @@ //: io/AvailableCharSets.java +// ©2015 MindView LLC: see Copyright.txt // Displays Charsets and aliases import java.nio.charset.*; import java.util.*; diff --git a/io/BasicFileOutput.java b/io/BasicFileOutput.java index e19920dc..0654cc9f 100644 --- a/io/BasicFileOutput.java +++ b/io/BasicFileOutput.java @@ -1,4 +1,5 @@ //: io/BasicFileOutput.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; public class BasicFileOutput { diff --git a/io/Blip3.java b/io/Blip3.java index a02197f1..f7885824 100644 --- a/io/Blip3.java +++ b/io/Blip3.java @@ -1,4 +1,5 @@ //: io/Blip3.java +// ©2015 MindView LLC: see Copyright.txt // Reconstructing an externalizable object. import java.io.*; import static net.mindview.util.Print.*; diff --git a/io/Blips.java b/io/Blips.java index 5c3f2694..eaa94d11 100644 --- a/io/Blips.java +++ b/io/Blips.java @@ -1,4 +1,5 @@ //: io/Blips.java +// ©2015 MindView LLC: see Copyright.txt // Simple use of Externalizable & a pitfall. import java.io.*; import static net.mindview.util.Print.*; diff --git a/io/BufferToText.java b/io/BufferToText.java index d0b9b0ff..840b2fe4 100644 --- a/io/BufferToText.java +++ b/io/BufferToText.java @@ -1,4 +1,5 @@ //: io/BufferToText.java +// ©2015 MindView LLC: see Copyright.txt // Converting text to and from ByteBuffers import java.nio.*; import java.nio.channels.*; diff --git a/io/BufferedInputFile.java b/io/BufferedInputFile.java index 00f0635b..2b45034a 100644 --- a/io/BufferedInputFile.java +++ b/io/BufferedInputFile.java @@ -1,4 +1,5 @@ //: io/BufferedInputFile.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; public class BufferedInputFile { diff --git a/io/ChangeSystemOut.java b/io/ChangeSystemOut.java index 1c750a10..b61adee2 100644 --- a/io/ChangeSystemOut.java +++ b/io/ChangeSystemOut.java @@ -1,4 +1,5 @@ //: io/ChangeSystemOut.java +// ©2015 MindView LLC: see Copyright.txt // Turn System.out into a PrintWriter. import java.io.*; diff --git a/io/ChannelCopy.java b/io/ChannelCopy.java index 2967e3ef..13229f44 100644 --- a/io/ChannelCopy.java +++ b/io/ChannelCopy.java @@ -1,4 +1,5 @@ //: io/ChannelCopy.java +// ©2015 MindView LLC: see Copyright.txt // Copying a file using channels and buffers // {Args: ChannelCopy.java test.txt} import java.nio.*; diff --git a/io/DirList.java b/io/DirList.java index 02589356..692913f2 100644 --- a/io/DirList.java +++ b/io/DirList.java @@ -1,4 +1,5 @@ //: io/DirList.java +// ©2015 MindView LLC: see Copyright.txt // Display a directory listing using regular expressions. // {Args: 'D.*\.java'} import java.util.regex.*; diff --git a/io/DirList2.java b/io/DirList2.java index d646303e..3b5a1451 100644 --- a/io/DirList2.java +++ b/io/DirList2.java @@ -1,4 +1,5 @@ //: io/DirList2.java +// ©2015 MindView LLC: see Copyright.txt // Uses anonymous inner classes. // {Args: 'D.*\.java'} import java.util.regex.*; diff --git a/io/DirList3.java b/io/DirList3.java index edef7170..783ee226 100644 --- a/io/DirList3.java +++ b/io/DirList3.java @@ -1,4 +1,5 @@ //: io/DirList3.java +// ©2015 MindView LLC: see Copyright.txt // Building the anonymous inner class "in-place." // {Args: 'D.*\.java'} import java.util.regex.*; diff --git a/io/DirectoryDemo.java b/io/DirectoryDemo.java index c3d6fe19..25acce42 100644 --- a/io/DirectoryDemo.java +++ b/io/DirectoryDemo.java @@ -1,4 +1,5 @@ //: io/DirectoryDemo.java +// ©2015 MindView LLC: see Copyright.txt // Sample use of Directory utilities. import java.io.*; import net.mindview.util.*; diff --git a/io/Echo.java b/io/Echo.java index ead399fa..a04c922b 100644 --- a/io/Echo.java +++ b/io/Echo.java @@ -1,4 +1,5 @@ //: io/Echo.java +// ©2015 MindView LLC: see Copyright.txt // How to read from standard input. // {TimeOutDuringTesting} import java.io.*; diff --git a/io/Endians.java b/io/Endians.java index 977d9a34..28a87273 100644 --- a/io/Endians.java +++ b/io/Endians.java @@ -1,4 +1,5 @@ //: io/Endians.java +// ©2015 MindView LLC: see Copyright.txt // Endian differences and data storage. import java.nio.*; import java.util.*; diff --git a/io/FileLocking.java b/io/FileLocking.java index 521839a2..41b65b60 100644 --- a/io/FileLocking.java +++ b/io/FileLocking.java @@ -1,4 +1,5 @@ //: io/FileLocking.java +// ©2015 MindView LLC: see Copyright.txt import java.nio.channels.*; import java.util.concurrent.*; import java.io.*; diff --git a/io/FileOutputShortcut.java b/io/FileOutputShortcut.java index 6c50bf78..e47bd39d 100644 --- a/io/FileOutputShortcut.java +++ b/io/FileOutputShortcut.java @@ -1,4 +1,5 @@ //: io/FileOutputShortcut.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; public class FileOutputShortcut { diff --git a/io/FormattedMemoryInput.java b/io/FormattedMemoryInput.java index c30ba561..cfdf907d 100644 --- a/io/FormattedMemoryInput.java +++ b/io/FormattedMemoryInput.java @@ -1,4 +1,5 @@ //: io/FormattedMemoryInput.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; public class FormattedMemoryInput { diff --git a/io/FreezeAlien.java b/io/FreezeAlien.java index 9d7ac116..8e3b677a 100644 --- a/io/FreezeAlien.java +++ b/io/FreezeAlien.java @@ -1,4 +1,5 @@ //: io/FreezeAlien.java +// ©2015 MindView LLC: see Copyright.txt // Create a serialized output file. import java.io.*; diff --git a/io/GZIPcompress.java b/io/GZIPcompress.java index 19ba78f5..e8abfde2 100644 --- a/io/GZIPcompress.java +++ b/io/GZIPcompress.java @@ -1,4 +1,5 @@ //: io/GZIPcompress.java +// ©2015 MindView LLC: see Copyright.txt // {Args: GZIPcompress.java} import java.util.zip.*; import java.io.*; diff --git a/io/GetChannel.java b/io/GetChannel.java index 727518af..177ec17f 100644 --- a/io/GetChannel.java +++ b/io/GetChannel.java @@ -1,4 +1,5 @@ //: io/GetChannel.java +// ©2015 MindView LLC: see Copyright.txt // Getting channels from streams import java.nio.*; import java.nio.channels.*; diff --git a/io/GetData.java b/io/GetData.java index 9051b361..d880e812 100644 --- a/io/GetData.java +++ b/io/GetData.java @@ -1,4 +1,5 @@ //: io/GetData.java +// ©2015 MindView LLC: see Copyright.txt // Getting different representations from a ByteBuffer import java.nio.*; import static net.mindview.util.Print.*; diff --git a/io/IntBufferDemo.java b/io/IntBufferDemo.java index 1cac9925..c8becd03 100644 --- a/io/IntBufferDemo.java +++ b/io/IntBufferDemo.java @@ -1,4 +1,5 @@ //: io/IntBufferDemo.java +// ©2015 MindView LLC: see Copyright.txt // Manipulating ints in a ByteBuffer with an IntBuffer import java.nio.*; diff --git a/io/LargeMappedFiles.java b/io/LargeMappedFiles.java index 277de180..6551215f 100644 --- a/io/LargeMappedFiles.java +++ b/io/LargeMappedFiles.java @@ -1,4 +1,5 @@ //: io/LargeMappedFiles.java +// ©2015 MindView LLC: see Copyright.txt // Creating a very large file using mapping. import java.nio.*; import java.nio.channels.*; diff --git a/io/LockingMappedFiles.java b/io/LockingMappedFiles.java index 8ef36170..664bbd50 100644 --- a/io/LockingMappedFiles.java +++ b/io/LockingMappedFiles.java @@ -1,4 +1,5 @@ //: io/LockingMappedFiles.java +// ©2015 MindView LLC: see Copyright.txt // Locking portions of a mapped file. import java.nio.*; import java.nio.channels.*; diff --git a/io/Logon.java b/io/Logon.java index f36eb44c..51f491b7 100644 --- a/io/Logon.java +++ b/io/Logon.java @@ -1,4 +1,5 @@ //: io/Logon.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates the "transient" keyword. import java.util.concurrent.*; import java.io.*; diff --git a/io/MakeDirectories.java b/io/MakeDirectories.java index 17b20be0..8e843ac4 100644 --- a/io/MakeDirectories.java +++ b/io/MakeDirectories.java @@ -1,4 +1,5 @@ //: io/MakeDirectories.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates using the File class to // create directories and manipulate files. // {Args: MakeDirectoriesTest} diff --git a/io/MappedIO.java b/io/MappedIO.java index 6c62f669..2f018d2e 100644 --- a/io/MappedIO.java +++ b/io/MappedIO.java @@ -1,4 +1,5 @@ //: io/MappedIO.java +// ©2015 MindView LLC: see Copyright.txt import java.nio.*; import java.nio.channels.*; import java.io.*; diff --git a/io/MemoryInput.java b/io/MemoryInput.java index d7bc63ac..52064049 100644 --- a/io/MemoryInput.java +++ b/io/MemoryInput.java @@ -1,4 +1,5 @@ //: io/MemoryInput.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; public class MemoryInput { diff --git a/io/MyWorld.java b/io/MyWorld.java index c4890302..3c13c8a5 100644 --- a/io/MyWorld.java +++ b/io/MyWorld.java @@ -1,4 +1,5 @@ //: io/MyWorld.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; import java.util.*; import static net.mindview.util.Print.*; diff --git a/io/OSExecuteDemo.java b/io/OSExecuteDemo.java index 9d19f33d..6f447483 100644 --- a/io/OSExecuteDemo.java +++ b/io/OSExecuteDemo.java @@ -1,4 +1,5 @@ //: io/OSExecuteDemo.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates standard I/O redirection. import net.mindview.util.*; diff --git a/io/PreferencesDemo.java b/io/PreferencesDemo.java index 79a87cbc..f9e37bb5 100644 --- a/io/PreferencesDemo.java +++ b/io/PreferencesDemo.java @@ -1,4 +1,5 @@ //: io/PreferencesDemo.java +// ©2015 MindView LLC: see Copyright.txt import java.util.prefs.*; import static net.mindview.util.Print.*; diff --git a/io/RecoverCADState.java b/io/RecoverCADState.java index 15a1dab9..3504c5ab 100644 --- a/io/RecoverCADState.java +++ b/io/RecoverCADState.java @@ -1,4 +1,5 @@ //: io/RecoverCADState.java +// ©2015 MindView LLC: see Copyright.txt // Restoring the state of the pretend CAD system. // {RunFirst: AStoreCADState} import java.io.*; diff --git a/io/Redirecting.java b/io/Redirecting.java index d4c9d0df..5affab68 100644 --- a/io/Redirecting.java +++ b/io/Redirecting.java @@ -1,4 +1,5 @@ //: io/Redirecting.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates standard I/O redirection. import java.io.*; diff --git a/io/SerialCtl.java b/io/SerialCtl.java index 9cf7430c..ca597609 100644 --- a/io/SerialCtl.java +++ b/io/SerialCtl.java @@ -1,4 +1,5 @@ //: io/SerialCtl.java +// ©2015 MindView LLC: see Copyright.txt // Controlling serialization by adding your own // writeObject() and readObject() methods. import java.io.*; diff --git a/io/StoringAndRecoveringData.java b/io/StoringAndRecoveringData.java index 59f73201..e01963b5 100644 --- a/io/StoringAndRecoveringData.java +++ b/io/StoringAndRecoveringData.java @@ -1,4 +1,5 @@ //: io/StoringAndRecoveringData.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; public class StoringAndRecoveringData { diff --git a/io/TestEOF.java b/io/TestEOF.java index c1612e9c..ae78e321 100644 --- a/io/TestEOF.java +++ b/io/TestEOF.java @@ -1,4 +1,5 @@ //: io/TestEOF.java +// ©2015 MindView LLC: see Copyright.txt // Testing for end of file while reading a byte at a time. import java.io.*; diff --git a/io/TransferTo.java b/io/TransferTo.java index ca84219b..7f39a944 100644 --- a/io/TransferTo.java +++ b/io/TransferTo.java @@ -1,4 +1,5 @@ //: io/TransferTo.java +// ©2015 MindView LLC: see Copyright.txt // Using transferTo() between channels // {Args: TransferTo.java TransferTo.txt} import java.nio.channels.*; diff --git a/io/UsingBuffers.java b/io/UsingBuffers.java index ddddaec2..1d8c921f 100644 --- a/io/UsingBuffers.java +++ b/io/UsingBuffers.java @@ -1,4 +1,5 @@ //: io/UsingBuffers.java +// ©2015 MindView LLC: see Copyright.txt import java.nio.*; import static net.mindview.util.Print.*; diff --git a/io/UsingRandomAccessFile.java b/io/UsingRandomAccessFile.java index da72d1f7..0e995109 100644 --- a/io/UsingRandomAccessFile.java +++ b/io/UsingRandomAccessFile.java @@ -1,4 +1,5 @@ //: io/UsingRandomAccessFile.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; public class UsingRandomAccessFile { diff --git a/io/ViewBuffers.java b/io/ViewBuffers.java index e77adcf5..0ef5e083 100644 --- a/io/ViewBuffers.java +++ b/io/ViewBuffers.java @@ -1,4 +1,5 @@ //: io/ViewBuffers.java +// ©2015 MindView LLC: see Copyright.txt import java.nio.*; import static net.mindview.util.Print.*; diff --git a/io/Worm.java b/io/Worm.java index 8f4341cc..a149f6e4 100644 --- a/io/Worm.java +++ b/io/Worm.java @@ -1,4 +1,5 @@ //: io/Worm.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates object serialization. import java.io.*; import java.util.*; diff --git a/io/ZipCompress.java b/io/ZipCompress.java index 60a65773..3cbbfa7e 100644 --- a/io/ZipCompress.java +++ b/io/ZipCompress.java @@ -1,4 +1,5 @@ //: io/ZipCompress.java +// ©2015 MindView LLC: see Copyright.txt // Uses Zip compression to compress any // number of files given on the command line. // {Args: ZipCompress.java} diff --git a/io/xfiles/ThawAlien.java b/io/xfiles/ThawAlien.java index a510654b..08035db1 100644 --- a/io/xfiles/ThawAlien.java +++ b/io/xfiles/ThawAlien.java @@ -1,4 +1,5 @@ //: io/xfiles/ThawAlien.java +// ©2015 MindView LLC: see Copyright.txt // Try to recover a serialized file without the // class of object that's stored in that file. // {ThrowsException} diff --git a/logging/ConfigureLogging.java b/logging/ConfigureLogging.java index 00a861c6..3b7fc767 100644 --- a/logging/ConfigureLogging.java +++ b/logging/ConfigureLogging.java @@ -1,4 +1,5 @@ //: logging/ConfigureLogging.java +// ©2015 MindView LLC: see Copyright.txt // {JVMArgs: -Djava.util.logging.config.file=log.prop} import java.util.logging.*; diff --git a/logging/CustomHandler.java b/logging/CustomHandler.java index b912f4e0..0cf979c7 100644 --- a/logging/CustomHandler.java +++ b/logging/CustomHandler.java @@ -1,4 +1,5 @@ //: logging/CustomHandler.java +// ©2015 MindView LLC: see Copyright.txt // How to write custom handler import java.util.logging.*; import java.util.*; diff --git a/logging/InfoLogging.java b/logging/InfoLogging.java index 6f15e77d..c4f673cc 100644 --- a/logging/InfoLogging.java +++ b/logging/InfoLogging.java @@ -1,4 +1,5 @@ //: logging/InfoLogging.java +// ©2015 MindView LLC: see Copyright.txt import java.util.logging.*; public class InfoLogging { diff --git a/logging/InfoLogging2.java b/logging/InfoLogging2.java index 414d0790..af77f4d8 100644 --- a/logging/InfoLogging2.java +++ b/logging/InfoLogging2.java @@ -1,4 +1,5 @@ //: logging/InfoLogging2.java +// ©2015 MindView LLC: see Copyright.txt // Guaranteeing proper class and method names import java.util.logging.*; diff --git a/logging/LogToFile.java b/logging/LogToFile.java index 75079d6e..f6d764d6 100644 --- a/logging/LogToFile.java +++ b/logging/LogToFile.java @@ -1,4 +1,5 @@ //: logging/LogToFile.java +// ©2015 MindView LLC: see Copyright.txt import java.util.logging.*; public class LogToFile { diff --git a/logging/LogToFile2.java b/logging/LogToFile2.java index 8ff8567b..dcfcec1c 100644 --- a/logging/LogToFile2.java +++ b/logging/LogToFile2.java @@ -1,4 +1,5 @@ //: logging/LogToFile2.java +// ©2015 MindView LLC: see Copyright.txt import java.util.logging.*; public class LogToFile2 { diff --git a/logging/LoggingLevelManipulation.java b/logging/LoggingLevelManipulation.java index c5cd1d1e..bd43de00 100644 --- a/logging/LoggingLevelManipulation.java +++ b/logging/LoggingLevelManipulation.java @@ -1,4 +1,5 @@ //: logging/LoggingLevelManipulation.java +// ©2015 MindView LLC: see Copyright.txt import java.util.logging.Level; import java.util.logging.Logger; diff --git a/logging/LoggingLevels.java b/logging/LoggingLevels.java index 988c2545..1e11fd27 100644 --- a/logging/LoggingLevels.java +++ b/logging/LoggingLevels.java @@ -1,4 +1,5 @@ //: logging/LoggingLevels.java +// ©2015 MindView LLC: see Copyright.txt import java.util.logging.Level; import java.util.logging.Logger; diff --git a/logging/MultipleHandlers.java b/logging/MultipleHandlers.java index 96a3b2b6..cda5d000 100644 --- a/logging/MultipleHandlers.java +++ b/logging/MultipleHandlers.java @@ -1,4 +1,5 @@ //: logging/MultipleHandlers.java +// ©2015 MindView LLC: see Copyright.txt import java.util.logging.*; public class MultipleHandlers { diff --git a/logging/MultipleHandlers2.java b/logging/MultipleHandlers2.java index 97057fca..d674a79a 100644 --- a/logging/MultipleHandlers2.java +++ b/logging/MultipleHandlers2.java @@ -1,4 +1,5 @@ //: logging/MultipleHandlers2.java +// ©2015 MindView LLC: see Copyright.txt import java.util.logging.*; public class MultipleHandlers2 { diff --git a/logging/PrintableLogRecord.java b/logging/PrintableLogRecord.java index cef3892b..b69f3844 100644 --- a/logging/PrintableLogRecord.java +++ b/logging/PrintableLogRecord.java @@ -1,4 +1,5 @@ //: logging/PrintableLogRecord.java +// ©2015 MindView LLC: see Copyright.txt // Override LogRecord toString() import java.util.logging.*; diff --git a/logging/SimpleFilter.java b/logging/SimpleFilter.java index a2f071ee..28054f66 100644 --- a/logging/SimpleFilter.java +++ b/logging/SimpleFilter.java @@ -1,4 +1,5 @@ //: logging/SimpleFilter.java +// ©2015 MindView LLC: see Copyright.txt import java.util.logging.*; public class SimpleFilter { diff --git a/logging/SimpleFormatterExample.java b/logging/SimpleFormatterExample.java index 9f0e32f4..4d17def4 100644 --- a/logging/SimpleFormatterExample.java +++ b/logging/SimpleFormatterExample.java @@ -1,4 +1,5 @@ //: logging/SimpleFormatterExample.java +// ©2015 MindView LLC: see Copyright.txt import java.util.logging.*; public class SimpleFormatterExample { diff --git a/logging/build.xml b/logging/build.xml index 17f9ed6b..bc59e0c6 100644 --- a/logging/build.xml +++ b/logging/build.xml @@ -2,7 +2,7 @@ - + diff --git a/net/mindview/atunit/AtUnit.java b/net/mindview/atunit/AtUnit.java index 022c33c3..a61dedbb 100644 --- a/net/mindview/atunit/AtUnit.java +++ b/net/mindview/atunit/AtUnit.java @@ -1,4 +1,5 @@ //: net/mindview/atunit/AtUnit.java +// ©2015 MindView LLC: see Copyright.txt // An annotation-based unit-test framework. package net.mindview.atunit; import java.lang.reflect.*; diff --git a/net/mindview/atunit/ClassNameFinder.java b/net/mindview/atunit/ClassNameFinder.java index baf76bb7..398367ed 100644 --- a/net/mindview/atunit/ClassNameFinder.java +++ b/net/mindview/atunit/ClassNameFinder.java @@ -1,4 +1,5 @@ //: net/mindview/atunit/ClassNameFinder.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.atunit; import java.io.*; import java.util.*; diff --git a/net/mindview/atunit/Test.java b/net/mindview/atunit/Test.java index 8fe76ff4..2835c811 100644 --- a/net/mindview/atunit/Test.java +++ b/net/mindview/atunit/Test.java @@ -1,4 +1,5 @@ //: net/mindview/atunit/Test.java +// ©2015 MindView LLC: see Copyright.txt // The @Test tag. package net.mindview.atunit; import java.lang.annotation.*; diff --git a/net/mindview/atunit/TestObjectCleanup.java b/net/mindview/atunit/TestObjectCleanup.java index 96ec997c..66ff3d32 100644 --- a/net/mindview/atunit/TestObjectCleanup.java +++ b/net/mindview/atunit/TestObjectCleanup.java @@ -1,4 +1,5 @@ //: net/mindview/atunit/TestObjectCleanup.java +// ©2015 MindView LLC: see Copyright.txt // The @Unit @TestObjectCleanup tag. package net.mindview.atunit; import java.lang.annotation.*; diff --git a/net/mindview/atunit/TestObjectCreate.java b/net/mindview/atunit/TestObjectCreate.java index d9951d81..cdb6b4f6 100644 --- a/net/mindview/atunit/TestObjectCreate.java +++ b/net/mindview/atunit/TestObjectCreate.java @@ -1,4 +1,5 @@ //: net/mindview/atunit/TestObjectCreate.java +// ©2015 MindView LLC: see Copyright.txt // The @Unit @TestObjectCreate tag. package net.mindview.atunit; import java.lang.annotation.*; diff --git a/net/mindview/atunit/TestProperty.java b/net/mindview/atunit/TestProperty.java index aa521325..83f48490 100644 --- a/net/mindview/atunit/TestProperty.java +++ b/net/mindview/atunit/TestProperty.java @@ -1,4 +1,5 @@ //: net/mindview/atunit/TestProperty.java +// ©2015 MindView LLC: see Copyright.txt // The @Unit @TestProperty tag. package net.mindview.atunit; import java.lang.annotation.*; diff --git a/net/mindview/simple/List.java b/net/mindview/simple/List.java index 751797e6..f9e91dc0 100644 --- a/net/mindview/simple/List.java +++ b/net/mindview/simple/List.java @@ -1,4 +1,5 @@ //: net/mindview/simple/List.java +// ©2015 MindView LLC: see Copyright.txt // Creating a package. package net.mindview.simple; diff --git a/net/mindview/simple/Vector.java b/net/mindview/simple/Vector.java index 38b39931..793657c2 100644 --- a/net/mindview/simple/Vector.java +++ b/net/mindview/simple/Vector.java @@ -1,4 +1,5 @@ //: net/mindview/simple/Vector.java +// ©2015 MindView LLC: see Copyright.txt // Creating a package. package net.mindview.simple; diff --git a/net/mindview/util/BasicGenerator.java b/net/mindview/util/BasicGenerator.java index 089eedd4..aa4673bb 100644 --- a/net/mindview/util/BasicGenerator.java +++ b/net/mindview/util/BasicGenerator.java @@ -1,4 +1,5 @@ //: net/mindview/util/BasicGenerator.java +// ©2015 MindView LLC: see Copyright.txt // Automatically create a Generator, given a class // with a default (no-arg) constructor. package net.mindview.util; diff --git a/net/mindview/util/BinaryFile.java b/net/mindview/util/BinaryFile.java index c0dae2e4..8c7d03c5 100644 --- a/net/mindview/util/BinaryFile.java +++ b/net/mindview/util/BinaryFile.java @@ -1,4 +1,5 @@ //: net/mindview/util/BinaryFile.java +// ©2015 MindView LLC: see Copyright.txt // Utility for reading files in binary form. package net.mindview.util; import java.io.*; diff --git a/net/mindview/util/CollectionData.java b/net/mindview/util/CollectionData.java index 6a580263..cd294ad9 100644 --- a/net/mindview/util/CollectionData.java +++ b/net/mindview/util/CollectionData.java @@ -1,4 +1,5 @@ //: net/mindview/util/CollectionData.java +// ©2015 MindView LLC: see Copyright.txt // A Collection filled with data using a generator object. package net.mindview.util; import java.util.*; diff --git a/net/mindview/util/ContainerMethodDifferences.java b/net/mindview/util/ContainerMethodDifferences.java index eacb3ad5..18920940 100644 --- a/net/mindview/util/ContainerMethodDifferences.java +++ b/net/mindview/util/ContainerMethodDifferences.java @@ -1,4 +1,5 @@ //: net/mindview/util/ContainerMethodDifferences.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; import java.lang.reflect.*; import java.util.*; diff --git a/net/mindview/util/ConvertTo.java b/net/mindview/util/ConvertTo.java index 65a04fed..553ed318 100644 --- a/net/mindview/util/ConvertTo.java +++ b/net/mindview/util/ConvertTo.java @@ -1,4 +1,5 @@ //: net/mindview/util/ConvertTo.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; public class ConvertTo { diff --git a/net/mindview/util/CountingGenerator.java b/net/mindview/util/CountingGenerator.java index 3655f200..4b1c42a7 100644 --- a/net/mindview/util/CountingGenerator.java +++ b/net/mindview/util/CountingGenerator.java @@ -1,4 +1,5 @@ //: net/mindview/util/CountingGenerator.java +// ©2015 MindView LLC: see Copyright.txt // Simple generator implementations. package net.mindview.util; diff --git a/net/mindview/util/CountingIntegerList.java b/net/mindview/util/CountingIntegerList.java index b26fefe6..e32e640d 100644 --- a/net/mindview/util/CountingIntegerList.java +++ b/net/mindview/util/CountingIntegerList.java @@ -1,4 +1,5 @@ //: net/mindview/util/CountingIntegerList.java +// ©2015 MindView LLC: see Copyright.txt // List of any length, containing sample data. package net.mindview.util; import java.util.*; diff --git a/net/mindview/util/CountingMapData.java b/net/mindview/util/CountingMapData.java index e2c0f501..e540c146 100644 --- a/net/mindview/util/CountingMapData.java +++ b/net/mindview/util/CountingMapData.java @@ -1,4 +1,5 @@ //: net/mindview/util/CountingMapData.java +// ©2015 MindView LLC: see Copyright.txt // Unlimited-length Map containing sample data. package net.mindview.util; import java.util.*; diff --git a/net/mindview/util/Countries.java b/net/mindview/util/Countries.java index e367d00c..0366f810 100644 --- a/net/mindview/util/Countries.java +++ b/net/mindview/util/Countries.java @@ -1,4 +1,5 @@ //: net/mindview/util/Countries.java +// ©2015 MindView LLC: see Copyright.txt // "Flyweight" Maps and Lists of sample data. package net.mindview.util; import java.util.*; diff --git a/net/mindview/util/DaemonThreadFactory.java b/net/mindview/util/DaemonThreadFactory.java index 0eadd0f2..a3161019 100644 --- a/net/mindview/util/DaemonThreadFactory.java +++ b/net/mindview/util/DaemonThreadFactory.java @@ -1,4 +1,5 @@ //: net/mindview/util/DaemonThreadFactory.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; import java.util.concurrent.*; diff --git a/net/mindview/util/DaemonThreadPoolExecutor.java b/net/mindview/util/DaemonThreadPoolExecutor.java index f436293a..0aed969d 100644 --- a/net/mindview/util/DaemonThreadPoolExecutor.java +++ b/net/mindview/util/DaemonThreadPoolExecutor.java @@ -1,4 +1,5 @@ //: net/mindview/util/DaemonThreadPoolExecutor.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; import java.util.concurrent.*; diff --git a/net/mindview/util/Deque.java b/net/mindview/util/Deque.java index 157a8ecd..859988fd 100644 --- a/net/mindview/util/Deque.java +++ b/net/mindview/util/Deque.java @@ -1,4 +1,5 @@ //: net/mindview/util/Deque.java +// ©2015 MindView LLC: see Copyright.txt // Creating a Deque from a LinkedList. package net.mindview.util; import java.util.*; diff --git a/net/mindview/util/Directory.java b/net/mindview/util/Directory.java index 6c68dc32..aee21bdb 100644 --- a/net/mindview/util/Directory.java +++ b/net/mindview/util/Directory.java @@ -1,4 +1,5 @@ //: net/mindview/util/Directory.java +// ©2015 MindView LLC: see Copyright.txt // Produce a sequence of File objects that match a // regular expression in either a local directory, // or by walking a directory tree. diff --git a/net/mindview/util/Enums.java b/net/mindview/util/Enums.java index d01a2bd1..4b261513 100644 --- a/net/mindview/util/Enums.java +++ b/net/mindview/util/Enums.java @@ -1,4 +1,5 @@ //: net/mindview/util/Enums.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; import java.util.*; diff --git a/net/mindview/util/FiveTuple.java b/net/mindview/util/FiveTuple.java index eef662d2..dfb27b86 100644 --- a/net/mindview/util/FiveTuple.java +++ b/net/mindview/util/FiveTuple.java @@ -1,4 +1,5 @@ //: net/mindview/util/FiveTuple.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; public class FiveTuple diff --git a/net/mindview/util/FourTuple.java b/net/mindview/util/FourTuple.java index 69360952..8662736c 100644 --- a/net/mindview/util/FourTuple.java +++ b/net/mindview/util/FourTuple.java @@ -1,4 +1,5 @@ //: net/mindview/util/FourTuple.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; public class FourTuple extends ThreeTuple { diff --git a/net/mindview/util/Generated.java b/net/mindview/util/Generated.java index 4fa3bc52..8e2d5e53 100644 --- a/net/mindview/util/Generated.java +++ b/net/mindview/util/Generated.java @@ -1,4 +1,5 @@ //: net/mindview/util/Generated.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; public class Generated { diff --git a/net/mindview/util/Generator.java b/net/mindview/util/Generator.java index c753dd86..5232ca5a 100644 --- a/net/mindview/util/Generator.java +++ b/net/mindview/util/Generator.java @@ -1,4 +1,5 @@ //: net/mindview/util/Generator.java +// ©2015 MindView LLC: see Copyright.txt // A generic interface. package net.mindview.util; public interface Generator { T next(); } ///:~ diff --git a/net/mindview/util/Hex.java b/net/mindview/util/Hex.java index a1c47b5b..24a8ca01 100644 --- a/net/mindview/util/Hex.java +++ b/net/mindview/util/Hex.java @@ -1,4 +1,5 @@ //: net/mindview/util/Hex.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; import java.io.*; diff --git a/net/mindview/util/MapData.java b/net/mindview/util/MapData.java index 1b3c5788..39405f30 100644 --- a/net/mindview/util/MapData.java +++ b/net/mindview/util/MapData.java @@ -1,4 +1,5 @@ //: net/mindview/util/MapData.java +// ©2015 MindView LLC: see Copyright.txt // A Map filled with data using a generator object. package net.mindview.util; import java.util.*; diff --git a/net/mindview/util/New.java b/net/mindview/util/New.java index d76928ce..2561a703 100644 --- a/net/mindview/util/New.java +++ b/net/mindview/util/New.java @@ -1,4 +1,5 @@ //: net/mindview/util/New.java +// ©2015 MindView LLC: see Copyright.txt // Utilities to simplify generic container creation // by using type argument inference. package net.mindview.util; diff --git a/net/mindview/util/Null.java b/net/mindview/util/Null.java index ec217b97..b8808a44 100644 --- a/net/mindview/util/Null.java +++ b/net/mindview/util/Null.java @@ -1,3 +1,4 @@ //: net/mindview/util/Null.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; public interface Null {} ///:~ diff --git a/net/mindview/util/OSExecute.java b/net/mindview/util/OSExecute.java index e3d5a7d3..232b212a 100644 --- a/net/mindview/util/OSExecute.java +++ b/net/mindview/util/OSExecute.java @@ -1,4 +1,5 @@ //: net/mindview/util/OSExecute.java +// ©2015 MindView LLC: see Copyright.txt // Run an operating system command // and send the output to the console. package net.mindview.util; diff --git a/net/mindview/util/OSExecuteException.java b/net/mindview/util/OSExecuteException.java index 766e0f2f..d9d1aa28 100644 --- a/net/mindview/util/OSExecuteException.java +++ b/net/mindview/util/OSExecuteException.java @@ -1,4 +1,5 @@ //: net/mindview/util/OSExecuteException.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; public class OSExecuteException extends RuntimeException { diff --git a/net/mindview/util/PPrint.java b/net/mindview/util/PPrint.java index a9297687..90b9e46f 100644 --- a/net/mindview/util/PPrint.java +++ b/net/mindview/util/PPrint.java @@ -1,4 +1,5 @@ //: net/mindview/util/PPrint.java +// ©2015 MindView LLC: see Copyright.txt // Pretty-printer for collections package net.mindview.util; import java.util.*; diff --git a/net/mindview/util/Pair.java b/net/mindview/util/Pair.java index e3460035..f9cf4c5b 100644 --- a/net/mindview/util/Pair.java +++ b/net/mindview/util/Pair.java @@ -1,4 +1,5 @@ //: net/mindview/util/Pair.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; public class Pair { diff --git a/net/mindview/util/Print.java b/net/mindview/util/Print.java index 4e7a74ea..d0ba9a36 100644 --- a/net/mindview/util/Print.java +++ b/net/mindview/util/Print.java @@ -1,4 +1,5 @@ //: net/mindview/util/Print.java +// ©2015 MindView LLC: see Copyright.txt // Print methods that can be used without // qualifiers, using static imports: package net.mindview.util; diff --git a/net/mindview/util/PrintArray.java b/net/mindview/util/PrintArray.java index e0e8f381..6413ce96 100644 --- a/net/mindview/util/PrintArray.java +++ b/net/mindview/util/PrintArray.java @@ -1,4 +1,5 @@ //: net/mindview/util/PrintArray.java +// ©2015 MindView LLC: see Copyright.txt // Display an array of double package net.mindview.util; diff --git a/net/mindview/util/ProcessFiles.java b/net/mindview/util/ProcessFiles.java index 1a73569b..d5fce451 100644 --- a/net/mindview/util/ProcessFiles.java +++ b/net/mindview/util/ProcessFiles.java @@ -1,4 +1,5 @@ //: net/mindview/util/ProcessFiles.java +// ©2015 MindView LLC: see Copyright.txt // {CheckOutputByHand} package net.mindview.util; import java.io.*; diff --git a/net/mindview/util/RandomGenerator.java b/net/mindview/util/RandomGenerator.java index 9b9b25d2..18956821 100644 --- a/net/mindview/util/RandomGenerator.java +++ b/net/mindview/util/RandomGenerator.java @@ -1,4 +1,5 @@ //: net/mindview/util/RandomGenerator.java +// ©2015 MindView LLC: see Copyright.txt // Generators that produce random values. package net.mindview.util; import java.util.*; diff --git a/net/mindview/util/Range.java b/net/mindview/util/Range.java index 202d7ad0..05d7df63 100644 --- a/net/mindview/util/Range.java +++ b/net/mindview/util/Range.java @@ -1,4 +1,5 @@ //: net/mindview/util/Range.java +// ©2015 MindView LLC: see Copyright.txt // Array creation methods that can be used without // qualifiers, using static imports: package net.mindview.util; diff --git a/net/mindview/util/Sets.java b/net/mindview/util/Sets.java index f98379b9..eca21284 100644 --- a/net/mindview/util/Sets.java +++ b/net/mindview/util/Sets.java @@ -1,4 +1,5 @@ //: net/mindview/util/Sets.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; import java.util.*; diff --git a/net/mindview/util/Stack.java b/net/mindview/util/Stack.java index 79ab36f8..1fd68a37 100644 --- a/net/mindview/util/Stack.java +++ b/net/mindview/util/Stack.java @@ -1,4 +1,5 @@ //: net/mindview/util/Stack.java +// ©2015 MindView LLC: see Copyright.txt // Making a stack from a LinkedList. package net.mindview.util; import java.util.LinkedList; diff --git a/net/mindview/util/SwingConsole.java b/net/mindview/util/SwingConsole.java index 85bec3b5..0510e95e 100644 --- a/net/mindview/util/SwingConsole.java +++ b/net/mindview/util/SwingConsole.java @@ -1,4 +1,5 @@ //: net/mindview/util/SwingConsole.java +// ©2015 MindView LLC: see Copyright.txt // Tool for running Swing demos from the // console, both applets and JFrames. package net.mindview.util; diff --git a/net/mindview/util/TaskItem.java b/net/mindview/util/TaskItem.java index a7827a46..180b7eb9 100644 --- a/net/mindview/util/TaskItem.java +++ b/net/mindview/util/TaskItem.java @@ -1,4 +1,5 @@ //: net/mindview/util/TaskItem.java +// ©2015 MindView LLC: see Copyright.txt // A Future and the Callable that produced it. package net.mindview.util; import java.util.concurrent.*; diff --git a/net/mindview/util/TaskManager.java b/net/mindview/util/TaskManager.java index 1af82bd0..f4a47e8b 100644 --- a/net/mindview/util/TaskManager.java +++ b/net/mindview/util/TaskManager.java @@ -1,4 +1,5 @@ //: net/mindview/util/TaskManager.java +// ©2015 MindView LLC: see Copyright.txt // Managing and executing a queue of tasks. package net.mindview.util; import java.util.concurrent.*; diff --git a/net/mindview/util/TextFile.java b/net/mindview/util/TextFile.java index bae7adf2..fc51ed32 100644 --- a/net/mindview/util/TextFile.java +++ b/net/mindview/util/TextFile.java @@ -1,4 +1,5 @@ //: net/mindview/util/TextFile.java +// ©2015 MindView LLC: see Copyright.txt // Static functions for reading and writing text files as // a single string, and treating a file as an ArrayList. package net.mindview.util; diff --git a/net/mindview/util/ThreeTuple.java b/net/mindview/util/ThreeTuple.java index 33e713c0..806ff818 100644 --- a/net/mindview/util/ThreeTuple.java +++ b/net/mindview/util/ThreeTuple.java @@ -1,4 +1,5 @@ //: net/mindview/util/ThreeTuple.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; public class ThreeTuple extends TwoTuple { diff --git a/net/mindview/util/Tuple.java b/net/mindview/util/Tuple.java index d0fe5069..64b189a7 100644 --- a/net/mindview/util/Tuple.java +++ b/net/mindview/util/Tuple.java @@ -1,4 +1,5 @@ //: net/mindview/util/Tuple.java +// ©2015 MindView LLC: see Copyright.txt // Tuple library using type argument inference. package net.mindview.util; diff --git a/net/mindview/util/TwoTuple.java b/net/mindview/util/TwoTuple.java index 9da50c96..c0592b48 100644 --- a/net/mindview/util/TwoTuple.java +++ b/net/mindview/util/TwoTuple.java @@ -1,4 +1,5 @@ //: net/mindview/util/TwoTuple.java +// ©2015 MindView LLC: see Copyright.txt package net.mindview.util; public class TwoTuple { diff --git a/net/mindview/util/TypeCounter.java b/net/mindview/util/TypeCounter.java index f63a8bc2..a5cae394 100644 --- a/net/mindview/util/TypeCounter.java +++ b/net/mindview/util/TypeCounter.java @@ -1,4 +1,5 @@ //: net/mindview/util/TypeCounter.java +// ©2015 MindView LLC: see Copyright.txt // Counts instances of a type family. package net.mindview.util; import java.util.*; diff --git a/network/ChatterClient.java b/network/ChatterClient.java index a6d3e8ae..405ef365 100644 --- a/network/ChatterClient.java +++ b/network/ChatterClient.java @@ -1,4 +1,5 @@ //: network/ChatterClient.java +// ©2015 MindView LLC: see Copyright.txt // {TimeOutDuringTesting} // Tests the ChatterServer by starting multiple // clients, each of which sends datagrams. diff --git a/network/ChatterServer.java b/network/ChatterServer.java index 08ec7bf5..29775275 100644 --- a/network/ChatterServer.java +++ b/network/ChatterServer.java @@ -1,4 +1,5 @@ //: network/ChatterServer.java +// ©2015 MindView LLC: see Copyright.txt // {TimeOutDuringTesting} // A server that echoes datagrams import java.net.*; diff --git a/network/Dgram.java b/network/Dgram.java index 30cdba7e..45575149 100644 --- a/network/Dgram.java +++ b/network/Dgram.java @@ -1,4 +1,5 @@ //: network/Dgram.java +// ©2015 MindView LLC: see Copyright.txt // A utility class to convert back and forth // Between Strings and DataGramPackets. import java.net.*; diff --git a/network/MultiSimpleClient.java b/network/MultiSimpleClient.java index b801d5d9..b23b09cc 100644 --- a/network/MultiSimpleClient.java +++ b/network/MultiSimpleClient.java @@ -1,4 +1,5 @@ //: network/MultiSimpleClient.java +// ©2015 MindView LLC: see Copyright.txt // Client that tests the MultiSimpleServer // by starting up multiple clients. // {ThrowsException} (When run standalone, diff --git a/network/MultiSimpleServer.java b/network/MultiSimpleServer.java index 38c9d6d0..a3314fae 100644 --- a/network/MultiSimpleServer.java +++ b/network/MultiSimpleServer.java @@ -1,4 +1,5 @@ //: network/MultiSimpleServer.java +// ©2015 MindView LLC: see Copyright.txt // A server that uses multithreading to handle // any number of clients. // {TimeOutDuringTesting} diff --git a/network/SimpleClient.java b/network/SimpleClient.java index 3803f23f..ea1fba7e 100644 --- a/network/SimpleClient.java +++ b/network/SimpleClient.java @@ -1,4 +1,5 @@ //: network/SimpleClient.java +// ©2015 MindView LLC: see Copyright.txt // Very simple client that just sends // lines to the server and reads lines // that the server sends. diff --git a/network/SimpleServer.java b/network/SimpleServer.java index 766c8c4d..4727f485 100644 --- a/network/SimpleServer.java +++ b/network/SimpleServer.java @@ -1,4 +1,5 @@ //: network/SimpleServer.java +// ©2015 MindView LLC: see Copyright.txt // Very simple server that just // echoes whatever the client sends. // {TimeOutDuringTesting} diff --git a/network/WhoAmI.java b/network/WhoAmI.java index fe0cb701..3ca84d1b 100644 --- a/network/WhoAmI.java +++ b/network/WhoAmI.java @@ -1,4 +1,5 @@ //: network/WhoAmI.java +// ©2015 MindView LLC: see Copyright.txt // Finds out your network address when you're // connected to the Internet. // {Args:MindviewToshibaLaptop} diff --git a/object/Documentation1.java b/object/Documentation1.java index 731c72ad..c2e3bf76 100644 --- a/object/Documentation1.java +++ b/object/Documentation1.java @@ -1,4 +1,5 @@ //: object/Documentation1.java +// ©2015 MindView LLC: see Copyright.txt /** A class comment */ public class Documentation1 { /** A field comment */ diff --git a/object/Documentation2.java b/object/Documentation2.java index 6e2d4c8b..be909476 100644 --- a/object/Documentation2.java +++ b/object/Documentation2.java @@ -1,4 +1,5 @@ //: object/Documentation2.java +// ©2015 MindView LLC: see Copyright.txt /** *
 * System.out.println(new Date());
diff --git a/object/Documentation3.java b/object/Documentation3.java
index a117d84a..9d9a09ee 100644
--- a/object/Documentation3.java
+++ b/object/Documentation3.java
@@ -1,4 +1,5 @@
 //: object/Documentation3.java
+// ©2015 MindView LLC: see Copyright.txt
 /**
 * You can even insert a list:
 * 
    diff --git a/object/HelloDate.java b/object/HelloDate.java index 30eeaddd..26279f1e 100644 --- a/object/HelloDate.java +++ b/object/HelloDate.java @@ -1,4 +1,5 @@ //: object/HelloDate.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; /** The first Thinking in Java example program. diff --git a/object/ShowProperties.java b/object/ShowProperties.java index c3c242b8..3eb869b6 100644 --- a/object/ShowProperties.java +++ b/object/ShowProperties.java @@ -1,4 +1,5 @@ //: object/ShowProperties.java +// ©2015 MindView LLC: see Copyright.txt public class ShowProperties { public static void main(String[] args) { diff --git a/operators/AllOps.java b/operators/AllOps.java index 6356f6e6..3e90b74e 100644 --- a/operators/AllOps.java +++ b/operators/AllOps.java @@ -1,4 +1,5 @@ //: operators/AllOps.java +// ©2015 MindView LLC: see Copyright.txt // Tests all the operators on all the primitive data types // to show which ones are accepted by the Java compiler. diff --git a/operators/Assignment.java b/operators/Assignment.java index 65e7a8d1..07948a3c 100644 --- a/operators/Assignment.java +++ b/operators/Assignment.java @@ -1,4 +1,5 @@ //: operators/Assignment.java +// ©2015 MindView LLC: see Copyright.txt // Assignment with objects is a bit tricky. import static net.mindview.util.Print.*; diff --git a/operators/AutoInc.java b/operators/AutoInc.java index f3a465e9..d2ba5c23 100644 --- a/operators/AutoInc.java +++ b/operators/AutoInc.java @@ -1,4 +1,5 @@ //: operators/AutoInc.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates the ++ and -- operators. import static net.mindview.util.Print.*; diff --git a/operators/BitManipulation.java b/operators/BitManipulation.java index 640ae32c..bcdcd22c 100644 --- a/operators/BitManipulation.java +++ b/operators/BitManipulation.java @@ -1,4 +1,5 @@ //: operators/BitManipulation.java +// ©2015 MindView LLC: see Copyright.txt // Using the bitwise operators. import java.util.*; import static net.mindview.util.Print.*; diff --git a/operators/Bool.java b/operators/Bool.java index f81c2de3..2cc3a435 100644 --- a/operators/Bool.java +++ b/operators/Bool.java @@ -1,4 +1,5 @@ //: operators/Bool.java +// ©2015 MindView LLC: see Copyright.txt // Relational and logical operators. import java.util.*; import static net.mindview.util.Print.*; diff --git a/operators/Casting.java b/operators/Casting.java index ee9680f8..42ef3de5 100644 --- a/operators/Casting.java +++ b/operators/Casting.java @@ -1,4 +1,5 @@ //: operators/Casting.java +// ©2015 MindView LLC: see Copyright.txt public class Casting { public static void main(String[] args) { diff --git a/operators/CastingNumbers.java b/operators/CastingNumbers.java index 5f7560dc..5824dc48 100644 --- a/operators/CastingNumbers.java +++ b/operators/CastingNumbers.java @@ -1,4 +1,5 @@ //: operators/CastingNumbers.java +// ©2015 MindView LLC: see Copyright.txt // What happens when you cast a float // or double to an integral value? import static net.mindview.util.Print.*; diff --git a/operators/EqualsMethod.java b/operators/EqualsMethod.java index ac17824e..2e83879f 100644 --- a/operators/EqualsMethod.java +++ b/operators/EqualsMethod.java @@ -1,4 +1,5 @@ //: operators/EqualsMethod.java +// ©2015 MindView LLC: see Copyright.txt public class EqualsMethod { public static void main(String[] args) { diff --git a/operators/EqualsMethod2.java b/operators/EqualsMethod2.java index 9b8711a7..62eaf47a 100644 --- a/operators/EqualsMethod2.java +++ b/operators/EqualsMethod2.java @@ -1,4 +1,5 @@ //: operators/EqualsMethod2.java +// ©2015 MindView LLC: see Copyright.txt // Default equals() does not compare contents. class Value { diff --git a/operators/Equivalence.java b/operators/Equivalence.java index bf3d6bd5..97e89639 100644 --- a/operators/Equivalence.java +++ b/operators/Equivalence.java @@ -1,4 +1,5 @@ //: operators/Equivalence.java +// ©2015 MindView LLC: see Copyright.txt public class Equivalence { public static void main(String[] args) { diff --git a/operators/Exponents.java b/operators/Exponents.java index 12ad487c..59d362ba 100644 --- a/operators/Exponents.java +++ b/operators/Exponents.java @@ -1,4 +1,5 @@ //: operators/Exponents.java +// ©2015 MindView LLC: see Copyright.txt // "e" means "10 to the power." public class Exponents { diff --git a/operators/HelloDate.java b/operators/HelloDate.java index dfbacd3f..2c1206c2 100644 --- a/operators/HelloDate.java +++ b/operators/HelloDate.java @@ -1,4 +1,5 @@ //: operators/HelloDate.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; import static net.mindview.util.Print.*; diff --git a/operators/Literals.java b/operators/Literals.java index 33a0d8a6..27665b0d 100644 --- a/operators/Literals.java +++ b/operators/Literals.java @@ -1,4 +1,5 @@ //: operators/Literals.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; public class Literals { diff --git a/operators/MathOps.java b/operators/MathOps.java index f5236a3f..eebe5a7b 100644 --- a/operators/MathOps.java +++ b/operators/MathOps.java @@ -1,4 +1,5 @@ //: operators/MathOps.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates the mathematical operators. import java.util.*; import static net.mindview.util.Print.*; diff --git a/operators/Overflow.java b/operators/Overflow.java index 7b01b074..7aeeb6c4 100644 --- a/operators/Overflow.java +++ b/operators/Overflow.java @@ -1,4 +1,5 @@ //: operators/Overflow.java +// ©2015 MindView LLC: see Copyright.txt // Surprise! Java lets you overflow. public class Overflow { diff --git a/operators/PassObject.java b/operators/PassObject.java index ef8b5ad3..4e95104e 100644 --- a/operators/PassObject.java +++ b/operators/PassObject.java @@ -1,4 +1,5 @@ //: operators/PassObject.java +// ©2015 MindView LLC: see Copyright.txt // Passing objects to methods might not be // what you're used to. import static net.mindview.util.Print.*; diff --git a/operators/Precedence.java b/operators/Precedence.java index 53139274..7fc3b7fa 100644 --- a/operators/Precedence.java +++ b/operators/Precedence.java @@ -1,4 +1,5 @@ //: operators/Precedence.java +// ©2015 MindView LLC: see Copyright.txt public class Precedence { public static void main(String[] args) { diff --git a/operators/RoundingNumbers.java b/operators/RoundingNumbers.java index 938a9577..abd1ef1c 100644 --- a/operators/RoundingNumbers.java +++ b/operators/RoundingNumbers.java @@ -1,4 +1,5 @@ //: operators/RoundingNumbers.java +// ©2015 MindView LLC: see Copyright.txt // Rounding floats and doubles. import static net.mindview.util.Print.*; diff --git a/operators/ShortCircuit.java b/operators/ShortCircuit.java index bf9494dc..26263d8b 100644 --- a/operators/ShortCircuit.java +++ b/operators/ShortCircuit.java @@ -1,4 +1,5 @@ //: operators/ShortCircuit.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates short-circuiting behavior // with logical operators. import static net.mindview.util.Print.*; diff --git a/operators/StringOperators.java b/operators/StringOperators.java index a1f79d34..0db1fd8c 100644 --- a/operators/StringOperators.java +++ b/operators/StringOperators.java @@ -1,4 +1,5 @@ //: operators/StringOperators.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; public class StringOperators { diff --git a/operators/TernaryIfElse.java b/operators/TernaryIfElse.java index b5e0be86..139ae479 100644 --- a/operators/TernaryIfElse.java +++ b/operators/TernaryIfElse.java @@ -1,4 +1,5 @@ //: operators/TernaryIfElse.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; public class TernaryIfElse { diff --git a/operators/URShift.java b/operators/URShift.java index 0cdf6e9d..e660d70e 100644 --- a/operators/URShift.java +++ b/operators/URShift.java @@ -1,4 +1,5 @@ //: operators/URShift.java +// ©2015 MindView LLC: see Copyright.txt // Test of unsigned right shift. import static net.mindview.util.Print.*; diff --git a/patterns/CommandPattern.java b/patterns/CommandPattern.java index efd58562..76d2e245 100644 --- a/patterns/CommandPattern.java +++ b/patterns/CommandPattern.java @@ -1,4 +1,5 @@ //: patterns/CommandPattern.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; interface Command { diff --git a/patterns/CommandPattern2.java b/patterns/CommandPattern2.java index 7284822d..bd272eec 100644 --- a/patterns/CommandPattern2.java +++ b/patterns/CommandPattern2.java @@ -1,4 +1,5 @@ //: patterns/CommandPattern2.java +// ©2015 MindView LLC: see Copyright.txt // Using the Runnable functional interface import java.util.*; diff --git a/patterns/CommandPattern3.java b/patterns/CommandPattern3.java index 1001931a..6c7bf1a9 100644 --- a/patterns/CommandPattern3.java +++ b/patterns/CommandPattern3.java @@ -1,4 +1,5 @@ //: patterns/CommandPattern3.java +// ©2015 MindView LLC: see Copyright.txt // Just implement the Runnable interface! import java.util.*; diff --git a/patterns/Facade.java b/patterns/Facade.java index eb8a9101..c0645d20 100644 --- a/patterns/Facade.java +++ b/patterns/Facade.java @@ -1,4 +1,5 @@ //: patterns/Facade.java +// ©2015 MindView LLC: see Copyright.txt class A { public A(int x) {} } class B { public B(long x) {} } diff --git a/patterns/PaperScissorsRock.java b/patterns/PaperScissorsRock.java index 89d93f2f..130004f8 100644 --- a/patterns/PaperScissorsRock.java +++ b/patterns/PaperScissorsRock.java @@ -1,4 +1,5 @@ //: patterns/PaperScissorsRock.java +// ©2015 MindView LLC: see Copyright.txt // Demonstration of multiple dispatching. import java.util.*; diff --git a/patterns/ProxyDemo.java b/patterns/ProxyDemo.java index 11106462..ae8dde7c 100644 --- a/patterns/ProxyDemo.java +++ b/patterns/ProxyDemo.java @@ -1,4 +1,5 @@ //: patterns/ProxyDemo.java +// ©2015 MindView LLC: see Copyright.txt // Simple demonstration of the Proxy pattern. interface ProxyBase { diff --git a/patterns/ShapeFactory2.java b/patterns/ShapeFactory2.java index b95b7434..d1fa3df0 100644 --- a/patterns/ShapeFactory2.java +++ b/patterns/ShapeFactory2.java @@ -1,4 +1,5 @@ //: patterns/ShapeFactory2.java +// ©2015 MindView LLC: see Copyright.txt // Polymorphic factory methods. import java.util.*; import java.util.function.*; diff --git a/patterns/SingletonPattern.java b/patterns/SingletonPattern.java index 341cfc48..935211e0 100644 --- a/patterns/SingletonPattern.java +++ b/patterns/SingletonPattern.java @@ -1,4 +1,5 @@ //: patterns/SingletonPattern.java +// ©2015 MindView LLC: see Copyright.txt // The Singleton design pattern: you can // never instantiate more than one. // Since this isn't inherited from a Cloneable diff --git a/patterns/StateDemo.java b/patterns/StateDemo.java index 87157d12..8ab3ec1c 100644 --- a/patterns/StateDemo.java +++ b/patterns/StateDemo.java @@ -1,4 +1,5 @@ //: patterns/StateDemo.java +// ©2015 MindView LLC: see Copyright.txt // Simple demonstration of the State pattern. import static net.mindview.util.Print.*; diff --git a/patterns/TemplateMethod.java b/patterns/TemplateMethod.java index 3d9e3f85..65a0451f 100644 --- a/patterns/TemplateMethod.java +++ b/patterns/TemplateMethod.java @@ -1,4 +1,5 @@ //: patterns/TemplateMethod.java +// ©2015 MindView LLC: see Copyright.txt // Simple demonstration of Template Method. abstract class ApplicationFramework { diff --git a/patterns/absfactory/GameEnvironment.java b/patterns/absfactory/GameEnvironment.java index 295a225e..b57a72ae 100644 --- a/patterns/absfactory/GameEnvironment.java +++ b/patterns/absfactory/GameEnvironment.java @@ -1,4 +1,5 @@ //: patterns/absfactory/GameEnvironment.java +// ©2015 MindView LLC: see Copyright.txt // An example of the Abstract Factory pattern. package patterns.absfactory; diff --git a/patterns/absfactory/GameEnvironment2.java b/patterns/absfactory/GameEnvironment2.java index cd129b7d..001ddcff 100644 --- a/patterns/absfactory/GameEnvironment2.java +++ b/patterns/absfactory/GameEnvironment2.java @@ -1,4 +1,5 @@ //: patterns/absfactory/GameEnvironment2.java +// ©2015 MindView LLC: see Copyright.txt // Using the Supplier<> Functional Interface. package patterns.absfactory; import java.util.function.*; diff --git a/patterns/adapt/Adapter.java b/patterns/adapt/Adapter.java index 47959ca6..80876b9d 100644 --- a/patterns/adapt/Adapter.java +++ b/patterns/adapt/Adapter.java @@ -1,4 +1,5 @@ //: patterns/adapt/Adapter.java +// ©2015 MindView LLC: see Copyright.txt // Variations on the Adapter pattern. package patterns.adapt; diff --git a/patterns/chain/ChainOfResponsibility.java b/patterns/chain/ChainOfResponsibility.java index b955c6d9..45b6a475 100644 --- a/patterns/chain/ChainOfResponsibility.java +++ b/patterns/chain/ChainOfResponsibility.java @@ -1,4 +1,5 @@ //: patterns/chain/ChainOfResponsibility.java +// ©2015 MindView LLC: see Copyright.txt package patterns.chain; import java.util.*; import static net.mindview.util.PrintArray.*; diff --git a/patterns/chain/ChainOfResponsibility2.java b/patterns/chain/ChainOfResponsibility2.java index d47a7d6e..0c0d44f2 100644 --- a/patterns/chain/ChainOfResponsibility2.java +++ b/patterns/chain/ChainOfResponsibility2.java @@ -1,4 +1,5 @@ //: patterns/chain/ChainOfResponsibility2.java +// ©2015 MindView LLC: see Copyright.txt // Using the Functional interface. package patterns.chain; import java.util.*; diff --git a/patterns/doubledispatch/DDAluminum.java b/patterns/doubledispatch/DDAluminum.java index af0c0a37..698de869 100644 --- a/patterns/doubledispatch/DDAluminum.java +++ b/patterns/doubledispatch/DDAluminum.java @@ -1,4 +1,5 @@ //: patterns/doubledispatch/DDAluminum.java +// ©2015 MindView LLC: see Copyright.txt // Aluminum for double dispatching. package patterns.doubledispatch; import patterns.trash.*; diff --git a/patterns/doubledispatch/DDCardboard.java b/patterns/doubledispatch/DDCardboard.java index c155569c..b84a7b61 100644 --- a/patterns/doubledispatch/DDCardboard.java +++ b/patterns/doubledispatch/DDCardboard.java @@ -1,4 +1,5 @@ //: patterns/doubledispatch/DDCardboard.java +// ©2015 MindView LLC: see Copyright.txt // Cardboard for double dispatching. package patterns.doubledispatch; import patterns.trash.*; diff --git a/patterns/doubledispatch/DDGlass.java b/patterns/doubledispatch/DDGlass.java index 0f779eb4..909e35ce 100644 --- a/patterns/doubledispatch/DDGlass.java +++ b/patterns/doubledispatch/DDGlass.java @@ -1,4 +1,5 @@ //: patterns/doubledispatch/DDGlass.java +// ©2015 MindView LLC: see Copyright.txt // Glass for double dispatching. package patterns.doubledispatch; import patterns.trash.*; diff --git a/patterns/doubledispatch/DDPaper.java b/patterns/doubledispatch/DDPaper.java index e798d8dc..c010be06 100644 --- a/patterns/doubledispatch/DDPaper.java +++ b/patterns/doubledispatch/DDPaper.java @@ -1,4 +1,5 @@ //: patterns/doubledispatch/DDPaper.java +// ©2015 MindView LLC: see Copyright.txt // Paper for double dispatching. package patterns.doubledispatch; import patterns.trash.*; diff --git a/patterns/doubledispatch/DoubleDispatch.java b/patterns/doubledispatch/DoubleDispatch.java index dd6a4fd5..c54de86a 100644 --- a/patterns/doubledispatch/DoubleDispatch.java +++ b/patterns/doubledispatch/DoubleDispatch.java @@ -1,4 +1,5 @@ //: patterns/doubledispatch/DoubleDispatch.java +// ©2015 MindView LLC: see Copyright.txt // Using multiple dispatching to handle more // than one unknown type during a method call. package patterns.doubledispatch; diff --git a/patterns/doubledispatch/TypedBin.java b/patterns/doubledispatch/TypedBin.java index e4d270c8..2165d394 100644 --- a/patterns/doubledispatch/TypedBin.java +++ b/patterns/doubledispatch/TypedBin.java @@ -1,4 +1,5 @@ //: patterns/doubledispatch/TypedBin.java +// ©2015 MindView LLC: see Copyright.txt // An ArrayList 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 333088e9..960a2d0c 100644 --- a/patterns/doubledispatch/TypedBinMember.java +++ b/patterns/doubledispatch/TypedBinMember.java @@ -1,4 +1,5 @@ //: patterns/doubledispatch/TypedBinMember.java +// ©2015 MindView LLC: see Copyright.txt // 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 84574977..b24c9364 100644 --- a/patterns/dynatrash/DynaTrash.java +++ b/patterns/dynatrash/DynaTrash.java @@ -1,4 +1,5 @@ //: patterns/dynatrash/DynaTrash.java +// ©2015 MindView LLC: see Copyright.txt // Using a Map of Lists and RTTI // to automatically sort trash into // vectors. This solution, despite the diff --git a/patterns/factory/ShapeFactory1.java b/patterns/factory/ShapeFactory1.java index 2af944d1..efd05a34 100644 --- a/patterns/factory/ShapeFactory1.java +++ b/patterns/factory/ShapeFactory1.java @@ -1,4 +1,5 @@ //: patterns/factory/ShapeFactory1.java +// ©2015 MindView LLC: see Copyright.txt // A simple static factory method. package patterns.factory; import java.util.*; diff --git a/patterns/observer/ObservedFlower.java b/patterns/observer/ObservedFlower.java index e401f5ba..2d8318c6 100644 --- a/patterns/observer/ObservedFlower.java +++ b/patterns/observer/ObservedFlower.java @@ -1,4 +1,5 @@ //: patterns/observer/ObservedFlower.java +// ©2015 MindView LLC: see Copyright.txt // Demonstration of "observer" pattern. package patterns.observer; import java.util.*; diff --git a/patterns/recyclea/RecycleA.java b/patterns/recyclea/RecycleA.java index 793d9109..a82644ef 100644 --- a/patterns/recyclea/RecycleA.java +++ b/patterns/recyclea/RecycleA.java @@ -1,4 +1,5 @@ //: patterns/recyclea/RecycleA.java +// ©2015 MindView LLC: see Copyright.txt // Recycling with RTTI. package patterns.recyclea; import java.util.*; diff --git a/patterns/recycleap/RecycleAP.java b/patterns/recycleap/RecycleAP.java index 83d5ccea..0eaa5a93 100644 --- a/patterns/recycleap/RecycleAP.java +++ b/patterns/recycleap/RecycleAP.java @@ -1,4 +1,5 @@ //: patterns/recycleap/RecycleAP.java +// ©2015 MindView LLC: see Copyright.txt // Recycling with RTTI and Prototypes. package patterns.recycleap; import patterns.trash.*; diff --git a/patterns/recycleb/RecycleB.java b/patterns/recycleb/RecycleB.java index 7366582d..355ec160 100644 --- a/patterns/recycleb/RecycleB.java +++ b/patterns/recycleb/RecycleB.java @@ -1,4 +1,5 @@ //: patterns/recycleb/RecycleB.java +// ©2015 MindView LLC: see Copyright.txt // Adding more objects to the recycling problem. package patterns.recycleb; import patterns.trash.*; diff --git a/patterns/state/StateMachineDemo.java b/patterns/state/StateMachineDemo.java index da9b44fd..9af78569 100644 --- a/patterns/state/StateMachineDemo.java +++ b/patterns/state/StateMachineDemo.java @@ -1,4 +1,5 @@ //: patterns/state/StateMachineDemo.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrates StateMachine pattern // and Template method. package patterns.state; diff --git a/patterns/strategy/StrategyPattern.java b/patterns/strategy/StrategyPattern.java index 346a9e84..c3f9343b 100644 --- a/patterns/strategy/StrategyPattern.java +++ b/patterns/strategy/StrategyPattern.java @@ -1,4 +1,5 @@ //: patterns/strategy/StrategyPattern.java +// ©2015 MindView LLC: see Copyright.txt package patterns.strategy; import java.util.function.*; import static net.mindview.util.PrintArray.*; diff --git a/patterns/strategy/StrategyPattern2.java b/patterns/strategy/StrategyPattern2.java index 06988a41..18407d9e 100644 --- a/patterns/strategy/StrategyPattern2.java +++ b/patterns/strategy/StrategyPattern2.java @@ -1,4 +1,5 @@ //: patterns/strategy/StrategyPattern2.java +// ©2015 MindView LLC: see Copyright.txt package patterns.strategy; import java.util.function.*; import static net.mindview.util.PrintArray.*; diff --git a/patterns/trash/Aluminum.java b/patterns/trash/Aluminum.java index 41d2bb19..bd5630e7 100644 --- a/patterns/trash/Aluminum.java +++ b/patterns/trash/Aluminum.java @@ -1,4 +1,5 @@ //: patterns/trash/Aluminum.java +// ©2015 MindView LLC: see Copyright.txt // The Aluminum class with prototyping. package patterns.trash; diff --git a/patterns/trash/Cardboard.java b/patterns/trash/Cardboard.java index c79d4239..dd8d8984 100644 --- a/patterns/trash/Cardboard.java +++ b/patterns/trash/Cardboard.java @@ -1,4 +1,5 @@ //: patterns/trash/Cardboard.java +// ©2015 MindView LLC: see Copyright.txt // The Cardboard class with prototyping. package patterns.trash; diff --git a/patterns/trash/Fillable.java b/patterns/trash/Fillable.java index d6dc6430..d5f8dbb4 100644 --- a/patterns/trash/Fillable.java +++ b/patterns/trash/Fillable.java @@ -1,4 +1,5 @@ //: patterns/trash/Fillable.java +// ©2015 MindView LLC: see Copyright.txt // Any object that can be filled with Trash. package patterns.trash; diff --git a/patterns/trash/FillableList.java b/patterns/trash/FillableList.java index 976a2a7b..c4a32998 100644 --- a/patterns/trash/FillableList.java +++ b/patterns/trash/FillableList.java @@ -1,4 +1,5 @@ //: patterns/trash/FillableList.java +// ©2015 MindView LLC: see Copyright.txt // Adapter that makes an ArrayList Fillable. package patterns.trash; import java.util.*; diff --git a/patterns/trash/Glass.java b/patterns/trash/Glass.java index fddd7dc7..ecb9acf1 100644 --- a/patterns/trash/Glass.java +++ b/patterns/trash/Glass.java @@ -1,4 +1,5 @@ //: patterns/trash/Glass.java +// ©2015 MindView LLC: see Copyright.txt // The Glass class with prototyping. package patterns.trash; diff --git a/patterns/trash/Paper.java b/patterns/trash/Paper.java index 310e5248..752438ad 100644 --- a/patterns/trash/Paper.java +++ b/patterns/trash/Paper.java @@ -1,4 +1,5 @@ //: patterns/trash/Paper.java +// ©2015 MindView LLC: see Copyright.txt // The Paper class with prototyping. package patterns.trash; diff --git a/patterns/trash/ParseTrash.java b/patterns/trash/ParseTrash.java index d16744f0..81cb85e5 100644 --- a/patterns/trash/ParseTrash.java +++ b/patterns/trash/ParseTrash.java @@ -1,4 +1,5 @@ //: patterns/trash/ParseTrash.java +// ©2015 MindView LLC: see Copyright.txt // Open a file and parse its contents into // Trash objects, placing each into an ArrayList. package patterns.trash; diff --git a/patterns/trash/Trash.java b/patterns/trash/Trash.java index 4437784e..2e7abef0 100644 --- a/patterns/trash/Trash.java +++ b/patterns/trash/Trash.java @@ -1,4 +1,5 @@ //: patterns/trash/Trash.java +// ©2015 MindView LLC: see Copyright.txt // Base class for Trash recycling examples. package patterns.trash; import java.util.*; diff --git a/patterns/trashvisitor/TrashVisitor.java b/patterns/trashvisitor/TrashVisitor.java index ce3f7b6c..cdbb9aba 100644 --- a/patterns/trashvisitor/TrashVisitor.java +++ b/patterns/trashvisitor/TrashVisitor.java @@ -1,4 +1,5 @@ //: patterns/trashvisitor/TrashVisitor.java +// ©2015 MindView LLC: see Copyright.txt // The "visitor" pattern. package patterns.trashvisitor; import patterns.trash.*; diff --git a/patterns/trashvisitor/VAluminum.java b/patterns/trashvisitor/VAluminum.java index 7c89f290..05df1d07 100644 --- a/patterns/trashvisitor/VAluminum.java +++ b/patterns/trashvisitor/VAluminum.java @@ -1,4 +1,5 @@ //: patterns/trashvisitor/VAluminum.java +// ©2015 MindView LLC: see Copyright.txt // Aluminum for the visitor pattern. package patterns.trashvisitor; import patterns.trash.*; diff --git a/patterns/trashvisitor/VCardboard.java b/patterns/trashvisitor/VCardboard.java index 7ef0829a..e8642071 100644 --- a/patterns/trashvisitor/VCardboard.java +++ b/patterns/trashvisitor/VCardboard.java @@ -1,4 +1,5 @@ //: patterns/trashvisitor/VCardboard.java +// ©2015 MindView LLC: see Copyright.txt // Cardboard for the visitor pattern. package patterns.trashvisitor; import patterns.trash.*; diff --git a/patterns/trashvisitor/VGlass.java b/patterns/trashvisitor/VGlass.java index 9b5e325b..4532138d 100644 --- a/patterns/trashvisitor/VGlass.java +++ b/patterns/trashvisitor/VGlass.java @@ -1,4 +1,5 @@ //: patterns/trashvisitor/VGlass.java +// ©2015 MindView LLC: see Copyright.txt // Glass for the visitor pattern. package patterns.trashvisitor; import patterns.trash.*; diff --git a/patterns/trashvisitor/VPaper.java b/patterns/trashvisitor/VPaper.java index 17089373..f8e641e5 100644 --- a/patterns/trashvisitor/VPaper.java +++ b/patterns/trashvisitor/VPaper.java @@ -1,4 +1,5 @@ //: patterns/trashvisitor/VPaper.java +// ©2015 MindView LLC: see Copyright.txt // Paper for the visitor pattern. package patterns.trashvisitor; import patterns.trash.*; diff --git a/patterns/trashvisitor/Visitable.java b/patterns/trashvisitor/Visitable.java index 1ef7f8cb..d4f70ed6 100644 --- a/patterns/trashvisitor/Visitable.java +++ b/patterns/trashvisitor/Visitable.java @@ -1,4 +1,5 @@ //: patterns/trashvisitor/Visitable.java +// ©2015 MindView LLC: see Copyright.txt // An interface to add visitor functionality to // the Trash hierarchy without modifying the // base class. diff --git a/patterns/trashvisitor/Visitor.java b/patterns/trashvisitor/Visitor.java index 85f75375..80302c70 100644 --- a/patterns/trashvisitor/Visitor.java +++ b/patterns/trashvisitor/Visitor.java @@ -1,4 +1,5 @@ //: patterns/trashvisitor/Visitor.java +// ©2015 MindView LLC: see Copyright.txt // The base interface for visitors. package patterns.trashvisitor; diff --git a/patterns/visitor/BeeAndFlowers.java b/patterns/visitor/BeeAndFlowers.java index 4aa8c53a..4876fd85 100644 --- a/patterns/visitor/BeeAndFlowers.java +++ b/patterns/visitor/BeeAndFlowers.java @@ -1,4 +1,5 @@ //: patterns/visitor/BeeAndFlowers.java +// ©2015 MindView LLC: see Copyright.txt // Demonstration of "visitor" pattern. package patterns.visitor; import java.util.*; diff --git a/patterns/visualobserver/BoxObserver.java b/patterns/visualobserver/BoxObserver.java index aded5ff3..10656e59 100644 --- a/patterns/visualobserver/BoxObserver.java +++ b/patterns/visualobserver/BoxObserver.java @@ -1,4 +1,5 @@ //: patterns/visualobserver/BoxObserver.java +// ©2015 MindView LLC: see Copyright.txt // Demonstration of Observer pattern using // Java's built-in observer classes. // {TimeOut:4000} During testing diff --git a/polymorphism/CovariantReturn.java b/polymorphism/CovariantReturn.java index 12e9fb92..1da43fdb 100644 --- a/polymorphism/CovariantReturn.java +++ b/polymorphism/CovariantReturn.java @@ -1,4 +1,5 @@ //: polymorphism/CovariantReturn.java +// ©2015 MindView LLC: see Copyright.txt class Grain { @Override diff --git a/polymorphism/FieldAccess.java b/polymorphism/FieldAccess.java index 576ee593..01370ab5 100644 --- a/polymorphism/FieldAccess.java +++ b/polymorphism/FieldAccess.java @@ -1,4 +1,5 @@ //: polymorphism/FieldAccess.java +// ©2015 MindView LLC: see Copyright.txt // Direct field access is determined at compile time. class Super { diff --git a/polymorphism/Frog.java b/polymorphism/Frog.java index c2f19f60..06646be4 100644 --- a/polymorphism/Frog.java +++ b/polymorphism/Frog.java @@ -1,4 +1,5 @@ //: polymorphism/Frog.java +// ©2015 MindView LLC: see Copyright.txt // Cleanup and inheritance. package polymorphism; import static net.mindview.util.Print.*; diff --git a/polymorphism/PolyConstructors.java b/polymorphism/PolyConstructors.java index f0f36c3d..9f0fac13 100644 --- a/polymorphism/PolyConstructors.java +++ b/polymorphism/PolyConstructors.java @@ -1,4 +1,5 @@ //: polymorphism/PolyConstructors.java +// ©2015 MindView LLC: see Copyright.txt // Constructors and polymorphism // don't produce what you might expect. import static net.mindview.util.Print.*; diff --git a/polymorphism/PrivateOverride.java b/polymorphism/PrivateOverride.java index 560317e7..465d4057 100644 --- a/polymorphism/PrivateOverride.java +++ b/polymorphism/PrivateOverride.java @@ -1,4 +1,5 @@ //: polymorphism/PrivateOverride.java +// ©2015 MindView LLC: see Copyright.txt // Trying to override a private method. package polymorphism; import static net.mindview.util.Print.*; diff --git a/polymorphism/RTTI.java b/polymorphism/RTTI.java index d5602201..a58ef7ea 100644 --- a/polymorphism/RTTI.java +++ b/polymorphism/RTTI.java @@ -1,4 +1,5 @@ //: polymorphism/RTTI.java +// ©2015 MindView LLC: see Copyright.txt // Downcasting & Runtime type information (RTTI). // {ThrowsException} diff --git a/polymorphism/ReferenceCounting.java b/polymorphism/ReferenceCounting.java index 238cc8da..154df4f1 100644 --- a/polymorphism/ReferenceCounting.java +++ b/polymorphism/ReferenceCounting.java @@ -1,4 +1,5 @@ //: polymorphism/ReferenceCounting.java +// ©2015 MindView LLC: see Copyright.txt // Cleaning up shared member objects. import static net.mindview.util.Print.*; diff --git a/polymorphism/Sandwich.java b/polymorphism/Sandwich.java index 466241c1..ad5de6a0 100644 --- a/polymorphism/Sandwich.java +++ b/polymorphism/Sandwich.java @@ -1,4 +1,5 @@ //: polymorphism/Sandwich.java +// ©2015 MindView LLC: see Copyright.txt // Order of constructor calls. package polymorphism; import static net.mindview.util.Print.*; diff --git a/polymorphism/Shapes.java b/polymorphism/Shapes.java index 06a87c12..5632bfbd 100644 --- a/polymorphism/Shapes.java +++ b/polymorphism/Shapes.java @@ -1,4 +1,5 @@ //: polymorphism/Shapes.java +// ©2015 MindView LLC: see Copyright.txt // Polymorphism in Java. import polymorphism.shape.*; diff --git a/polymorphism/StaticPolymorphism.java b/polymorphism/StaticPolymorphism.java index bb6c0614..7e063d86 100644 --- a/polymorphism/StaticPolymorphism.java +++ b/polymorphism/StaticPolymorphism.java @@ -1,4 +1,5 @@ //: polymorphism/StaticPolymorphism.java +// ©2015 MindView LLC: see Copyright.txt // Static methods are not polymorphic. class StaticSuper { diff --git a/polymorphism/Transmogrify.java b/polymorphism/Transmogrify.java index 8e41fb4f..8e73c45f 100644 --- a/polymorphism/Transmogrify.java +++ b/polymorphism/Transmogrify.java @@ -1,4 +1,5 @@ //: polymorphism/Transmogrify.java +// ©2015 MindView LLC: see Copyright.txt // Dynamically changing the behavior of an object // via composition (the "State" design pattern). import static net.mindview.util.Print.*; diff --git a/polymorphism/music/Instrument.java b/polymorphism/music/Instrument.java index 96181e67..6438a886 100644 --- a/polymorphism/music/Instrument.java +++ b/polymorphism/music/Instrument.java @@ -1,4 +1,5 @@ //: polymorphism/music/Instrument.java +// ©2015 MindView LLC: see Copyright.txt package polymorphism.music; import static net.mindview.util.Print.*; diff --git a/polymorphism/music/Music.java b/polymorphism/music/Music.java index c5344b91..0f90f776 100644 --- a/polymorphism/music/Music.java +++ b/polymorphism/music/Music.java @@ -1,4 +1,5 @@ //: polymorphism/music/Music.java +// ©2015 MindView LLC: see Copyright.txt // Inheritance & upcasting. package polymorphism.music; diff --git a/polymorphism/music/Music2.java b/polymorphism/music/Music2.java index b122e373..5f6c87f4 100644 --- a/polymorphism/music/Music2.java +++ b/polymorphism/music/Music2.java @@ -1,4 +1,5 @@ //: polymorphism/music/Music2.java +// ©2015 MindView LLC: see Copyright.txt // Overloading instead of upcasting. package polymorphism.music; import static net.mindview.util.Print.*; diff --git a/polymorphism/music/Note.java b/polymorphism/music/Note.java index 0595dbd2..f39b7b98 100644 --- a/polymorphism/music/Note.java +++ b/polymorphism/music/Note.java @@ -1,4 +1,5 @@ //: polymorphism/music/Note.java +// ©2015 MindView LLC: see Copyright.txt // Notes to play on musical instruments. package polymorphism.music; diff --git a/polymorphism/music/Wind.java b/polymorphism/music/Wind.java index b8285bf8..b49f2d2b 100644 --- a/polymorphism/music/Wind.java +++ b/polymorphism/music/Wind.java @@ -1,4 +1,5 @@ //: polymorphism/music/Wind.java +// ©2015 MindView LLC: see Copyright.txt package polymorphism.music; // Wind objects are instruments diff --git a/polymorphism/music3/Music3.java b/polymorphism/music3/Music3.java index ffb439ba..d9a7bf8c 100644 --- a/polymorphism/music3/Music3.java +++ b/polymorphism/music3/Music3.java @@ -1,4 +1,5 @@ //: polymorphism/music3/Music3.java +// ©2015 MindView LLC: see Copyright.txt // An extensible program. package polymorphism.music3; import polymorphism.music.Note; diff --git a/polymorphism/shape/Circle.java b/polymorphism/shape/Circle.java index 63ca5122..e87d1c57 100644 --- a/polymorphism/shape/Circle.java +++ b/polymorphism/shape/Circle.java @@ -1,4 +1,5 @@ //: polymorphism/shape/Circle.java +// ©2015 MindView LLC: see Copyright.txt package polymorphism.shape; import static net.mindview.util.Print.*; diff --git a/polymorphism/shape/RandomShapeGenerator.java b/polymorphism/shape/RandomShapeGenerator.java index e4749977..f0e4559c 100644 --- a/polymorphism/shape/RandomShapeGenerator.java +++ b/polymorphism/shape/RandomShapeGenerator.java @@ -1,4 +1,5 @@ //: polymorphism/shape/RandomShapeGenerator.java +// ©2015 MindView LLC: see Copyright.txt // 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 13188a04..b19674f0 100644 --- a/polymorphism/shape/Shape.java +++ b/polymorphism/shape/Shape.java @@ -1,4 +1,5 @@ //: polymorphism/shape/Shape.java +// ©2015 MindView LLC: see Copyright.txt package polymorphism.shape; public class Shape { diff --git a/polymorphism/shape/Square.java b/polymorphism/shape/Square.java index 1514d3e7..b4ebb3d6 100644 --- a/polymorphism/shape/Square.java +++ b/polymorphism/shape/Square.java @@ -1,4 +1,5 @@ //: polymorphism/shape/Square.java +// ©2015 MindView LLC: see Copyright.txt package polymorphism.shape; import static net.mindview.util.Print.*; diff --git a/polymorphism/shape/Triangle.java b/polymorphism/shape/Triangle.java index 65576493..7ff37397 100644 --- a/polymorphism/shape/Triangle.java +++ b/polymorphism/shape/Triangle.java @@ -1,4 +1,5 @@ //: polymorphism/shape/Triangle.java +// ©2015 MindView LLC: see Copyright.txt package polymorphism.shape; import static net.mindview.util.Print.*; diff --git a/references/AddingClone.java b/references/AddingClone.java index f4105a42..74d60b46 100644 --- a/references/AddingClone.java +++ b/references/AddingClone.java @@ -1,4 +1,5 @@ //: references/AddingClone.java +// ©2015 MindView LLC: see Copyright.txt // 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 a9457746..5a98f724 100644 --- a/references/Alias1.java +++ b/references/Alias1.java @@ -1,4 +1,5 @@ //: references/Alias1.java +// ©2015 MindView LLC: see Copyright.txt // Aliasing two references to one object. public class Alias1 { diff --git a/references/Alias2.java b/references/Alias2.java index efe2b964..fe2219fd 100644 --- a/references/Alias2.java +++ b/references/Alias2.java @@ -1,4 +1,5 @@ //: references/Alias2.java +// ©2015 MindView LLC: see Copyright.txt // Method calls implicitly alias their arguments. public class Alias2 { diff --git a/references/CheckCloneable.java b/references/CheckCloneable.java index 399fe588..b989d324 100644 --- a/references/CheckCloneable.java +++ b/references/CheckCloneable.java @@ -1,4 +1,5 @@ //: references/CheckCloneable.java +// ©2015 MindView LLC: see Copyright.txt // Check to see if a reference can be cloned. // Can't clone this -- doesn't override clone(): diff --git a/references/Cloning.java b/references/Cloning.java index 65604e39..eb2ea16b 100644 --- a/references/Cloning.java +++ b/references/Cloning.java @@ -1,4 +1,5 @@ //: references/Cloning.java +// ©2015 MindView LLC: see Copyright.txt // 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 a4d5d3b3..927cacb7 100644 --- a/references/Compete.java +++ b/references/Compete.java @@ -1,4 +1,5 @@ //: references/Compete.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; class Thing1 implements Serializable {} diff --git a/references/CopyConstructor.java b/references/CopyConstructor.java index 1a32220c..c6bc49e5 100644 --- a/references/CopyConstructor.java +++ b/references/CopyConstructor.java @@ -1,4 +1,5 @@ //: references/CopyConstructor.java +// ©2015 MindView LLC: see Copyright.txt // 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/DeepCopy.java b/references/DeepCopy.java index 5b144d14..5615ba42 100644 --- a/references/DeepCopy.java +++ b/references/DeepCopy.java @@ -1,4 +1,5 @@ //: references/DeepCopy.java +// ©2015 MindView LLC: see Copyright.txt // Cloning a composed object. // (Install libraries from www.junit.org) import org.junit.Test; diff --git a/references/HorrorFlick.java b/references/HorrorFlick.java index 00b8eae0..6665cea5 100644 --- a/references/HorrorFlick.java +++ b/references/HorrorFlick.java @@ -1,4 +1,5 @@ //: references/HorrorFlick.java +// ©2015 MindView LLC: see Copyright.txt // You can insert Cloneability // at any level of inheritance. diff --git a/references/Immutable1.java b/references/Immutable1.java index a32cc030..ae0d5af0 100644 --- a/references/Immutable1.java +++ b/references/Immutable1.java @@ -1,4 +1,5 @@ //: references/Immutable1.java +// ©2015 MindView LLC: see Copyright.txt // Immutable objects are immune to aliasing. public class Immutable1 { diff --git a/references/Immutable2.java b/references/Immutable2.java index 26e66d7a..f334beb4 100644 --- a/references/Immutable2.java +++ b/references/Immutable2.java @@ -1,4 +1,5 @@ //: references/Immutable2.java +// ©2015 MindView LLC: see Copyright.txt // A companion class to modify immutable objects class Mutable { diff --git a/references/ImmutableInteger.java b/references/ImmutableInteger.java index e5cb62a9..32333f6c 100644 --- a/references/ImmutableInteger.java +++ b/references/ImmutableInteger.java @@ -1,4 +1,5 @@ //: references/ImmutableInteger.java +// ©2015 MindView LLC: see Copyright.txt // The Integer class cannot be changed. import java.util.*; diff --git a/references/ImmutableStrings.java b/references/ImmutableStrings.java index d72ffa85..d68ed9fd 100644 --- a/references/ImmutableStrings.java +++ b/references/ImmutableStrings.java @@ -1,4 +1,5 @@ //: references/ImmutableStrings.java +// ©2015 MindView LLC: see Copyright.txt // Demonstrating StringBuffer. public class ImmutableStrings { diff --git a/references/LocalCopy.java b/references/LocalCopy.java index 1bdb8cce..588b5a92 100644 --- a/references/LocalCopy.java +++ b/references/LocalCopy.java @@ -1,4 +1,5 @@ //: references/LocalCopy.java +// ©2015 MindView LLC: see Copyright.txt // Creating local copies with clone(). class MyObject implements Cloneable { diff --git a/references/MutableInteger.java b/references/MutableInteger.java index 295ea2b7..c429f621 100644 --- a/references/MutableInteger.java +++ b/references/MutableInteger.java @@ -1,4 +1,5 @@ //: references/MutableInteger.java +// ©2015 MindView LLC: see Copyright.txt // A changeable wrapper class. import java.util.*; diff --git a/references/PassReferences.java b/references/PassReferences.java index e399244a..b8034a2f 100644 --- a/references/PassReferences.java +++ b/references/PassReferences.java @@ -1,4 +1,5 @@ //: references/PassReferences.java +// ©2015 MindView LLC: see Copyright.txt // Passing references around. public class PassReferences { diff --git a/references/Snake.java b/references/Snake.java index f04804c8..79b69a8e 100644 --- a/references/Snake.java +++ b/references/Snake.java @@ -1,4 +1,5 @@ //: references/Snake.java +// ©2015 MindView LLC: see Copyright.txt // Tests cloning to see if destination // of references are also cloned. diff --git a/references/Stringer.java b/references/Stringer.java index a01104f7..b31e7885 100644 --- a/references/Stringer.java +++ b/references/Stringer.java @@ -1,4 +1,5 @@ //: references/Stringer.java +// ©2015 MindView LLC: see Copyright.txt public class Stringer { public static String upcase(String s) { diff --git a/remote/ptime/DisplayPerfectTime.java b/remote/ptime/DisplayPerfectTime.java index e916f7cf..25ce6dfc 100644 --- a/remote/ptime/DisplayPerfectTime.java +++ b/remote/ptime/DisplayPerfectTime.java @@ -1,4 +1,5 @@ //: remote/ptime/DisplayPerfectTime.java +// ©2015 MindView LLC: see Copyright.txt // Uses remote object PerfectTime // {RunByHand} package remote.ptime; diff --git a/remote/ptime/PerfectTime.java b/remote/ptime/PerfectTime.java index 50eb05ab..811ac20e 100644 --- a/remote/ptime/PerfectTime.java +++ b/remote/ptime/PerfectTime.java @@ -1,4 +1,5 @@ //: remote/ptime/PerfectTime.java +// ©2015 MindView LLC: see Copyright.txt // The implementation of the PerfectTime // remote object. // {RunByHand} diff --git a/remote/ptime/PerfectTimeI.java b/remote/ptime/PerfectTimeI.java index 06501267..52b1ac54 100644 --- a/remote/ptime/PerfectTimeI.java +++ b/remote/ptime/PerfectTimeI.java @@ -1,4 +1,5 @@ //: remote/ptime/PerfectTimeI.java +// ©2015 MindView LLC: see Copyright.txt // The PerfectTime remote interface package remote.ptime; import java.rmi.*; diff --git a/reusing/Bath.java b/reusing/Bath.java index 1b04769d..630a296d 100644 --- a/reusing/Bath.java +++ b/reusing/Bath.java @@ -1,4 +1,5 @@ //: reusing/Bath.java +// ©2015 MindView LLC: see Copyright.txt // Constructor initialization with composition. import static net.mindview.util.Print.*; diff --git a/reusing/Beetle.java b/reusing/Beetle.java index de24dc21..1a0b56a4 100644 --- a/reusing/Beetle.java +++ b/reusing/Beetle.java @@ -1,4 +1,5 @@ //: reusing/Beetle.java +// ©2015 MindView LLC: see Copyright.txt // The full process of initialization. import static net.mindview.util.Print.*; diff --git a/reusing/BlankFinal.java b/reusing/BlankFinal.java index 67392d16..d7a3aa64 100644 --- a/reusing/BlankFinal.java +++ b/reusing/BlankFinal.java @@ -1,4 +1,5 @@ //: reusing/BlankFinal.java +// ©2015 MindView LLC: see Copyright.txt // "Blank" final fields. class Poppet { diff --git a/reusing/CADSystem.java b/reusing/CADSystem.java index 9a022fbf..36072702 100644 --- a/reusing/CADSystem.java +++ b/reusing/CADSystem.java @@ -1,4 +1,5 @@ //: reusing/CADSystem.java +// ©2015 MindView LLC: see Copyright.txt // Ensuring proper cleanup. package reusing; import static net.mindview.util.Print.*; diff --git a/reusing/Car.java b/reusing/Car.java index 1d4ef18f..2529959a 100644 --- a/reusing/Car.java +++ b/reusing/Car.java @@ -1,4 +1,5 @@ //: reusing/Car.java +// ©2015 MindView LLC: see Copyright.txt // Composition with public objects. class Engine { diff --git a/reusing/Cartoon.java b/reusing/Cartoon.java index f6da99b3..eacbd754 100644 --- a/reusing/Cartoon.java +++ b/reusing/Cartoon.java @@ -1,4 +1,5 @@ //: reusing/Cartoon.java +// ©2015 MindView LLC: see Copyright.txt // Constructor calls during inheritance. import static net.mindview.util.Print.*; diff --git a/reusing/Chess.java b/reusing/Chess.java index ec42bf90..213774fa 100644 --- a/reusing/Chess.java +++ b/reusing/Chess.java @@ -1,4 +1,5 @@ //: reusing/Chess.java +// ©2015 MindView LLC: see Copyright.txt // Inheritance, constructors and arguments. import static net.mindview.util.Print.*; diff --git a/reusing/Detergent.java b/reusing/Detergent.java index 29ca2460..65837b73 100644 --- a/reusing/Detergent.java +++ b/reusing/Detergent.java @@ -1,4 +1,5 @@ //: reusing/Detergent.java +// ©2015 MindView LLC: see Copyright.txt // Inheritance syntax & properties. import static net.mindview.util.Print.*; diff --git a/reusing/FinalArguments.java b/reusing/FinalArguments.java index 332ba66b..fba9053a 100644 --- a/reusing/FinalArguments.java +++ b/reusing/FinalArguments.java @@ -1,4 +1,5 @@ //: reusing/FinalArguments.java +// ©2015 MindView LLC: see Copyright.txt // Using "final" with method arguments. class Gizmo { diff --git a/reusing/FinalData.java b/reusing/FinalData.java index 34f41e33..b792e3a2 100644 --- a/reusing/FinalData.java +++ b/reusing/FinalData.java @@ -1,4 +1,5 @@ //: reusing/FinalData.java +// ©2015 MindView LLC: see Copyright.txt // The effect of final on fields. import java.util.*; import static net.mindview.util.Print.*; diff --git a/reusing/FinalOverridingIllusion.java b/reusing/FinalOverridingIllusion.java index d8f29698..4bf1313f 100644 --- a/reusing/FinalOverridingIllusion.java +++ b/reusing/FinalOverridingIllusion.java @@ -1,4 +1,5 @@ //: reusing/FinalOverridingIllusion.java +// ©2015 MindView LLC: see Copyright.txt // It only looks like you can override // a private or private final method. import static net.mindview.util.Print.*; diff --git a/reusing/Hide.java b/reusing/Hide.java index 950b4525..29e4161b 100644 --- a/reusing/Hide.java +++ b/reusing/Hide.java @@ -1,4 +1,5 @@ //: reusing/Hide.java +// ©2015 MindView LLC: see Copyright.txt // Overloading a base-class method name in a derived // class does not hide the base-class versions. import static net.mindview.util.Print.*; diff --git a/reusing/Jurassic.java b/reusing/Jurassic.java index 61b6d2a1..3551b772 100644 --- a/reusing/Jurassic.java +++ b/reusing/Jurassic.java @@ -1,4 +1,5 @@ //: reusing/Jurassic.java +// ©2015 MindView LLC: see Copyright.txt // Making an entire class final. class SmallBrain {} diff --git a/reusing/Lisa.java b/reusing/Lisa.java index 5a7aa5e5..b4fe81d6 100644 --- a/reusing/Lisa.java +++ b/reusing/Lisa.java @@ -1,4 +1,5 @@ //: reusing/Lisa.java +// ©2015 MindView LLC: see Copyright.txt // {CompileTimeError} (Won't compile) class Lisa extends Homer { diff --git a/reusing/Orc.java b/reusing/Orc.java index b34ccb84..96dd5146 100644 --- a/reusing/Orc.java +++ b/reusing/Orc.java @@ -1,4 +1,5 @@ //: reusing/Orc.java +// ©2015 MindView LLC: see Copyright.txt // The protected keyword. import static net.mindview.util.Print.*; diff --git a/reusing/PlaceSetting.java b/reusing/PlaceSetting.java index ee9c6163..fcf480f1 100644 --- a/reusing/PlaceSetting.java +++ b/reusing/PlaceSetting.java @@ -1,4 +1,5 @@ //: reusing/PlaceSetting.java +// ©2015 MindView LLC: see Copyright.txt // Combining composition & inheritance. import static net.mindview.util.Print.*; diff --git a/reusing/SpaceShip.java b/reusing/SpaceShip.java index 99aca2aa..b8a744f8 100644 --- a/reusing/SpaceShip.java +++ b/reusing/SpaceShip.java @@ -1,4 +1,5 @@ //: reusing/SpaceShip.java +// ©2015 MindView LLC: see Copyright.txt public class SpaceShip extends SpaceShipControls { private String name; diff --git a/reusing/SpaceShipControls.java b/reusing/SpaceShipControls.java index b3b8872b..17d550b6 100644 --- a/reusing/SpaceShipControls.java +++ b/reusing/SpaceShipControls.java @@ -1,4 +1,5 @@ //: reusing/SpaceShipControls.java +// ©2015 MindView LLC: see Copyright.txt public class SpaceShipControls { void up(int velocity) {} diff --git a/reusing/SpaceShipDelegation.java b/reusing/SpaceShipDelegation.java index 55506fd7..de5df3de 100644 --- a/reusing/SpaceShipDelegation.java +++ b/reusing/SpaceShipDelegation.java @@ -1,4 +1,5 @@ //: reusing/SpaceShipDelegation.java +// ©2015 MindView LLC: see Copyright.txt public class SpaceShipDelegation { private String name; diff --git a/reusing/SprinklerSystem.java b/reusing/SprinklerSystem.java index 00021604..498d9796 100644 --- a/reusing/SprinklerSystem.java +++ b/reusing/SprinklerSystem.java @@ -1,4 +1,5 @@ //: reusing/SprinklerSystem.java +// ©2015 MindView LLC: see Copyright.txt // Composition for code reuse. class WaterSource { diff --git a/reusing/Wind.java b/reusing/Wind.java index d551100d..386c3e1b 100644 --- a/reusing/Wind.java +++ b/reusing/Wind.java @@ -1,4 +1,5 @@ //: reusing/Wind.java +// ©2015 MindView LLC: see Copyright.txt // Inheritance & upcasting. class Instrument { diff --git a/staticchecking/DogsAndRobots.cpp b/staticchecking/DogsAndRobots.cpp index 4b876ea9..361c0ea5 100644 --- a/staticchecking/DogsAndRobots.cpp +++ b/staticchecking/DogsAndRobots.cpp @@ -1,4 +1,5 @@ //: staticchecking/DogsAndRobots.cpp +// ©2015 MindView LLC: see Copyright.txt #include using namespace std; diff --git a/staticchecking/DogsAndRobots.py b/staticchecking/DogsAndRobots.py index ce8eb2a2..84914155 100644 --- a/staticchecking/DogsAndRobots.py +++ b/staticchecking/DogsAndRobots.py @@ -1,4 +1,5 @@ #: staticchecking/DogsAndRobots.py +# ©2015 MindView LLC: see Copyright.txt def speak(anything): anything.talk() diff --git a/staticchecking/NoBasePetSpeak.py b/staticchecking/NoBasePetSpeak.py index 2ab63aaf..e3f922da 100644 --- a/staticchecking/NoBasePetSpeak.py +++ b/staticchecking/NoBasePetSpeak.py @@ -1,4 +1,5 @@ #: staticchecking/NoBasePetSpeak.py +# ©2015 MindView LLC: see Copyright.txt # Speaking pets without base classes: class Cat: diff --git a/staticchecking/PetSpeak.py b/staticchecking/PetSpeak.py index 7a9a4c91..cd40163c 100644 --- a/staticchecking/PetSpeak.py +++ b/staticchecking/PetSpeak.py @@ -1,4 +1,5 @@ #: staticchecking/PetSpeak.py +# ©2015 MindView LLC: see Copyright.txt # Speaking pets in Python class Pet: diff --git a/staticchecking/dr/DogsAndRobots.java b/staticchecking/dr/DogsAndRobots.java index 43117357..75f29a62 100644 --- a/staticchecking/dr/DogsAndRobots.java +++ b/staticchecking/dr/DogsAndRobots.java @@ -1,4 +1,5 @@ //: staticchecking/dr/DogsAndRobots.java +// ©2015 MindView LLC: see Copyright.txt package staticchecking.dr; interface Speaks { void talk(); } diff --git a/staticchecking/drc/DogAndRobotCollections.java b/staticchecking/drc/DogAndRobotCollections.java index 3d94cc8e..2a73b135 100644 --- a/staticchecking/drc/DogAndRobotCollections.java +++ b/staticchecking/drc/DogAndRobotCollections.java @@ -1,4 +1,5 @@ //: staticchecking/drc/DogAndRobotCollections.java +// ©2015 MindView LLC: see Copyright.txt package staticchecking.drc; import java.util.*; diff --git a/staticchecking/latent/Latent.java b/staticchecking/latent/Latent.java index e1a94247..7e2c0313 100644 --- a/staticchecking/latent/Latent.java +++ b/staticchecking/latent/Latent.java @@ -1,4 +1,5 @@ //: staticchecking/latent/Latent.java +// ©2015 MindView LLC: see Copyright.txt package staticchecking.latent; import java.lang.reflect.*; diff --git a/staticchecking/petspeak/PetSpeak.java b/staticchecking/petspeak/PetSpeak.java index 6004a733..79671b79 100644 --- a/staticchecking/petspeak/PetSpeak.java +++ b/staticchecking/petspeak/PetSpeak.java @@ -1,4 +1,5 @@ //: staticchecking/petspeak/PetSpeak.java +// ©2015 MindView LLC: see Copyright.txt // Speaking pets in Java package staticchecking.petspeak; diff --git a/strings/ArrayListDisplay.java b/strings/ArrayListDisplay.java index c44f1549..2c5f9b23 100644 --- a/strings/ArrayListDisplay.java +++ b/strings/ArrayListDisplay.java @@ -1,4 +1,5 @@ //: strings/ArrayListDisplay.java +// ©2015 MindView LLC: see Copyright.txt import generics.coffee.*; import java.util.*; diff --git a/strings/BetterRead.java b/strings/BetterRead.java index 7dc17bf7..5bb85d12 100644 --- a/strings/BetterRead.java +++ b/strings/BetterRead.java @@ -1,4 +1,5 @@ //: strings/BetterRead.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class BetterRead { diff --git a/strings/Concatenation.java b/strings/Concatenation.java index e431941b..7c1de29e 100644 --- a/strings/Concatenation.java +++ b/strings/Concatenation.java @@ -1,4 +1,5 @@ //: strings/Concatenation.java +// ©2015 MindView LLC: see Copyright.txt public class Concatenation { public static void main(String[] args) { diff --git a/strings/Conversion.java b/strings/Conversion.java index 342ab609..0c551f2c 100644 --- a/strings/Conversion.java +++ b/strings/Conversion.java @@ -1,4 +1,5 @@ //: strings/Conversion.java +// ©2015 MindView LLC: see Copyright.txt import java.math.*; import java.util.*; diff --git a/strings/DatabaseException.java b/strings/DatabaseException.java index 9d418186..5f1e35bf 100644 --- a/strings/DatabaseException.java +++ b/strings/DatabaseException.java @@ -1,4 +1,5 @@ //: strings/DatabaseException.java +// ©2015 MindView LLC: see Copyright.txt public class DatabaseException extends Exception { public DatabaseException(int transactionID, int queryID, diff --git a/strings/Finding.java b/strings/Finding.java index e238c9f3..26996d22 100644 --- a/strings/Finding.java +++ b/strings/Finding.java @@ -1,4 +1,5 @@ //: strings/Finding.java +// ©2015 MindView LLC: see Copyright.txt import java.util.regex.*; import static net.mindview.util.Print.*; diff --git a/strings/Groups.java b/strings/Groups.java index 26b2c098..ac04523f 100644 --- a/strings/Groups.java +++ b/strings/Groups.java @@ -1,4 +1,5 @@ //: strings/Groups.java +// ©2015 MindView LLC: see Copyright.txt import java.util.regex.*; import static net.mindview.util.Print.*; diff --git a/strings/Immutable.java b/strings/Immutable.java index b9a72b57..ac3ed141 100644 --- a/strings/Immutable.java +++ b/strings/Immutable.java @@ -1,4 +1,5 @@ //: strings/Immutable.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; public class Immutable { diff --git a/strings/InfiniteRecursion.java b/strings/InfiniteRecursion.java index d2c1c690..ec00e615 100644 --- a/strings/InfiniteRecursion.java +++ b/strings/InfiniteRecursion.java @@ -1,4 +1,5 @@ //: strings/InfiniteRecursion.java +// ©2015 MindView LLC: see Copyright.txt // Accidental recursion. // {ThrowsException} // {ValidateByHand} diff --git a/strings/IntegerMatch.java b/strings/IntegerMatch.java index c037179f..3d6d2dc3 100644 --- a/strings/IntegerMatch.java +++ b/strings/IntegerMatch.java @@ -1,4 +1,5 @@ //: strings/IntegerMatch.java +// ©2015 MindView LLC: see Copyright.txt public class IntegerMatch { public static void main(String[] args) { diff --git a/strings/JGrep.java b/strings/JGrep.java index 00c1b86d..f9e922b4 100644 --- a/strings/JGrep.java +++ b/strings/JGrep.java @@ -1,4 +1,5 @@ //: strings/JGrep.java +// ©2015 MindView LLC: see Copyright.txt // A very simple version of the "grep" program. // {Args: JGrep.java '\\b[Ssct]\\w+'} import java.util.regex.*; diff --git a/strings/ReFlags.java b/strings/ReFlags.java index 23c6b310..d355d663 100644 --- a/strings/ReFlags.java +++ b/strings/ReFlags.java @@ -1,4 +1,5 @@ //: strings/ReFlags.java +// ©2015 MindView LLC: see Copyright.txt import java.util.regex.*; public class ReFlags { diff --git a/strings/Receipt.java b/strings/Receipt.java index da228891..e3bb6346 100644 --- a/strings/Receipt.java +++ b/strings/Receipt.java @@ -1,4 +1,5 @@ //: strings/Receipt.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class Receipt { diff --git a/strings/Replacing.java b/strings/Replacing.java index e47b4388..2f113435 100644 --- a/strings/Replacing.java +++ b/strings/Replacing.java @@ -1,4 +1,5 @@ //: strings/Replacing.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; public class Replacing { diff --git a/strings/ReplacingStringTokenizer.java b/strings/ReplacingStringTokenizer.java index fcc01945..82d6bb4d 100644 --- a/strings/ReplacingStringTokenizer.java +++ b/strings/ReplacingStringTokenizer.java @@ -1,4 +1,5 @@ //: strings/ReplacingStringTokenizer.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class ReplacingStringTokenizer { diff --git a/strings/Resetting.java b/strings/Resetting.java index 5837310b..186c5541 100644 --- a/strings/Resetting.java +++ b/strings/Resetting.java @@ -1,4 +1,5 @@ //: strings/Resetting.java +// ©2015 MindView LLC: see Copyright.txt import java.util.regex.*; public class Resetting { diff --git a/strings/Rudolph.java b/strings/Rudolph.java index fc9db371..07d466e5 100644 --- a/strings/Rudolph.java +++ b/strings/Rudolph.java @@ -1,4 +1,5 @@ //: strings/Rudolph.java +// ©2015 MindView LLC: see Copyright.txt public class Rudolph { public static void main(String[] args) { diff --git a/strings/ScannerDelimiter.java b/strings/ScannerDelimiter.java index 91acc4c4..e16dd054 100644 --- a/strings/ScannerDelimiter.java +++ b/strings/ScannerDelimiter.java @@ -1,4 +1,5 @@ //: strings/ScannerDelimiter.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class ScannerDelimiter { diff --git a/strings/SimpleFormat.java b/strings/SimpleFormat.java index e0d01b99..335bf7f8 100644 --- a/strings/SimpleFormat.java +++ b/strings/SimpleFormat.java @@ -1,4 +1,5 @@ //: strings/SimpleFormat.java +// ©2015 MindView LLC: see Copyright.txt public class SimpleFormat { public static void main(String[] args) { diff --git a/strings/SimpleRead.java b/strings/SimpleRead.java index 0b230968..cb59e87f 100644 --- a/strings/SimpleRead.java +++ b/strings/SimpleRead.java @@ -1,4 +1,5 @@ //: strings/SimpleRead.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; public class SimpleRead { diff --git a/strings/SplitDemo.java b/strings/SplitDemo.java index 22576169..e63357c5 100644 --- a/strings/SplitDemo.java +++ b/strings/SplitDemo.java @@ -1,4 +1,5 @@ //: strings/SplitDemo.java +// ©2015 MindView LLC: see Copyright.txt import java.util.regex.*; import java.util.*; import static net.mindview.util.Print.*; diff --git a/strings/Splitting.java b/strings/Splitting.java index 4633cdc2..839cc5b8 100644 --- a/strings/Splitting.java +++ b/strings/Splitting.java @@ -1,4 +1,5 @@ //: strings/Splitting.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class Splitting { diff --git a/strings/StartEnd.java b/strings/StartEnd.java index 7e50c0c2..b9ba0a44 100644 --- a/strings/StartEnd.java +++ b/strings/StartEnd.java @@ -1,4 +1,5 @@ //: strings/StartEnd.java +// ©2015 MindView LLC: see Copyright.txt import java.util.regex.*; import static net.mindview.util.Print.*; diff --git a/strings/TestRegularExpression.java b/strings/TestRegularExpression.java index f9d27c15..c1ceb391 100644 --- a/strings/TestRegularExpression.java +++ b/strings/TestRegularExpression.java @@ -1,4 +1,5 @@ //: strings/TestRegularExpression.java +// ©2015 MindView LLC: see Copyright.txt // Easily try out regular expressions. // {Args: abcabcabcdefabc 'abc+' '(abc)+' '(abc){2,}' } import java.util.regex.*; diff --git a/strings/TheReplacements.java b/strings/TheReplacements.java index bf87ca74..636bb311 100644 --- a/strings/TheReplacements.java +++ b/strings/TheReplacements.java @@ -1,4 +1,5 @@ //: strings/TheReplacements.java +// ©2015 MindView LLC: see Copyright.txt import java.util.regex.*; import net.mindview.util.*; import static net.mindview.util.Print.*; diff --git a/strings/ThreatAnalyzer.java b/strings/ThreatAnalyzer.java index a692fdea..819deab1 100644 --- a/strings/ThreatAnalyzer.java +++ b/strings/ThreatAnalyzer.java @@ -1,4 +1,5 @@ //: strings/ThreatAnalyzer.java +// ©2015 MindView LLC: see Copyright.txt import java.util.regex.*; import java.util.*; diff --git a/strings/Turtle.java b/strings/Turtle.java index de32abcf..774e4830 100644 --- a/strings/Turtle.java +++ b/strings/Turtle.java @@ -1,4 +1,5 @@ //: strings/Turtle.java +// ©2015 MindView LLC: see Copyright.txt import java.io.*; import java.util.*; diff --git a/strings/UsingStringBuilder.java b/strings/UsingStringBuilder.java index d9d44e1a..f75b70fd 100644 --- a/strings/UsingStringBuilder.java +++ b/strings/UsingStringBuilder.java @@ -1,4 +1,5 @@ //: strings/UsingStringBuilder.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class UsingStringBuilder { diff --git a/strings/WhitherStringBuilder.java b/strings/WhitherStringBuilder.java index 2c59a881..3d6a1e12 100644 --- a/strings/WhitherStringBuilder.java +++ b/strings/WhitherStringBuilder.java @@ -1,4 +1,5 @@ //: strings/WhitherStringBuilder.java +// ©2015 MindView LLC: see Copyright.txt public class WhitherStringBuilder { public String implicit(String[] fields) { diff --git a/swt/ColorBoxes.java b/swt/ColorBoxes.java index 2b2eab03..6501971d 100644 --- a/swt/ColorBoxes.java +++ b/swt/ColorBoxes.java @@ -1,4 +1,5 @@ //: swt/ColorBoxes.java +// ©2015 MindView LLC: see Copyright.txt // SWT translation of Swing ColorBoxes.java. import swt.util.*; import org.eclipse.swt.*; diff --git a/swt/DisplayEnvironment.java b/swt/DisplayEnvironment.java index 9aab8dbd..e8720b00 100644 --- a/swt/DisplayEnvironment.java +++ b/swt/DisplayEnvironment.java @@ -1,4 +1,5 @@ //: swt/DisplayEnvironment.java +// ©2015 MindView LLC: see Copyright.txt import swt.util.*; import org.eclipse.swt.*; import org.eclipse.swt.widgets.*; diff --git a/swt/DisplayProperties.java b/swt/DisplayProperties.java index 754cf8e3..ebb7a9a1 100644 --- a/swt/DisplayProperties.java +++ b/swt/DisplayProperties.java @@ -1,4 +1,5 @@ //: swt/DisplayProperties.java +// ©2015 MindView LLC: see Copyright.txt import org.eclipse.swt.*; import org.eclipse.swt.widgets.*; import org.eclipse.swt.layout.*; diff --git a/swt/HelloSWT.java b/swt/HelloSWT.java index 61d61c7e..5dab3123 100644 --- a/swt/HelloSWT.java +++ b/swt/HelloSWT.java @@ -1,4 +1,5 @@ //: swt/HelloSWT.java +// ©2015 MindView LLC: see Copyright.txt // {Requires: org.eclipse.swt.widgets.Display; You must // install the SWT library from http://www.eclipse.org } import org.eclipse.swt.widgets.*; diff --git a/swt/Menus.java b/swt/Menus.java index b44a37af..d75f777b 100644 --- a/swt/Menus.java +++ b/swt/Menus.java @@ -1,4 +1,5 @@ //: swt/Menus.java +// ©2015 MindView LLC: see Copyright.txt // Fun with menus. import swt.util.*; import org.eclipse.swt.*; diff --git a/swt/ShellsAreMainWindows.java b/swt/ShellsAreMainWindows.java index db32d2d8..14e9f1f2 100644 --- a/swt/ShellsAreMainWindows.java +++ b/swt/ShellsAreMainWindows.java @@ -1,4 +1,5 @@ //: swt/ShellsAreMainWindows.java +// ©2015 MindView LLC: see Copyright.txt import org.eclipse.swt.widgets.*; public class ShellsAreMainWindows { diff --git a/swt/SineWave.java b/swt/SineWave.java index 94da645f..2f7cba7a 100644 --- a/swt/SineWave.java +++ b/swt/SineWave.java @@ -1,4 +1,5 @@ //: swt/SineWave.java +// ©2015 MindView LLC: see Copyright.txt // SWT translation of Swing SineWave.java. import swt.util.*; import org.eclipse.swt.*; diff --git a/swt/TabbedPane.java b/swt/TabbedPane.java index 997e50b9..1f03e1ce 100644 --- a/swt/TabbedPane.java +++ b/swt/TabbedPane.java @@ -1,4 +1,5 @@ //: swt/TabbedPane.java +// ©2015 MindView LLC: see Copyright.txt // Placing SWT components in tabbed panes. import swt.util.*; import org.eclipse.swt.*; diff --git a/swt/util/SWTApplication.java b/swt/util/SWTApplication.java index 9e3847f9..75735634 100644 --- a/swt/util/SWTApplication.java +++ b/swt/util/SWTApplication.java @@ -1,4 +1,5 @@ //: swt/util/SWTApplication.java +// ©2015 MindView LLC: see Copyright.txt package swt.util; import org.eclipse.swt.widgets.*; diff --git a/swt/util/SWTConsole.java b/swt/util/SWTConsole.java index b1a87613..fcdef505 100644 --- a/swt/util/SWTConsole.java +++ b/swt/util/SWTConsole.java @@ -1,4 +1,5 @@ //: swt/util/SWTConsole.java +// ©2015 MindView LLC: see Copyright.txt package swt.util; import org.eclipse.swt.widgets.*; diff --git a/tools/update_git.py b/tools/update_git.py index 2e350f9a..f87d4e1f 100644 --- a/tools/update_git.py +++ b/tools/update_git.py @@ -81,9 +81,62 @@ def update_to_git(): f.endswith("build.xml")): print(f) + +def comment_header(lines): + if lines[0][0] == "#": + cmt = "#" + else: + cmt = "//" + result = [] + for line in lines: + if line.startswith(cmt): + result.append(line) + else: + return result + + +@CmdLine('t') +def tops_file(): + "Create file tops.txt with tops of all book code files" + os.chdir(str(examplePath)) + candidates = list(Path(".").rglob("*.java")) + list(Path(".").rglob("*.py")) + list(Path(".").rglob("*.cpp")) + with (examplePath/"tops.txt").open('w') as tops: + for c in candidates: + lines = c.open().readlines() + if lines[0].startswith("//:") or lines[0].startswith("#:"): + tops.write(ruler(c)) + for line in lines[:8]: + tops.write(line) + # tops.write(ruler()) + # for line in comment_header(lines): + # tops.write(line) + tops.write(ruler()) + for line in insert_copyright(lines)[:9]: + tops.write(line) + tops.write("\n") + +def insert_copyright(lines): + if "Copyright.txt" in lines[1]: + return lines + if lines[0][0] == "#": + cmt = "#" + else: + cmt = "//" + return [lines[0], cmt + " ©2015 MindView LLC: see Copyright.txt\n"] + lines[1:] + @CmdLine('c') -def copyright(): - "Add copyright notices to all java, py and cpp files in github repo" +def add_copyright(): + "Add copyright line to all book code files" + os.chdir(str(examplePath)) + candidates = list(Path(".").rglob("*.java")) + list(Path(".").rglob("*.py")) + list(Path(".").rglob("*.cpp")) + for c in candidates: + with c.open() as code: + lines = code.readlines() + if lines[0].startswith("//:") or lines[0].startswith("#:"): + if "Copyright.txt" not in lines[1]: + copyrighted = insert_copyright(lines) + with c.open('w') as crighted: + crighted.writelines(copyrighted) if __name__ == '__main__': CmdLine.run() diff --git a/typeinfo/AnonymousImplementation.java b/typeinfo/AnonymousImplementation.java index 41b8ec3c..e6145047 100644 --- a/typeinfo/AnonymousImplementation.java +++ b/typeinfo/AnonymousImplementation.java @@ -1,4 +1,5 @@ //: typeinfo/AnonymousImplementation.java +// ©2015 MindView LLC: see Copyright.txt // Anonymous inner classes can't hide from reflection. import typeinfo.interfacea.*; import static net.mindview.util.Print.*; diff --git a/typeinfo/BoundedClassReferences.java b/typeinfo/BoundedClassReferences.java index 64e4d01c..91746844 100644 --- a/typeinfo/BoundedClassReferences.java +++ b/typeinfo/BoundedClassReferences.java @@ -1,4 +1,5 @@ //: typeinfo/BoundedClassReferences.java +// ©2015 MindView LLC: see Copyright.txt public class BoundedClassReferences { public static void main(String[] args) { diff --git a/typeinfo/ClassCasts.java b/typeinfo/ClassCasts.java index d1fa075f..5690d0fa 100644 --- a/typeinfo/ClassCasts.java +++ b/typeinfo/ClassCasts.java @@ -1,4 +1,5 @@ //: typeinfo/ClassCasts.java +// ©2015 MindView LLC: see Copyright.txt class Building {} class House extends Building {} diff --git a/typeinfo/ClassInitialization.java b/typeinfo/ClassInitialization.java index f91a6195..473e632a 100644 --- a/typeinfo/ClassInitialization.java +++ b/typeinfo/ClassInitialization.java @@ -1,4 +1,5 @@ //: typeinfo/ClassInitialization.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; class Initable { diff --git a/typeinfo/FamilyVsExactType.java b/typeinfo/FamilyVsExactType.java index aed9441a..3f4629be 100644 --- a/typeinfo/FamilyVsExactType.java +++ b/typeinfo/FamilyVsExactType.java @@ -1,4 +1,5 @@ //: typeinfo/FamilyVsExactType.java +// ©2015 MindView LLC: see Copyright.txt // The difference between instanceof and class package typeinfo; import static net.mindview.util.Print.*; diff --git a/typeinfo/FilledList.java b/typeinfo/FilledList.java index 375b9041..9d2add50 100644 --- a/typeinfo/FilledList.java +++ b/typeinfo/FilledList.java @@ -1,4 +1,5 @@ //: typeinfo/FilledList.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; class CountedInteger { diff --git a/typeinfo/GenericClassReferences.java b/typeinfo/GenericClassReferences.java index 4d8bdacd..88bb1816 100644 --- a/typeinfo/GenericClassReferences.java +++ b/typeinfo/GenericClassReferences.java @@ -1,4 +1,5 @@ //: typeinfo/GenericClassReferences.java +// ©2015 MindView LLC: see Copyright.txt public class GenericClassReferences { public static void main(String[] args) { diff --git a/typeinfo/HiddenImplementation.java b/typeinfo/HiddenImplementation.java index 6aeb44a0..07d10682 100644 --- a/typeinfo/HiddenImplementation.java +++ b/typeinfo/HiddenImplementation.java @@ -1,4 +1,5 @@ //: typeinfo/HiddenImplementation.java +// ©2015 MindView LLC: see Copyright.txt // Sneaking around package access. import typeinfo.interfacea.*; import typeinfo.packageaccess.*; diff --git a/typeinfo/InnerImplementation.java b/typeinfo/InnerImplementation.java index 0c00e481..f52fa957 100644 --- a/typeinfo/InnerImplementation.java +++ b/typeinfo/InnerImplementation.java @@ -1,4 +1,5 @@ //: typeinfo/InnerImplementation.java +// ©2015 MindView LLC: see Copyright.txt // Private inner classes can't hide from reflection. import typeinfo.interfacea.*; import static net.mindview.util.Print.*; diff --git a/typeinfo/InterfaceViolation.java b/typeinfo/InterfaceViolation.java index 09c48164..5fd150be 100644 --- a/typeinfo/InterfaceViolation.java +++ b/typeinfo/InterfaceViolation.java @@ -1,4 +1,5 @@ //: typeinfo/InterfaceViolation.java +// ©2015 MindView LLC: see Copyright.txt // Sneaking around an interface. import typeinfo.interfacea.*; diff --git a/typeinfo/ModifyingPrivateFields.java b/typeinfo/ModifyingPrivateFields.java index fbeb2a5f..98042311 100644 --- a/typeinfo/ModifyingPrivateFields.java +++ b/typeinfo/ModifyingPrivateFields.java @@ -1,4 +1,5 @@ //: typeinfo/ModifyingPrivateFields.java +// ©2015 MindView LLC: see Copyright.txt import java.lang.reflect.*; class WithPrivateFinalField { diff --git a/typeinfo/NullRobot.java b/typeinfo/NullRobot.java index d0cf1846..df22ff86 100644 --- a/typeinfo/NullRobot.java +++ b/typeinfo/NullRobot.java @@ -1,4 +1,5 @@ //: typeinfo/NullRobot.java +// ©2015 MindView LLC: see Copyright.txt // Using a dynamic proxy to create a Null Object. import java.lang.reflect.*; import java.util.*; diff --git a/typeinfo/Operation.java b/typeinfo/Operation.java index 4c1a0d7e..2051cae6 100644 --- a/typeinfo/Operation.java +++ b/typeinfo/Operation.java @@ -1,4 +1,5 @@ //: typeinfo/Operation.java +// ©2015 MindView LLC: see Copyright.txt public interface Operation { String description(); diff --git a/typeinfo/Person.java b/typeinfo/Person.java index 0db3d2a3..e2d0e5b0 100644 --- a/typeinfo/Person.java +++ b/typeinfo/Person.java @@ -1,4 +1,5 @@ //: typeinfo/Person.java +// ©2015 MindView LLC: see Copyright.txt // A class with a Null Object. import net.mindview.util.*; diff --git a/typeinfo/PetCount.java b/typeinfo/PetCount.java index 5a19d0a4..2c6e6426 100644 --- a/typeinfo/PetCount.java +++ b/typeinfo/PetCount.java @@ -1,4 +1,5 @@ //: typeinfo/PetCount.java +// ©2015 MindView LLC: see Copyright.txt // Using instanceof. import typeinfo.pets.*; import java.util.*; diff --git a/typeinfo/PetCount2.java b/typeinfo/PetCount2.java index bac5e633..f6d23677 100644 --- a/typeinfo/PetCount2.java +++ b/typeinfo/PetCount2.java @@ -1,4 +1,5 @@ //: typeinfo/PetCount2.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; public class PetCount2 { diff --git a/typeinfo/PetCount3.java b/typeinfo/PetCount3.java index c03061c6..5f9be303 100644 --- a/typeinfo/PetCount3.java +++ b/typeinfo/PetCount3.java @@ -1,4 +1,5 @@ //: typeinfo/PetCount3.java +// ©2015 MindView LLC: see Copyright.txt // Using isInstance() import typeinfo.pets.*; import java.util.*; diff --git a/typeinfo/PetCount4.java b/typeinfo/PetCount4.java index a29e7eb4..cc0a50b2 100644 --- a/typeinfo/PetCount4.java +++ b/typeinfo/PetCount4.java @@ -1,4 +1,5 @@ //: typeinfo/PetCount4.java +// ©2015 MindView LLC: see Copyright.txt import typeinfo.pets.*; import net.mindview.util.*; import static net.mindview.util.Print.*; diff --git a/typeinfo/Position.java b/typeinfo/Position.java index 5de0c8c3..d7ae29ab 100644 --- a/typeinfo/Position.java +++ b/typeinfo/Position.java @@ -1,4 +1,5 @@ //: typeinfo/Position.java +// ©2015 MindView LLC: see Copyright.txt class Position { private String title; diff --git a/typeinfo/RegisteredFactories.java b/typeinfo/RegisteredFactories.java index d482820c..7f6594ef 100644 --- a/typeinfo/RegisteredFactories.java +++ b/typeinfo/RegisteredFactories.java @@ -1,4 +1,5 @@ //: typeinfo/RegisteredFactories.java +// ©2015 MindView LLC: see Copyright.txt // Registering Class Factories in the base class. import typeinfo.factory.*; import java.util.*; diff --git a/typeinfo/Robot.java b/typeinfo/Robot.java index 5e110fc2..62c9a6bc 100644 --- a/typeinfo/Robot.java +++ b/typeinfo/Robot.java @@ -1,4 +1,5 @@ //: typeinfo/Robot.java +// ©2015 MindView LLC: see Copyright.txt import net.mindview.util.*; import java.util.*; diff --git a/typeinfo/SelectingMethods.java b/typeinfo/SelectingMethods.java index b627c37f..7d04a86b 100644 --- a/typeinfo/SelectingMethods.java +++ b/typeinfo/SelectingMethods.java @@ -1,4 +1,5 @@ //: typeinfo/SelectingMethods.java +// ©2015 MindView LLC: see Copyright.txt // Looking for particular methods in a dynamic proxy. import java.lang.reflect.*; import static net.mindview.util.Print.*; diff --git a/typeinfo/Shapes.java b/typeinfo/Shapes.java index cabab9a3..2aa7cbea 100644 --- a/typeinfo/Shapes.java +++ b/typeinfo/Shapes.java @@ -1,4 +1,5 @@ //: typeinfo/Shapes.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; abstract class Shape { diff --git a/typeinfo/ShowMethods.java b/typeinfo/ShowMethods.java index 8564ba2e..bf4d21db 100644 --- a/typeinfo/ShowMethods.java +++ b/typeinfo/ShowMethods.java @@ -1,4 +1,5 @@ //: typeinfo/ShowMethods.java +// ©2015 MindView LLC: see Copyright.txt // Using reflection to show all the methods of a class, // even if the methods are defined in the base class. // {Args: ShowMethods} diff --git a/typeinfo/SimpleDynamicProxy.java b/typeinfo/SimpleDynamicProxy.java index 281ae985..45799f75 100644 --- a/typeinfo/SimpleDynamicProxy.java +++ b/typeinfo/SimpleDynamicProxy.java @@ -1,4 +1,5 @@ //: typeinfo/SimpleDynamicProxy.java +// ©2015 MindView LLC: see Copyright.txt import java.lang.reflect.*; class DynamicProxyHandler implements InvocationHandler { diff --git a/typeinfo/SimpleProxyDemo.java b/typeinfo/SimpleProxyDemo.java index 169b2481..b43bd89e 100644 --- a/typeinfo/SimpleProxyDemo.java +++ b/typeinfo/SimpleProxyDemo.java @@ -1,4 +1,5 @@ //: typeinfo/SimpleProxyDemo.java +// ©2015 MindView LLC: see Copyright.txt import static net.mindview.util.Print.*; interface Interface { diff --git a/typeinfo/SnowRemovalRobot.java b/typeinfo/SnowRemovalRobot.java index 051b9a6b..9634a133 100644 --- a/typeinfo/SnowRemovalRobot.java +++ b/typeinfo/SnowRemovalRobot.java @@ -1,4 +1,5 @@ //: typeinfo/SnowRemovalRobot.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class SnowRemovalRobot implements Robot { diff --git a/typeinfo/Staff.java b/typeinfo/Staff.java index 53f1b0a2..30e5abe9 100644 --- a/typeinfo/Staff.java +++ b/typeinfo/Staff.java @@ -1,4 +1,5 @@ //: typeinfo/Staff.java +// ©2015 MindView LLC: see Copyright.txt import java.util.*; public class Staff extends ArrayList { diff --git a/typeinfo/SweetShop.java b/typeinfo/SweetShop.java index a6e68421..73ba846a 100644 --- a/typeinfo/SweetShop.java +++ b/typeinfo/SweetShop.java @@ -1,4 +1,5 @@ //: typeinfo/SweetShop.java +// ©2015 MindView LLC: see Copyright.txt // Examination of the way the class loader works. import static net.mindview.util.Print.*; diff --git a/typeinfo/WildcardClassReferences.java b/typeinfo/WildcardClassReferences.java index 22cc6ae7..3ba93c24 100644 --- a/typeinfo/WildcardClassReferences.java +++ b/typeinfo/WildcardClassReferences.java @@ -1,4 +1,5 @@ //: typeinfo/WildcardClassReferences.java +// ©2015 MindView LLC: see Copyright.txt public class WildcardClassReferences { public static void main(String[] args) { diff --git a/typeinfo/factory/Factory.java b/typeinfo/factory/Factory.java index cfd268fd..3ba90e6e 100644 --- a/typeinfo/factory/Factory.java +++ b/typeinfo/factory/Factory.java @@ -1,3 +1,4 @@ //: typeinfo/factory/Factory.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.factory; public interface Factory { T create(); } ///:~ diff --git a/typeinfo/interfacea/A.java b/typeinfo/interfacea/A.java index d1eb6c64..343cb0ba 100644 --- a/typeinfo/interfacea/A.java +++ b/typeinfo/interfacea/A.java @@ -1,4 +1,5 @@ //: typeinfo/interfacea/A.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.interfacea; public interface A { diff --git a/typeinfo/packageaccess/HiddenC.java b/typeinfo/packageaccess/HiddenC.java index 880496ad..3da8fca2 100644 --- a/typeinfo/packageaccess/HiddenC.java +++ b/typeinfo/packageaccess/HiddenC.java @@ -1,4 +1,5 @@ //: typeinfo/packageaccess/HiddenC.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.packageaccess; import typeinfo.interfacea.*; import static net.mindview.util.Print.*; diff --git a/typeinfo/pets/Cat.java b/typeinfo/pets/Cat.java index eba7fe4c..8ba1d165 100644 --- a/typeinfo/pets/Cat.java +++ b/typeinfo/pets/Cat.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Cat.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class Cat extends Pet { diff --git a/typeinfo/pets/Cymric.java b/typeinfo/pets/Cymric.java index 60d5a95d..612a94a8 100644 --- a/typeinfo/pets/Cymric.java +++ b/typeinfo/pets/Cymric.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Cymric.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class Cymric extends Manx { diff --git a/typeinfo/pets/Dog.java b/typeinfo/pets/Dog.java index 1cd2e449..7ab622c9 100644 --- a/typeinfo/pets/Dog.java +++ b/typeinfo/pets/Dog.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Dog.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class Dog extends Pet { diff --git a/typeinfo/pets/EgyptianMau.java b/typeinfo/pets/EgyptianMau.java index 68480d1f..1625270d 100644 --- a/typeinfo/pets/EgyptianMau.java +++ b/typeinfo/pets/EgyptianMau.java @@ -1,4 +1,5 @@ //: typeinfo/pets/EgyptianMau.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class EgyptianMau extends Cat { diff --git a/typeinfo/pets/ForNameCreator.java b/typeinfo/pets/ForNameCreator.java index 4cf713e7..b5c736fd 100644 --- a/typeinfo/pets/ForNameCreator.java +++ b/typeinfo/pets/ForNameCreator.java @@ -1,4 +1,5 @@ //: typeinfo/pets/ForNameCreator.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; import java.util.*; diff --git a/typeinfo/pets/Hamster.java b/typeinfo/pets/Hamster.java index a7976773..5c5a2457 100644 --- a/typeinfo/pets/Hamster.java +++ b/typeinfo/pets/Hamster.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Hamster.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class Hamster extends Rodent { diff --git a/typeinfo/pets/Individual.java b/typeinfo/pets/Individual.java index cab7907e..2fa091c3 100644 --- a/typeinfo/pets/Individual.java +++ b/typeinfo/pets/Individual.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Individual.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class Individual implements Comparable { diff --git a/typeinfo/pets/LiteralPetCreator.java b/typeinfo/pets/LiteralPetCreator.java index 4f619e3d..c610dd41 100644 --- a/typeinfo/pets/LiteralPetCreator.java +++ b/typeinfo/pets/LiteralPetCreator.java @@ -1,4 +1,5 @@ //: typeinfo/pets/LiteralPetCreator.java +// ©2015 MindView LLC: see Copyright.txt // Using class literals. package typeinfo.pets; import java.util.*; diff --git a/typeinfo/pets/Manx.java b/typeinfo/pets/Manx.java index 939b11d6..327378cc 100644 --- a/typeinfo/pets/Manx.java +++ b/typeinfo/pets/Manx.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Manx.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class Manx extends Cat { diff --git a/typeinfo/pets/Mouse.java b/typeinfo/pets/Mouse.java index d4795b50..d4c53bef 100644 --- a/typeinfo/pets/Mouse.java +++ b/typeinfo/pets/Mouse.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Mouse.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class Mouse extends Rodent { diff --git a/typeinfo/pets/Mutt.java b/typeinfo/pets/Mutt.java index 4646967d..5a1f6722 100644 --- a/typeinfo/pets/Mutt.java +++ b/typeinfo/pets/Mutt.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Mutt.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class Mutt extends Dog { diff --git a/typeinfo/pets/Person.java b/typeinfo/pets/Person.java index 83ac0040..aa98366c 100644 --- a/typeinfo/pets/Person.java +++ b/typeinfo/pets/Person.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Person.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class Person extends Individual { diff --git a/typeinfo/pets/Pet.java b/typeinfo/pets/Pet.java index fb390c91..4b7a5611 100644 --- a/typeinfo/pets/Pet.java +++ b/typeinfo/pets/Pet.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Pet.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class Pet extends Individual { diff --git a/typeinfo/pets/PetCreator.java b/typeinfo/pets/PetCreator.java index a4bb8f91..b316c5e0 100644 --- a/typeinfo/pets/PetCreator.java +++ b/typeinfo/pets/PetCreator.java @@ -1,4 +1,5 @@ //: typeinfo/pets/PetCreator.java +// ©2015 MindView LLC: see Copyright.txt // Creates random sequences of Pets. package typeinfo.pets; import java.util.*; diff --git a/typeinfo/pets/Pets.java b/typeinfo/pets/Pets.java index bedf6584..dbd97fbe 100644 --- a/typeinfo/pets/Pets.java +++ b/typeinfo/pets/Pets.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Pets.java +// ©2015 MindView LLC: see Copyright.txt // 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 853b9691..c9738734 100644 --- a/typeinfo/pets/Pug.java +++ b/typeinfo/pets/Pug.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Pug.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class Pug extends Dog { diff --git a/typeinfo/pets/Rat.java b/typeinfo/pets/Rat.java index 7e89c145..df93d7ad 100644 --- a/typeinfo/pets/Rat.java +++ b/typeinfo/pets/Rat.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Rat.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class Rat extends Rodent { diff --git a/typeinfo/pets/Rodent.java b/typeinfo/pets/Rodent.java index 6ed2c144..fa34b24c 100644 --- a/typeinfo/pets/Rodent.java +++ b/typeinfo/pets/Rodent.java @@ -1,4 +1,5 @@ //: typeinfo/pets/Rodent.java +// ©2015 MindView LLC: see Copyright.txt package typeinfo.pets; public class Rodent extends Pet { diff --git a/typeinfo/toys/GenericToyTest.java b/typeinfo/toys/GenericToyTest.java index a07425a2..4d480944 100644 --- a/typeinfo/toys/GenericToyTest.java +++ b/typeinfo/toys/GenericToyTest.java @@ -1,4 +1,5 @@ //: typeinfo/toys/GenericToyTest.java +// ©2015 MindView LLC: see Copyright.txt // Testing class Class. package typeinfo.toys; diff --git a/typeinfo/toys/ToyTest.java b/typeinfo/toys/ToyTest.java index 1ab7fa98..33e05623 100644 --- a/typeinfo/toys/ToyTest.java +++ b/typeinfo/toys/ToyTest.java @@ -1,4 +1,5 @@ //: typeinfo/toys/ToyTest.java +// ©2015 MindView LLC: see Copyright.txt // Testing class Class. package typeinfo.toys; import static net.mindview.util.Print.*; diff --git a/unittesting/JUnitDemo.java b/unittesting/JUnitDemo.java index 0491fde3..0cf31ef2 100644 --- a/unittesting/JUnitDemo.java +++ b/unittesting/JUnitDemo.java @@ -1,4 +1,5 @@ //: unittesting/JUnitDemo.java +// ©2015 MindView LLC: see Copyright.txt // Simple use of JUnit to test ArrayList // (Install libraries from www.junit.org) import java.util.*; diff --git a/xml/APerson.java b/xml/APerson.java index 9298d7c8..9a199e4b 100644 --- a/xml/APerson.java +++ b/xml/APerson.java @@ -1,4 +1,5 @@ //: xml/APerson.java +// ©2015 MindView LLC: see Copyright.txt // Use the XOM library to write and read XML // {Requires: nu.xom.Node; You must install // the XOM library from http://www.xom.nu } diff --git a/xml/People.java b/xml/People.java index bcc35e60..ef28dbbd 100644 --- a/xml/People.java +++ b/xml/People.java @@ -1,4 +1,5 @@ //: xml/People.java +// ©2015 MindView LLC: see Copyright.txt // {Requires: nu.xom.Node; You must install // the XOM library from http://www.xom.nu } // {RunFirst: APerson}