Division: integer Rounding
Give this one a try later!
-The operator performs integer division, which does not generate any
fraction
- ¾→ 0
- 10/4→ 2
Program
Give this one a try later!
, Set of instructions for computer to follow
When do you place statements into methods
Give this one a try later!
When statements are related structurally or repeated
Syntax for an if statement
Give this one a try later!
if (<test>) {
<Statement(s)>;
}
Computer Science
Give this one a try later!
the study of processing algorithms for inputs in computers
Class
Give this one a try later!
, Tells you the name of the program
- Everyone executable java program consists of a class
- That contains a method named main
- That contains the statements (commands) to be executed
Class names
Give this one a try later!
- Begin with an uppercase letter
- eg., Hello, String
Variable/method names
Give this one a try later!
Begin with lowercase letter
What is the max line length
Give this one a try later!
100
Is java a strongly-typed language?
, Give this one a try later!
Yes, because it demands the declaration of every variable with a data type
How do you do a single-line comment
Give this one a try later!
start with //, ignores everything after symbol until end of line
Strings
Give this one a try later!
- A sequence of characters to be printed
- Starts and ends with a pair of double quotes
What is main
Give this one a try later!
a special method (first method executed)
What does int wage mean?
Give this one a try later!
Give this one a try later!
-The operator performs integer division, which does not generate any
fraction
- ¾→ 0
- 10/4→ 2
Program
Give this one a try later!
, Set of instructions for computer to follow
When do you place statements into methods
Give this one a try later!
When statements are related structurally or repeated
Syntax for an if statement
Give this one a try later!
if (<test>) {
<Statement(s)>;
}
Computer Science
Give this one a try later!
the study of processing algorithms for inputs in computers
Class
Give this one a try later!
, Tells you the name of the program
- Everyone executable java program consists of a class
- That contains a method named main
- That contains the statements (commands) to be executed
Class names
Give this one a try later!
- Begin with an uppercase letter
- eg., Hello, String
Variable/method names
Give this one a try later!
Begin with lowercase letter
What is the max line length
Give this one a try later!
100
Is java a strongly-typed language?
, Give this one a try later!
Yes, because it demands the declaration of every variable with a data type
How do you do a single-line comment
Give this one a try later!
start with //, ignores everything after symbol until end of line
Strings
Give this one a try later!
- A sequence of characters to be printed
- Starts and ends with a pair of double quotes
What is main
Give this one a try later!
a special method (first method executed)
What does int wage mean?
Give this one a try later!