Basically, the above format is not correct, it contains a syntax error. You can try using Array Initializer like this:
int[] data = {10,20,30,40,50,60,71,80,90,91};
That will help you to initialize properly.
I hope this will help.
Want to become a Java expert? join Java Training now!!