I have a class and in that class I have this:
//some code private int[] data = new int[3]; //some code
Then in my constructor:
private int[] data = new int[3];
This already initializes your array elements to 0. You don't need to repeat that again in the constructor.
In your constructor it should be:
data = new int[]{0, 0, 0};