"Hei, soldat!"

"Hei, kaptein Squirrels, sir!"

"Her er noen øvelser for å øke ferdighetene dine og styrke kunnskapen."

2
Oppgave
Java Syntax,  nivålekse
Låst
Display numbers in reverse order
You know that you can solve problems in many ways, right? Yes, of course you know that. However, in this particular task we'll ask you to recall the for loop and use it to perform some manipulations. Here's what you need to do: enter 10 numbers from the keyboard, put them in a list, and then display them in reverse order.
10
Oppgave
Java Syntax,  nivålekse
Låst
Shuffled just in time
Games with lists are the best! Does that sound like an advertisement? Perhaps the best advertisement for a programming language is its frequent use. Let's advertise lists as we complete this task: enter numbers m and n, enter n strings and put them in a list. Then perform a simple manipulation: move the first m strings to the end of the list