Home » Java Array setBoolean() Method

Java Array setBoolean() Method

by Online Tutorials Library

Java Array setBoolean() Method

The setBoolean() method of Array class is used to set the value of the indexed component of the specified array object to the specified boolean value.

Syntax

Parameter

array – the array

index – the index into the array

z – the new value of the indexed component

Returns

Does not return any value.

Throws

NullPointerException

IllegalArgumentException

ArrayIndexOutOfBoundsException –

NegativeArraySizeException

Example 1

;i++)>

You may also like