Home
Add Document
Sign In
Create An Account
Data Types
Download PDF
Comment
Report
1 Downloads
204 Views
Lesson 4:
Data Types
AP Computer Science - Unit One
Data Types
int int value = 99;
This creates an integer variable in your Java program.
AP Computer Science - Unit One
Data Types
double double number = 46.12;
This creates a decimal variable in your Java program.
AP Computer Science - Unit One
Data Types
char char letter = ‘A’; char symbol = ‘%’;
This creates a character variable in your Java program.
AP Computer Science - Unit One
Data Types
String String firstName = “Mossie”;
This creates a String variable in your Java program. Strings hold any value not used for calculations.
AP Computer Science - Unit One
Input
What data type should you use for: age
String
double
int
average rainfall
String
double
int
street address
String
double
int
AP Computer Science - Unit One
Recommend Documents
Types of data
Understanding Data Types
×
Report Data Types
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
×
Sign In
Email
Password
Remember me
Forgot password?
Sign In
Login with Facebook
Our partners will collect data and use cookies for ad personalization and measurement.
Learn how we and our ad partner Google, collect and use data
.
Agree & Close