Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 6. a class method
- 7. It is a class method
- 8. Quiz.foo();
- 13. Math.E ;
- 17. 5
- 18. 2.0
- 19. 3.141592653589793
- 20. 6.0
- 21. 4
- 22. 8
- 23. 8.0
- 28. System.out.print("Welcome ");
- System.out.print("to ");
- System.out.print("Java ");
- System.out.print("Illuminated ");
- 29. int max;
- int max = Math.max(3,5);
- System.out.print(max);
- 30. double d = 5.0;
- System.out.print(Math.sqrt(d));
- 31. System.out.print("Integer One: ");
- int firstInteger = scan.next();
- System.out.print("Integer Two: );
- int secondInteger = scan.next();
- System.out.print(Math.min(firstInteger,secondInteger));
- 32. System.out.print("Integer One: ");
- int firstInteger = scan.next();
- System.out.print("Integer Two: );
- int secondInteger = scan.next();
- System.out.print("Integer Three: );
- int thirdInteger = scan.next();
- System.out.print(Math.max(firstInteger,secondInteger,thirdinteger));
- 34. System.out.print("Decimal Number: ");
- double decimal = scan.next();
- System.out.print(Math.pow(decimal,1/2));
- 40. Math.round returns values in decimal format and short can't take decimal format.
- 41. Math.pow returns values in decimal format and int can't take decimal format.
- 42. Since PI is a method it should be Math.PI; not Math( PI );.
- 46. The M in math must be capitalized. Capitalize the M in math.
- 47. There should be no parenthesis following PI because PI is a fixed value with no parameters. Get rid of the parenthesis after Math.PI;.
- 48. The E in Math.E; should be capitalized. Capitalize the E in Math.E;.
- 53. double firstNumber = Math.random;
- double secondNumber = Math.random;
- System.out.print(Math.min(firstNumber,secondNumber));
- 54. System.out.print("Decimal Number: ");
- double decimalNumber = scan.next();
- System.out.print(Math.pow(decimalNumber,3));
Add Comment
Please, Sign In to add comment