Today, another Java array Small topic, has been busy, and a temporary no solution, the heart tired. (10,000 words omitted here ...) )。 Pain and happiness!!! Directly into the theme, big God do not squirt younger brother.
Title: Keyboard input 10 number, and stored in the array, if the 10 numbers have 9 this number, then 9 moved to the first position, the rest in the original order. If there is no 9 in this, then how to arrange how to arrange.
The first time you see this topic, this is an array, which needs to move the array position and change the size of the array. But the array is fixed, so we think of the collection. Directly post the code, as follows:
The results of the operation are as follows:
* * requires a jar package: https://download.csdn.net/download/lx2589636547/9410348
* * * above reference:
77592472?fps=1&locationnum=2
Https://www.cnblogs.com/zheyangsan/p/6910476.html
If the great gods have other methods, they also hope to donate generously to enlighten them. Thank you, everyone!
Java Array Topics