Final tasks

Java Syntax
Level 6 , Lesson 11
Available

"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.

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

Comments (67)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
ron_villela Level 9, Miami, United States
9 August 2021
Did I miss/skip the lesson on arrays?
Qreez Level 13
5 August 2021
Okay, so I have to admit, at first I thought the tasks were a little too easy, but now I'm really struggling with the newer ones. I don't know if I should continue with the course or spend some more time and get a better grasp of all these subjects.
Justin Smith Level 41, Greenfield, USA, United States
9 July 2021
With Static Cats, I got a little too cute and did something that works and is super clean but the validation didn't like it. I used the Cat constructor to add itself to the cats ArrayList (i.e. "Cat.cats.add(this);"). However, after it failed validation I saw that they specifically want the Cat objects added to the ArrayList in the main method, so you can't do it in the constructor. My version is significantly shorter, but rules are rules.
Sean Level 11, Manchester, United States
11 August 2021
Thanks for this. I did the exact same thing.
DarthGizka Level 24, Wittenberg, Germany
29 May 2021
CAVEAT: task0614 ('Static cats') is underspecified. It seems that printCats() has to call toString() on each cat or something like that in order for the code to pass - a requirement that is not stated *anywhere*.
Khongpak Phupkdee Level 15, Chiangrai, Thailand
28 March 2021
How I do if I don't use Array?
Jeremy Level 17, Dublin, Ireland
27 May 2021
create 5 int vars and then if/else/if/else to sort them...
Gaelle Gilles Level 15, New York City, United States
21 December 2020
What is bothering me about these exercises is that they have to be written in a certain way. I am studying computer science in grad school, so I've created many classes before and so I have a certain style of writing them. When writing a class here, I get the solution wrong when I know they are right.
David Close Level 17, London, United Kingdom
4 November 2020
gotta love this
Peter Level 7, Enschede, Netherlands
20 October 2020
Really nice exercises again. Nice to see the introduction of the ArrayList, however they where already saving my ass few tasks ago so not completely new anymore.
Mihai Bone Level 8, Bucharest, Romania
14 October 2020
When catFather meet catMother they did plan to give me maximum damage. I'm afraid to click on next one😢
Rajesh R Level 7, Toronto, Canada
8 October 2020
Hint - loop through the elements of array to display each number in a new line