Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. import
- 11. false
- 14. HI
- 15. ABCDEFGHIJ
- 16. hello
- 24. String s = (s1 + s2 + s3);
- System.out.println(s);
- 25. int length = s.length();
- System.out.println(length);
- 26. //not sure how to make it store a user input as a string value, but once you do that all you need to do is .length the name of the string and then have that in be printed with some text before and after it saying "your string is x letters long"
- 27. System.out.println(s1 + s2 + s3 + s4);
- 36. decimal format is not a library so it cannot be imported(?)
- 37. when the line is going to be printed the word "system" is not capitalized
- 38. the "String" the actual text value is not necessary
- 39. no parentheses around the s1-s2
- 43. single quotes were used around the H when it should have been double quotes because it is a string value
- 45. no value was declared for s so it was not able to print a the value of l because it did not exist
- 49. I am not familiar with the decimal format class so i do not know exactly, but my best guess is the there was syntax error when you attempted to apply the method to the int
- 50. // i still dont know how to register inputs from the key board, but i will declare that one of them is x and the other is y
- int xl = x.length();
- int yl = x.length();
- if x1 > y1
- System.out.println(y1);
- else
- System.out.println(x1);
- 51. // still dont know how to register inputs from the user, but the input will be labelled d
- string w = "www.";
- string c = ".com";
- System.out.println(w + d + c);
- 52. // i am not sure if there is a method to do this, but you would want to print string.toUpperCase and then print string.toLowerCase and then lastly print string
- 55. I legitimately have no idea how you would do this. Maybe there is a method that allows you to only register characters after the code has seen some other character, but i dont know what that method is
- 56. Like the previous question, I can think of how this might be done, but I do not the actual method names to call in order to actually execute this.
Add Comment
Please, Sign In to add comment