"Hei, soldat!"
"Hei, kaptein Squirrels, sir!"
"Jeg har gode nyheter til deg. Her er noen øvelser for å forsterke ferdighetene dine. Arbeid med dem hver dag, og kompetansen din vil vokse eksponentielt. De ble spesialdesignet for IntelliJ IDEA."
2
Oppgave
Java Syntax, nivå, lekse
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
Oppgave
Java Syntax, nivå, lekse
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
Oppgave
Java Syntax, nivå, lekse
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
Oppgave
Java Syntax, nivå, lekse
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?