Presentation is loading. Please wait.

Presentation is loading. Please wait.

1. 3.0 + 4.0 A: 7.0 2 3.0 + 4 A: double 3 3 + “4” A: “34” 4.

Similar presentations


Presentation on theme: "1. 3.0 + 4.0 A: 7.0 2 3.0 + 4 A: double 3 3 + “4” A: “34” 4."— Presentation transcript:

1 1

2 3.0 + 4.0 A: 7.0 2

3 3.0 + 4 A: double 3

4 3 + “4” A: “34” 4

5 10 / 3 A: 3 5

6 5 % 7 A: 5 6

7 7 % 5 A: 2 7

8 7 / 5 A: 1 8

9 1.0 – 5 A: double 9

10 1.0 – 5 A: -4 10

11 “CS” + 13 + 9 A: String 11

12 “CS” + 13 + 9 A: “CS139” 12

13 5 / 7 A: int 13

14 5 / 7 A: 0 14

15 294 % 7 / 50.0 A: 0.0 15

16 294 % 7 / 50.0 A: double 16

17 Math.PI A: 3.14 (to two decimal places) 17

18 Math.PI A: double 18

19 17 / 25 * 1.0 0.0 19

20 1.0 + 7 % 25 20

21 7 / 3 * 6.0 / 2 21

22 true && false 22

23 false || true 23

24 false || true 24

25 ‘a’ < ‘b’ A: true 25

26 x != x 26

27 5 == ‘5’ 27

28 ‘a’ ‘Y’ 28

29 x == 3 && x == 5 29

30 x != 3 || x != 5 30

31 “Pinto”.equals(“Mustang”) A: boolean 31

32 3 + ( 6 + “4”) A: String 32

33 3 + ( 6 + “4”) A: “364” 33

34 “String 1”.compareTo(“Me”) A: int 34

35 10 / 3.0 A: 3.33 (two decimals) 35

36 10.0 / 3.0 3.33 (two decimals) 36

37 3 + 6 + “4” A: “94” 37

38 2.0 * (17 / 25) A: double 38

39 2.0 * (17 / 25) A: 0.0 39

40 17 % 25 A: 17 40

41 3 * 0 + 7.0 A: 7.0 41

42 3 * 0 + 7.0 A: double 42

43 3.0 + 5 + “” A: “8.0” 43

44 3.0 + 5 + “” A: String 44

45 3 * 7.0 / 1 <= 17 A: boolean 45

46 49 % 7 + 3 + 4 A: 7 46

47 (int) (6.0 + 7) % 3 A: int 47

48 (int) (6.0 + 7) % 3 A: 1 48

49 (double) 12 / 4 A: 3.0 49

50 (double) 12 / 4 A: double 50

51 5 – 1.0 A: -4.0 51


Download ppt "1. 3.0 + 4.0 A: 7.0 2 3.0 + 4 A: double 3 3 + “4” A: “34” 4."

Similar presentations


Ads by Google