ROUTMIO_DEV

TOOLS

DDL GeneratorDDL → ERDDummy Data GeneratorRegex TesterJSON FormatterBase64 ConverterTimestamp ConverterCron BuilderMeeting Minutes

DATABASE

LANGUAGE

Java List

15 functions

addlist.add(element) / list.add(index, element)

Appends or inserts the specified element.

getlist.get(index)

Returns the element at the specified index.

setlist.set(index, element)

Replaces the element at the specified index.

removelist.remove(index) / list.remove(obj)

Removes the element at the specified index or by value.

sizelist.size()

Returns the number of elements.

containslist.contains(obj)

Returns whether this string contains the specified sequence.

indexOflist.indexOf(obj)

Returns the index of the first occurrence of the specified value.

isEmptylist.isEmpty()

Returns true if the string length is 0.

clearlist.clear()

Removes all elements from the list.

sortlist.sort(comparator)

Sorts the list using the given comparator.

subListlist.subList(from, to)

Returns a view of the portion of the list.

toArraylist.toArray()

Returns an array containing all elements.

Arrays.sortArrays.sort(array)

Sorts the specified array in ascending order.

Arrays.asListArrays.asList(elements...)

Returns a fixed-size list backed by the specified array.

Collections.sortCollections.sort(list)

Sorts the specified list into ascending order.

Terms of ServicePrivacy PolicyContactIcons by Flaticon