Java Array Topics

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.