"Tôi có một tin tuyệt vời cho bạn. Đây là một số bài tập để củng cố kỹ năng của bạn. Hãy luyện tập chúng hàng ngày và năng lực của bạn sẽ tăng theo cấp số nhân. Chúng được thiết kế đặc biệt cho IntelliJ IDEA."
2
Nhiệm vụ
Java Syntax, mức độ, bài học
Đã khóa
Decent pay
Have you received an indecent financial offer? Unsure how to react to the obscenity? Do you call the morality police or simply the police? Immediately file a lawsuit? Calm down: you're learning how to program, so don't get used to indecent offers. Instead, use a loop to display the following phrase 100 times: "I will never work for peanuts. Amigo".
8
Nhiệm vụ
Java Syntax, mức độ, bài học
Đã khóa
Somehow average
In life, we often have to compromise and find some kind of middle ground. This makes it easier to get along with each other and solve problems. Let's find the middle ground—or to be exact, the middle number—of three ints. And what if all three numbers are the same? We can display any one of them: nobody will notice.
4
Nhiệm vụ
Java Syntax, mức độ, bài học
Đã khóa
Adding
What could be simpler and more pleasant than adding numbers? Especially for a robot. Let's write a program where the user enters numbers from the keyboard, and then a special method sums up the entered numbers. And does so until the user gets bored. When the user is bored, he or she enters -1: the program will understand that it's time to wrap things up, and will then display the sum on the screen.
2
Nhiệm vụ
Java Syntax, mức độ, bài học
Đã khóa
A name is a name
At the age of 80, Yurgona Dye fulfilled his dream and learned to program. But he encountered two problems: first, nobody would hire him as a junior developer because of his age; and second, people were afraid to associate with him because of his name. But Yurgona is now a programmer. He can write a method that will assign him any name and birth year. Can you?