“你好,士兵!”

“您好,松鼠船長,先生!”

“這裡有一些練習可以提高您的技能並鞏固知識。”

2
任務
Java Syntax,  等級 7課堂 12
上鎖
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
任務
Java Syntax,  等級 7課堂 12
上鎖
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