Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 21a6e00

Browse files
updatesr
1 parent 0095815 commit 21a6e00

30 files changed

+49
-164
lines changed

‎README.md‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,25 @@ object-oriented, GUI programming, advanced GUI and Web programming using Java...
2020
<h1 style="text-align: center">Companion Content</h1>
2121
<h6>Additional online learning material that came with the books</h6>
2222

23-
#### <a href="http://liveexample.pearsoncmg.com/liang/intro10e">10th Edition Companion Website</a>
23+
### <a href="https://media.pearsoncmg.com/ph/esm/ecs_liang_ijp_11/cw/#web-chapters">Bonus Chapters Online</a>
2424

25-
#### <a href="#self-check-quizs">Self-Check Chapter Quiz's</a>
25+
### <a href="https://liveexample.pearsoncmg.com/CheckExercise/faces/CheckExercise.xhtml?chapter=1&programName=Exercise01_01">Exercise Check Tool</a>
2626

27-
#### <a href="https://liveexample.pearsoncmg.com/CheckExercise/faces/CheckExercise.xhtml?chapter=1&programName=Exercise01_01">Exercise Check Tool</a>
27+
### <a href="https://media.pearsoncmg.com/ph/esm/ecs_liang_java_13e/cw/#videonotes">Video Notes</a>
2828

29-
#### <a href="https://liveexample.pearsoncmg.com/javarevel2e.html">Hints to Quizzes and Programming Projects</a>
29+
### <a href="#self-check-quizs">Self-Check Chapter Quiz's</a>
3030

31-
#### <a href='#checkpoint-answers'>Checkpoint Answers</a>
31+
### <a href="https://liveexample.pearsoncmg.com/javarevel2e.html">Hints to Quizzes and Programming Projects</a>
3232

33-
#### <a href="https://media.pearsoncmg.com/ph/esm/ecs_liang_ijp_10/ExampleByChapters.html">Example Programs By Chapter</a>
33+
### <a href='#checkpoint-answers'>Checkpoint Answers</a>
3434

35-
#### <a href="http://liveexample.pearsoncmg.com/liang/animation/animation.html">Algorithm Animations</a>
35+
### <a href='https://media.pearsoncmg.com/ph/esm/ecs_liang_java_13e/downloads/even_numbered_exercise_UML_diagram/EvenNumberedExerciseUMLDiagram.html'>UML Diagrams for Chapter 9 - 13</a>
3636

37-
#### <a href="https://media.pearsoncmg.com/ph/esm/ecs_liang_ijp_10/supplement/Supplement1dcodingguidelines.html">Java Coding Style Guidelines</a>
37+
### <a href="https://media.pearsoncmg.com/ph/esm/ecs_liang_ijp_10/ExampleByChapters.html">Example Programs By Chapter</a>
38+
39+
### <a href="http://liveexample.pearsoncmg.com/liang/animation/animation.html">Algorithm Animations</a>
40+
41+
### <a href="https://media.pearsoncmg.com/ph/esm/ecs_liang_ijp_10/supplement/Supplement1dcodingguidelines.html">Java Coding Style Guidelines</a>
3842

3943
____
4044
<span id="contribute"><span/>

‎ch_15/Exercise15_30.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ public class Exercise15_30 extends Application {
3333
public void start(Stage primaryStage) {
3434
Image[] image = new Image[26];
3535

36-
for (int i = 1; i <= 25; i++) {
37-
String imagePath = "resources" + File.separator + "images" +
38-
File.separator + "card" + File.separator + i + ".png";
36+
for (int i = 0; i < 25; i++) {
37+
String imagePath = "resources" + File.separator + "images" + File.separator + "slide" + i + ".jpg";
3938
image[i] = new Image(imagePath);
4039
}
4140

‎ch_28/Exercise28_02.java‎ renamed to ‎ch_28/exercise28_02/Exercise28_02.java‎

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
package ch_28;
1+
package ch_28.exercise28_02;
2+
3+
import java.io.File;
4+
import java.io.FileNotFoundException;
5+
import java.io.PrintWriter;
26

37
/**
48
* *28.2 (Create a file for a graph) Modify Listing 28.1, TestGraph.java, to create a file
@@ -39,27 +43,36 @@ public static void main(String[] args) throws java.io.FileNotFoundException {
3943
{10, 2}, {10, 4}, {10, 8}, {10, 11},
4044
{11, 8}, {11, 9}, {11, 10}
4145
};
46+
String packageName = Exercise28_02.class.getPackage().getName();
47+
String[] packageParts = packageName.split("\\.");
48+
packageName = String.join(File.separator, packageParts);
49+
String filePath = packageName + File.separator + "Exercise28_02.txt";
50+
System.out.println("Writing to file: " + filePath);
51+
PrintWriter output = getPrintWriter(filePath, vertices, edges);
4252

43-
java.io.PrintWriter output = new java.io.PrintWriter("Exercise28_02.txt");
53+
System.out.println("Done!");
54+
output.close();
55+
}
4456

57+
private static PrintWriter getPrintWriter(String filePath, String[] vertices, int[][] edges) throws FileNotFoundException {
58+
PrintWriter output = new PrintWriter(filePath);
4559
int numberOfVertices = vertices.length;
4660
output.println(numberOfVertices);
4761
for (int startingVertex = 0; startingVertex < numberOfVertices; startingVertex++) {
4862
output.print(startingVertex + " ");
4963
int count = 0;
50-
for (inti = 0; i < edges.length; i++) {
51-
if (edges[i][0] == startingVertex) {
64+
for (int[] edge : edges) {
65+
if (edge[0] == startingVertex) {
5266
count++;
53-
if (count == 1)
54-
output.print(edges[i][1]);
55-
else
56-
output.print(" " + edges[i][1]);
67+
if (count == 1) {
68+
output.print(edge[1]);
69+
} else {
70+
output.print(" " + edge[1]);
71+
}
5772
}
5873
}
5974
if (count > 0) output.println();
6075
}
61-
62-
System.out.println("Done!");
63-
output.close();
76+
return output;
6477
}
6578
}

‎ch_32/Exercise32_02.java‎

Lines changed: 0 additions & 142 deletions
This file was deleted.

‎intro-to-java-programming.iml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>

‎resources/images/slide0.jpg‎

48.6 KB
Loading[フレーム]

‎resources/images/slide1.jpg‎

61.6 KB
Loading[フレーム]

‎resources/images/slide10.jpg‎

107 KB
Loading[フレーム]

‎resources/images/slide11.jpg‎

71.2 KB
Loading[フレーム]

‎resources/images/slide12.jpg‎

62.7 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /