Java Programming Basics Review notes Unit Sixth

Source: Internet
Author: User

Sixth chapter One-dimensional array 1 array initialization syntax array initializer2for each Loop3off-by-one error is usually used in the loop where the < is used in the <=4 copy array: 1.for 2. System.arraycopy 3.clone5arraycopy (Sourcearray, Src_pos, Targetarray, tar_pos, length); 6 anonymous array: Anonymous Array7 value pass Pass By value8 variable length parameter http://www.cnblogs.com/lanxuezaipiao/p/3190673.html9java.util.Arrays.sort (arrayname,begin,end); Java.util.Arrays.binarySearch (arrayname, value); return position/(-insertion point subscript + 1) arrays.equals (LIST1,LIST2); Arrays.fill (List1,begin,end,value); Keyword:anonymous arrayarrayarray initializerbinary Search Garbage collectionindexindexed variableinsertion Sortlinear searchselection sort6.1 elemtype[] arrayname = new elemtype[len];elemtype[] Arrayname = {value,...}; 6.2ARRAYNAME[INDEX];6.3X is 30The size of numbers is 606.4fftf6.5 .... 6.6unsigned int 0 a[2]6.7....6.8 array out-of-bounds arrayboundsexceed6.9 ... 6.10java.util.arrays.arraycopy (source,0,t,0,source.length); 6.14 stack 6.22 implements comparable interface or basic numeric type

  

Java Programming Basics Review notes Unit sixth

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.