“สวัสดีทหาร!”
"สวัสดี กัปตันกระรอกครับ!"
"ฉันมีข่าวดีสำหรับคุณ ต่อไปนี้คือแบบฝึกหัดบางส่วนเพื่อเสริมสร้างทักษะของคุณ ทำแบบฝึกหัดเหล่านี้ทุกวัน แล้วความสามารถของคุณจะเพิ่มขึ้นอย่างทวีคูณ แบบฝึกหัดเหล่านี้ได้รับการออกแบบมาเป็นพิเศษสำหรับ IntelliJ IDEA"
2
งาน
Java Syntax, ระดับ, บทเรียน
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
งาน
Java Syntax, ระดับ, บทเรียน
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
งาน
Java Syntax, ระดับ, บทเรียน
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
งาน
Java Syntax, ระดับ, บทเรียน
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?