"рдирдорд╕реНрдХрд╛рд░, рд╕реИрдирд┐рдХ!"

"рдирдорд╕реНрдХрд╛рд░, рдХрдкреНрддрд╛рди рдЧрд┐рд▓рд╣рд░реА, рд╕рд░!"

"рдореЗрд░реЗ рдкрд╛рд╕ рдЖрдкрдХреЗ рд▓рд┐рдП рдЕрдЪреНрдЫреА рдЦрдмрд░ рд╣реИред рдЖрдкрдХреЗ рдХреМрд╢рд▓ рдХреЛ рд╕реБрджреГрдврд╝ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдпрд╣рд╛рдВ рдХреБрдЫ рдЕрднреНрдпрд╛рд╕ рджрд┐рдП рдЧрдП рд╣реИрдВред рд╣рд░ рджрд┐рди рдЙрди рдкрд░ рдХрд╛рдо рдХрд░реЗрдВ, рдФрд░ рдЖрдкрдХреА рдХреНрд╖рдорддрд╛ рддреЗрдЬреА рд╕реЗ рдмрдврд╝реЗрдЧреАред рд╡реЗ рд╡рд┐рд╢реЗрд╖ рд░реВрдк рд╕реЗ IntelliJ IDEA рдХреЗ рд▓рд┐рдП рдбрд┐рдЬрд╝рд╛рдЗрди рдХрд┐рдП рдЧрдП рдереЗред"

3
рдЯрд╛рд╕реНрдХ
Java Syntax,  рд╕реНрддрд░ 10рд╕рдмрдХ 11
рд▓реЙрдХ
Correct answer: d = 2.941
A spaceship flew to planet of Paleo-Know, and met there creatures that didn't even know integer arithmetic. But this whole story has nothing to do with our task. It's only here as an amazing fact to get your attention. Meanwhile, you need to add one cast operation to the code and get the correct answer.
3
рдЯрд╛рд╕реНрдХ
Java Syntax,  рд╕реНрддрд░ 10рд╕рдмрдХ 11
рд▓реЙрдХ
Correct answer: d = 5.5
Be careful with narrowing conversions! This technique can lead to unexpected results. Remember this all your life, but for nowтАФsolve a small type conversion task. The code is already written, but something is missing, specifically one cast operation. Find where it needs to get the correct answer.
3
рдЯрд╛рд╕реНрдХ
Java Syntax,  рд╕реНрддрд░ 10рд╕рдмрдХ 11
рд▓реЙрдХ
Correct answer: d = 1.0
Before completing the final level of the first quest, students at the secret CodeGym center already know well the difference between 1 and 1.0. And it's a good thing too, otherwise "type conversion" would be completely incomprehensible. Let's look for a suitable place in previously written code: We need to add one type conversion to get the correct answer.
3
рдЯрд╛рд╕реНрдХ
Java Syntax,  рд╕реНрддрд░ 10рд╕рдмрдХ 11
рд▓реЙрдХ
Big salary
Oh, laziness! Your loyal apologists are everywhere! You're an engine of progress and a destroyer of dreams. Even the person currently reading these lines has certainly been under your influence, thinking, "Why do I need Java anyway. It's so much work!" We have a task especially for you: display the phrase "I do not want to learn Java. I want a big salary". And do it 43 times.

"рд╡реЗ рдкрд┐рдЫрд▓реЗ рдЕрднреНрдпрд╛рд╕ рдиреМрд╕рд┐рдЦрд┐рдпреЛрдВ рдХреЗ рд▓рд┐рдП рдереЗред рдореИрдВрдиреЗ рдкреБрд░рд╛рдиреЗ рд╕рдордп рдХреЗ рд▓рд┐рдП рдХреБрдЫ рдФрд░ рдЙрдиреНрдирдд рдмреЛрдирд╕ рдЕрднреНрдпрд╛рд╕ рдЬреЛрдбрд╝реЗ рд╣реИрдВред рдХреЗрд╡рд▓ рджрд┐рдЧреНрдЧрдЬреЛрдВ рдХреЗ рд▓рд┐рдПред"

12
рдЯрд╛рд╕реНрдХ
Java Syntax,  рд╕реНрддрд░ 10рд╕рдмрдХ 11
рд▓реЙрдХ
Number of letters
Have you ever thought that there are too many letters in the alphabet? Computers are able to get by quite well with two, but we have 26. This is an inadmissible excess! Still, we do have to accept reality and complete relevant tasks. Here's one: Enter 10 strings from the keyboard and count the number of different letters in them.
6
рдЯрд╛рд╕реНрдХ
Java Syntax,  рд╕реНрддрд░ 10рд╕рдмрдХ 11
рд▓реЙрдХ
Human class constructors
People are different. And each person differs in significant ways. Suppose we have a newborn who has only a name and a mother. Or suppose we have a musician that prizes his band and his ability to perform. Let's write a Human class with 6 fields and come up with 10 different constructors for it. Each constructor should make sense.
3
рдЯрд╛рд╕реНрдХ
Java Syntax,  рд╕реНрддрд░ 10рд╕рдмрдХ 11
рд▓реЙрдХ
Use the fewest number of static modifiers
"Fewest statics, maximum result" is the motto for your next task. It will require you to analyze code already written by some good soul, and understand where this kind person forgot to put static modifiers. The code won't compile. But don't stick them everywhere. Try to use them as little as possible.