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

Appearance settings

Commit c9f227a

Browse filesBrowse files
committed
fix typos
1 parent 9cdeac1 commit c9f227a
Copy full SHA for c9f227a

File tree

Expand file treeCollapse file tree

3 files changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎ch06/Strings.java‎

Copy file name to clipboardExpand all lines: ch06/Strings.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Demonstates uses of Strings.
2+
* Demonstrates uses of Strings.
33
*/
44
public class Strings {
55

Collapse file

‎ch09/Objects.java‎

Copy file name to clipboardExpand all lines: ch09/Objects.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java.math.BigInteger;
22

33
/**
4-
* Demonstates uses of objects and wrappers.
4+
* Demonstrates uses of objects and wrappers.
55
*/
66
public class Objects {
77

@@ -24,8 +24,8 @@ public static void main(String[] args) {
2424

2525
// Wrapper classes
2626

27-
Integer x = new Integer(123);
28-
Integer y = new Integer(123);
27+
Integer x = Integer.valueOf(123);
28+
Integer y = Integer.valueOf(123);
2929
if (x == y) { // false
3030
System.out.println("x and y are the same object");
3131
}
Collapse file

‎ch10/PointRect.java‎

Copy file name to clipboardExpand all lines: ch10/PointRect.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import java.awt.Rectangle;
33

44
/**
5-
* Demonstates use of Point and Rectangle classes.
5+
* Demonstrates use of Point and Rectangle classes.
66
*/
77
public class PointRect {
88

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.