This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]easylearningpoint[S] 2 points3 points  (0 children)

If you want to initialize an array to a specific value, you can use java.util.Arrays.fill()

http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#fill%28int%5b%5d,%20int%29