Java Array setInt() MethodThe setInt() method of Array class sets the value of the indexed component of the specified array object to the specified int value. SyntaxParameterarray - the array index - the index into the array i - the new value of the indexed component ReturnsDoes not return any value. ThrowNullPointerException IllegalArgumentException ArrayIndexOutOfBoundsException - Example 1Test it NowOutput: 2.0 , 7.0 , 9.0 , Example 2Test it NowOutput: 8 9 10 Next TopicJava Array Class |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India