| fill() | ใช้กำหนดค่าใน array โดยทุกๆ index จะมีค่าเหมือนกัน คือค่าที่กำหนด |
|---|
method:fill ( int_array, value );
return type:void
special:static
content:ใช้กำหนดค่าใน array โดยทุกๆ index จะมีค่าเหมือนกัน คือค่าที่กำหนด
example:int [] num = new int [ 10 ]; Arrays.fill ( num, 200 );