it's time to play
DESCRIPTION
IT'S TIME TO PLAY. ROUND 1. Name a method associated with class String. length(). 1.). 34. indexOf(). 2.). 26. compareTo(). 15. 3.). charAt(). 4.). 11. substring(). 5.). 7. toUpper(). 3. 6.). ROUND 1. Name a method associated with class Math. max(). 1.). 25. min(). 2.). - PowerPoint PPT PresentationTRANSCRIPT
ROUND 1
Name a method associated with class String
1.)
15compareTo()
26indexOf()
34length()
2.)
3.)
4.)
3toUpper()
7substring()
11charAt()
5.)
6.)
ROUND 1
Name a method associated with class Math
1.)
18random()
23min()
25max()
2.)
3.)
4.)
3round()
4pow()
12sqrt()
5.)
6.)
ROUND 2DOUBLE
Name a punctuation (syntax) symbol used in Java
1.)
30semicolon (end lines)
52braces (for structures)
74parenthesis (for methods)
2.)
3.)
4.)
8comma (separate parameters)
14dot/period (objects)
18quotation marks (strings)
5.)
6.)
ROUND 2DOUBLE
Name a rule for naming variables
1.)
36Can’t begin with a number
62Case sensitive
86No spaces
2.)
3.)
4.) 10No special characters
ROUND 3TRIPLE
Method divides a number by 2 until the answer is less than 1, then returns the number of divisions
1.)
75while (num >= 1) {
9int count = 0;
93int count2Div(int num) {
2.)
3.)
4.)
24return count; }
21count++; }
78num = num/2;
5.)
6.)
FINAL ROUND
Final Round
1
2
3
4
5
Final Round
1
2
3
4
5