Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. import
- 11. false
- 14. HI
- 15. ABCDEFGHIJ
- 16. hello
- 24. 5
- 25. package com.company;
- /*
- Amon Guinan
- Dec 5, 2018
- */
- public class Main {
- public static void main(String[] args) {
- // write your code here
- String s = "Hello World";
- System.out.println(s.length());
- }
- }
- 26.
- public class Main {
- public static void main(String[] args) {
- // write your code here
- Scanner reader = new Scanner(System.in);
- System.out.println("Enter a string: ");
- String n = reader.nextLine();
- System.out.println(n);
- System.out.println(n.length());
- reader.close();
- }
- }
- 27.
- System.out.println(s1+s2+s3+s4);
- 36.
- Decimal format should be double.
- 37.
- system is not System
- 38.
- you dont need String(). just "Hello World".
- 39.
- ?
- 43.
- ?
- 45.
- used int. Use string instead.
- 49.
- grade = grade *100;
Add Comment
Please, Sign In to add comment