"Hello, soldier!"

"Hello, Captain Squirrels, sir!"

"I have great news for you. Here are some exercises to reinforce your skills. Work on them every day, and your competence will grow exponentially. They were specially designed for IntelliJ IDEA."

10
Task
New Java Syntax,  level 10lesson 9
Locked
The whole duck isn't enough
Using the Duck class as a pattern, create Cat and Dog classes. What do you think the toString method in the Cat and Dog classes should return? In the main method, create two objects of each class and display them on the screen. Duck objects have already been created and are displayed on the screen.
10
Task
New Java Syntax,  level 10lesson 9
Locked
Man and woman
1. Inside the Solution class, create public static Man and Woman classes. 2. The classes must have the following fields: String name, int age, String address. 3. Make constructors that have all possible parameters. 4. Create two objects of each class with complete data using a constructor. 5. Displa
10
Task
New Java Syntax,  level 10lesson 9
Locked
Dog registration
The Dog class must have three constructors: - Name - Name, height - Name, height, color.
10
Task
New Java Syntax,  level 10lesson 9
Locked
Tom and Jerry
Create Dog, Cat, and Mouse classes. Add three fields of your choice to each class. Create objects for the characters in the cartoon "Tom and Jerry". You'll recall there are quite a few. For example: Mouse jerryMouse = new Mouse("Jerry", 5, 2), where 5 is the height in inches, and 2 is the length of
10
Task
New Java Syntax,  level 10lesson 9
Locked
Display today's date
Display the current date in the following format: "06 15 2018".

"Those previous exercises were for rookies. I've added some more advanced bonus exercises for the old-timers. Just for veterans."

10
Task
New Java Syntax,  level 10lesson 9
Locked
Number of words in a string
Implement the getWordCount(String) method to return the number of words in the string received in the input parameter. Hint: A word is a sequence of non-whitespace characters separated by a single space.
10
Task
New Java Syntax,  level 10lesson 9
Locked
Binary encoding
Since computers only operate using 0s (no voltage) and 1s (voltage), there is a need to translate human-readable data into machine-readable data. Digits, symbols and special characters have their own code (decimal number) in the Unicode table. Implement the toBinary(int) method, which converts the d
10
Task
New Java Syntax,  level 10lesson 9
Locked
IPv6
In the map method, parse a string representing the IPv6 address and return the result as an array of strings. For example, for the input string "2001:db8:11a3:9d7:1f34:8a2e:7a0:765d", you need to get an array like this: [2001, db8, 11a3, 9d7, 1f34, 8a2e, 7a0, 765d] Use a StringTokenizer to parse th