it's time to play

14

Upload: eddy

Post on 17-Jan-2016

58 views

Category:

Documents


1 download

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 Presentation

TRANSCRIPT

Page 1: IT'S TIME TO PLAY
Page 2: IT'S TIME TO PLAY

ROUND 1

Page 3: IT'S TIME TO PLAY

Name a method associated with class String

1.)

15compareTo()

26indexOf()

34length()

2.)

3.)

4.)

3toUpper()

7substring()

11charAt()

5.)

6.)

Page 4: IT'S TIME TO PLAY

ROUND 1

Page 5: IT'S TIME TO PLAY

Name a method associated with class Math

1.)

18random()

23min()

25max()

2.)

3.)

4.)

3round()

4pow()

12sqrt()

5.)

6.)

Page 6: IT'S TIME TO PLAY

ROUND 2DOUBLE

Page 7: IT'S TIME TO PLAY

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

Page 8: IT'S TIME TO PLAY

ROUND 2DOUBLE

Page 9: IT'S TIME TO PLAY

Name a rule for naming variables

1.)

36Can’t begin with a number

62Case sensitive

86No spaces

2.)

3.)

4.) 10No special characters

Page 10: IT'S TIME TO PLAY

ROUND 3TRIPLE

Page 11: IT'S TIME TO PLAY

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

Page 12: IT'S TIME TO PLAY

FINAL ROUND

Page 13: IT'S TIME TO PLAY

Final Round

1

2

3

4

5

Page 14: IT'S TIME TO PLAY

Final Round

1

2

3

4

5