sudoaptinstallname

Untitled

Dec 5th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. 1. import
  2. 11. false
  3. 14. HI
  4. 15. ABCDEFGHIJ
  5. 16. hello
  6. 24. 5
  7. 25. package com.company;
  8.  
  9. /*
  10.  
  11. Amon Guinan
  12. Dec 5, 2018
  13.  
  14. */
  15. public class Main {
  16.  
  17. public static void main(String[] args) {
  18. // write your code here
  19.  
  20. String s = "Hello World";
  21. System.out.println(s.length());
  22. }
  23.  
  24. }
  25.  
  26. 26.
  27. public class Main {
  28.  
  29. public static void main(String[] args) {
  30. // write your code here
  31.  
  32.  
  33. Scanner reader = new Scanner(System.in);
  34. System.out.println("Enter a string: ");
  35. String n = reader.nextLine();
  36. System.out.println(n);
  37. System.out.println(n.length());
  38.  
  39. reader.close();
  40. }
  41.  
  42. }
  43. 27.
  44. System.out.println(s1+s2+s3+s4);
  45. 36.
  46. Decimal format should be double.
  47. 37.
  48. system is not System
  49. 38.
  50. you dont need String(). just "Hello World".
  51. 39.
  52. ?
  53. 43.
  54. ?
  55. 45.
  56. used int. Use string instead.
  57. 49.
  58. grade = grade *100;
Add Comment
Please, Sign In to add comment