"Hi, buddy. Here are a couple more tasks for today. To make them more challenging, I want you to only use variables inside the print/println method."

"Is that even possible?"
"Remember, Amigo: we robots can do the impossible and bend the unbendable."
9
Task
New Java Syntax,
level 9,
lesson 10
Locked
Literals
Data written directly in program code are called literals. This applies to values of primitives and the String type.
In the Solution class, you need to create variables of each primitive type, as well as of the String type, and assign arbitrary values to them.
The String variable must be initialized
9
Task
New Java Syntax,
level 9,
lesson 10
Locked
Deleting spaces
Implement the deleteSpaces(String) method so that all spaces are removed from the string received in the input parameter.
9
Task
New Java Syntax,
level 9,
lesson 10
Locked
Word palindrome
Implement the isPalindrome(String) method so that it checks whether the input word is a palindrome.
A palindrome is a word that read the same in both directions.
Don't consider whether the letters are uppercase or lowercase.
9
Task
New Java Syntax,
level 9,
lesson 10
Locked
The way of the Samurai
Display the following: 日本語
9
Task
New Java Syntax,
level 9,
lesson 10
Locked
Sam I Am
Display all possible combinations of the words "Sam", "I", "Am".
Hint: There are 6 combinations. You need to display each combination on a new line. Do not separate the words.
Example:
IAmSam
AmSamI
...
Use either the System.out.printf() or String.format() method to generate the strings.
GO TO FULL VERSION