![]() ![]() add public static short add(short array,ĪrrayUtils.add(null, 0, null) = IllegalArgumentExceptionĪrrayUtils.add(, 1, null) = ĪrrayUtils.add(, 1, "b") = ĪrrayUtils.add(, 3, "c") =. ![]() add public static long add(long array,.add public static char add(char array,ĪrrayUtils.add(, 0, 'b') = ĪrrayUtils.add(, 0, 'c') = ĪrrayUtils.add(, 1, 'k') = ĪrrayUtils.add(, 1, 't') =.Parameters: array - the array to add the element to, may be null index - the position of the new object element - the object to add Returns: A new array containing the existing elements and the new element Throws: IndexOutOfBoundsException - if the index is out of range add public static byte add(byte array,ĪrrayUtils.add(, 2, 1) =.Parameters: array - the array to add the element to, may be null index - the position of the new object element - the object to add Returns: A new array containing the existing elements and the new element Throws: IndexOutOfBoundsException - if the index is out of range (index array.length). Whose component type is the same as the element.ĪrrayUtils.add(, 0, false) = ĪrrayUtils.add(, 1, true) = If the input array is null, a new one element array is returned Type of the returned array is always the same as that of the input This method returns a new array with the same elements of the inputĪrray plus the given element on the specified position. Shifts the element currently at that position (if any) and any subsequentĮlements to the right (adds one to their indices). Inserts the specified element at the specified position in the array. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |