Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. import
- 2. true
- 11. false
- 14. HI
- 15. ABCDEFGHIJ
- 16. hello
- 24. System.out.println(s1+" "+s2+" "+s3);
- 25. int characterCount = s.length();
- 26. System.out.println("Enter a string:");
- String enteredValue = scan.next();
- System.out.println("You entered:"+enteredValue);
- 27. System.out.println(s1+" "+s2+" "+s3+" "+s4);
- 36. DecimalFormat belongs to the text API not the util one.
- 37. The s in system is not capitalized.
- 38. The code does not include the word "new".
- 39. "-" is not an operator or concatenator for strings.
- 43. The String variable should be surrounded by double quotes not single quotes.
- 45. s currently has no value or string entered into it for the code to count.
- 49. The could you entered does not interact with variable "grade". You need to put:
- DecimalFormat grade = new DecimalFormat("#.0%");
- System.out.println("Your grade is "+grade);
- 50. System.out.println("Password 1:");
- String word1 = scan.next();
- System.out.println("Password 2:");
- String word2 = scan.next();
- System.out.println(Math.min(word1,word2));
- 51. System.out.println("Your Domain Name:");
- String domainName = scan.next();
- System.out.println("www."+domainName+".com");
- 52. System.out.println("Enter a word:");
- String word = scan.next();
- String upperWord = word.toUpperCase();
- String lowerWord = word.toUpperCase();
- System.out.println(upperWord);
- System.out.println(lowerWord);
- System.out.println(word);
- 55. System.out.println("Type in a file extension");
- String fileExtension = scan.next();
- System.out.println("The file extension is: "+fileExtension);
- 56. System.out.println("Type in your first and last name");
- String firstLastName = scan.next();
- System.out.println(firstLastName);
Add Comment
Please, Sign In to add comment