Home » Java Array getLong() Method

Java Array getLong() Method

by Online Tutorials Library

Java Array getLong() Method

The getLong() method of Array class returns the value of the indexed component in the specified array object, as a long.

Syntax

Parameter

array – the array

index – the index

Returns

The value of the indexed component in the specified array

Throws

NullPointerException

IllegalArgumentException

ArrayIndexOutOfBoundsException –

Example 1

Test it Now

Output:

value :: 8765678.0  

Example 2

Test it Now

Output:

8976567  , 87765678  , 6765588  
Next TopicJava Array Class

You may also like