Skip to content

Commit d5cf2b7

Browse files
committed
New chapters and Netbeans mods
1 parent e413ad9 commit d5cf2b7

542 files changed

Lines changed: 6909 additions & 595 deletions

File tree

Some content is hidden

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

Copyright.txt

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
This computer source code is Copyright (c)2006 MindView, Inc.
1+
//: Copyright.txt
2+
This computer source code is Copyright 2015 MindView LLC
23
All Rights Reserved.
34

45
Permission to use, copy, modify, and distribute this
@@ -20,47 +21,54 @@ Java" is cited as the origin.
2021
3. Permission to incorporate the Source Code into printed
2122
media may be obtained by contacting:
2223

23-
MindView, Inc. 5343 Valle Vista La Mesa, California 91941
24-
24+
MindView LLC, PO Box 969, Crested Butte, CO 81224
25+
2526

2627
4. The Source Code and documentation are copyrighted by
27-
MindView, Inc. The Source code is provided without express
28+
MindView LLC. The Source code is provided without express
2829
or implied warranty of any kind, including any implied
2930
warranty of merchantability, fitness for a particular
30-
purpose or non-infringement. MindView, Inc. does not
31-
warrant that the operation of any program that includes the Source Code will be uninterrupted or error-free. MindView,
32-
Inc. makes no representation about the suitability of the
31+
purpose or non-infringement. MindView LLC does not
32+
warrant that the operation of any program that includes the
33+
Source Code will be uninterrupted or error-free. MindView
34+
LLC makes no representation about the suitability of the
3335
Source Code or of any software that includes the Source
3436
Code for any purpose. The entire risk as to the quality
3537
and performance of any program that includes the Source
3638
Code is with the user of the Source Code. The user
37-
understands that the Source Code was developed for research and instructional purposes and is advised not to rely
39+
understands that the Source Code was developed for research
40+
and instructional purposes and is advised not to rely
3841
exclusively for any reason on the Source Code or any
3942
program that includes the Source Code. Should the Source
4043
Code or any resulting software prove defective, the user
4144
assumes the cost of all necessary servicing, repair, or
4245
correction.
4346

44-
5. IN NO EVENT SHALL MINDVIEW, INC., OR ITS PUBLISHER BE
47+
5. IN NO EVENT SHALL MINDVIEW LLC, OR ITS PUBLISHER BE
4548
LIABLE TO ANY PARTY UNDER ANY LEGAL THEORY FOR DIRECT,
4649
INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
4750
INCLUDING LOST PROFITS, BUSINESS INTERRUPTION, LOSS OF
4851
BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS, OR FOR
4952
PERSONAL INJURIES, ARISING OUT OF THE USE OF THIS SOURCE
50-
CODE AND ITS DOCUMENTATION, OR ARISING OUT OF THE INABILITY TO USE ANY RESULTING PROGRAM, EVEN IF MINDVIEW, INC., OR
53+
CODE AND ITS DOCUMENTATION, OR ARISING OUT OF THE INABILITY
54+
TO USE ANY RESULTING PROGRAM, EVEN IF MINDVIEW LLC, OR
5155
ITS PUBLISHER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
52-
DAMAGE. MINDVIEW, INC. SPECIFICALLY DISCLAIMS ANY
56+
DAMAGE. MINDVIEW LLC SPECIFICALLY DISCLAIMS ANY
5357
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
5458
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
5559
PURPOSE. THE SOURCE CODE AND DOCUMENTATION PROVIDED
5660
HEREUNDER IS ON AN "AS IS" BASIS, WITHOUT ANY ACCOMPANYING
57-
SERVICES FROM MINDVIEW, INC., AND MINDVIEW, INC. HAS NO
61+
SERVICES FROM MINDVIEW LLC, AND MINDVIEW LLC HAS NO
5862
OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
5963
ENHANCEMENTS, OR MODIFICATIONS.
6064

61-
Please note that MindView, Inc. maintains a Web site which
62-
is the sole distribution point for electronic copies of the Source Code, http://www.MindView.net (and official mirror
63-
sites), where it is freely available under the terms stated above.
65+
Please note that MindView LLC maintains a Web site which
66+
is the sole distribution point for electronic copies of the
67+
Source Code, http://www.MindView.net (and official mirror
68+
sites), where it is freely available under the terms stated
69+
above.
6470

6571
If you think you've found an error in the Source Code,
66-
please submit a correction using the feedback system that you will find at http://www.MindView.net.
72+
please submit a correction using the feedback system that
73+
you will find at http://www.MindView.net.
74+
///:~

access/SingleImport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ public class SingleImport {
55
public static void main(String[] args) {
66
ArrayList list = new ArrayList();
77
}
8-
} ///:~
8+
} ///:~

access/build.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" ?>
2+
3+
<project default="run">
4+
<property name="chapter" value="access"/>
5+
<property name="excludedfiles" value=""/>
6+
<import file="../Ant-Common.xml"/>
7+
8+
<target name="run" description="Compile and run" depends="build">
9+
<touch file="failures"/>
10+
<jrun cls="Cake" />
11+
<jrun cls="ChocolateChip" />
12+
<jrun cls="ChocolateChip2" />
13+
<jrun cls="Dinner" />
14+
<jrun cls="FullQualification" />
15+
<jrun cls="IceCream" />
16+
<jrun cls="ImportedMyClass" />
17+
<jrun cls="LibTest" />
18+
<jrun cls="PrintTest" />
19+
<jrun cls="QualifiedMyClass" />
20+
<jrun cls="SingleImport" />
21+
<delete file="failures"/>
22+
</target>
23+
24+
</project>

annotations/AtUnitExample4.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class AtUnitExample4 {
1414
public AtUnitExample4(String word) { this.word = word; }
1515
public String getWord() { return word; }
1616
public String scrambleWord() {
17-
List<Character> chars = new ArrayList<Character>();
17+
List<Character> chars = new ArrayList<>();
1818
for(Character c : word.toCharArray())
1919
chars.add(c);
2020
Collections.shuffle(chars, rand);

annotations/AtUnitExample5.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
public class AtUnitExample5 {
88
private String text;
99
public AtUnitExample5(String text) { this.text = text; }
10+
@Override
1011
public String toString() { return text; }
1112
@TestProperty static PrintWriter output;
1213
@TestProperty static int counter;

annotations/HashSetTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import net.mindview.util.*;
66

77
public class HashSetTest {
8-
HashSet<String> testObject = new HashSet<String>();
8+
HashSet<String> testObject = new HashSet<>();
99
@Test void initialization() {
1010
assert testObject.isEmpty();
1111
}

annotations/InterfaceExtractorProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class InterfaceExtractorProcessor
1414
implements AnnotationProcessor {
1515
private final AnnotationProcessorEnvironment env;
1616
private ArrayList<MethodDeclaration> interfaceMethods =
17-
new ArrayList<MethodDeclaration>();
17+
new ArrayList<>();
1818
public InterfaceExtractorProcessor(
1919
AnnotationProcessorEnvironment env) { this.env = env; }
2020
public void process() {
@@ -58,4 +58,4 @@ public void process() {
5858
}
5959
}
6060
}
61-
} ///:~
61+
} ///:~

annotations/InterfaceExtractorProcessorFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ public Collection<String> supportedAnnotationTypes() {
2020
public Collection<String> supportedOptions() {
2121
return Collections.emptySet();
2222
}
23-
} ///:~
23+
} ///:~

annotations/StackL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import java.util.*;
55

66
public class StackL<T> {
7-
private LinkedList<T> list = new LinkedList<T>();
7+
private LinkedList<T> list = new LinkedList<>();
88
public void push(T v) { list.addFirst(v); }
99
public T top() { return list.getFirst(); }
1010
public T pop() { return list.removeFirst(); }

annotations/UseCaseTracker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class UseCaseTracker {
1818
}
1919
}
2020
public static void main(String[] args) {
21-
List<Integer> useCases = new ArrayList<Integer>();
21+
List<Integer> useCases = new ArrayList<>();
2222
Collections.addAll(useCases, 47, 48, 49, 50);
2323
trackUseCases(useCases, PasswordUtils.class);
2424
}

0 commit comments

Comments
 (0)