Link Search Menu Expand Document

API

Class Name: Arrays

Fields

Name Data Type Description
arr Array of Integers Stores corresponding values
size Integer Size of Array to be created

Methods

Name Parameters Return Type Description
constructor None Object (Arrays) Creates an instance of class Arrays
size None Integer Returns size of created Array
add index (Integer), value (Integer) Void Adds value at corresponding index
get index (Integer) Integer Returns value at corresponding index
remove index (Integer) Void Removes value at corresponding index
contains value (Integer) Boolean Checks whether Array contains corresponding value or not
max None Integer Returns maximum value in Array
min None Integer Returns minimum value in Array