Professional Documents
Culture Documents
ThiscallstheStringconstructor,whichis
aspecialmethodthatsetsuptheobject
38
"Steve Jobs"
num1
38
num2
96
num2 = num1;
After:
num1
38
num2
38
For
name1
"Steve Jobs"
name2
"Steve Wozniak"
name2 = name1;
After:
name1
"Steve Jobs"
name2
See: ReferenceExample.java
Coming up: Aliases
See: StringMutation.java
Coming up: Class Libraries
Purpose
java.lang
java.applet
java.awt
javax.swing
java.net
java.util
javax.xml.parsers
Generalsupport
Creatingappletsfortheweb
Graphicsandgraphicaluserinterfaces
Additionalgraphicscapabilities
Networkcommunication
Utilities
XMLdocumentprocessing
Or you can import the class, and then use just the class
name
import java.util.Scanner;
Scanner myScanner = new Scanner(System.in);
myFile
\dir1\otherFile.java
\dir2\anotherFile.java
\dir3\dir4\lastFile.java
See RandomNumbers.java
See Purchase.java
See CircleStats.java
Primitive Type
Wrapper Class
byte
Byte
short
Short
int
Integer
long
Long
float
Float
double
Double
char
Character
boolean
Boolean
void
Void
End of presentation