Skip to content

Commit c9f227a

Browse files
committed
fix typos
1 parent 9cdeac1 commit c9f227a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

ch06/Strings.java

Lines 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

ch09/Objects.java

Lines 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
}

ch10/PointRect.java

Lines 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)