So I am very new to Java programming and I am using netbeans. My question is I already have 5 arrays but I want to put all their data into one large array so it can be better referenced later on in my project. I have researched this some but I am confused without it applying to my code itself or a better explanation. I think it has something to so with multiple square brackets but I am not really sure how to do this.
    int[] particle1;
    particle1 = new int[3];
    particle1[0] = 0;  //x
    particle1[1] = 0;  //y
    particle1[2] = 1;  //weight 
    int[] particle2;
    particle2 = new int[3];
    particle2[0] = 0;   //x
    particle2[1] = 2;   //y
    particle2[1] = 1;   //wieght 
    int[] particle3;
    particle3 = new int [3];
    particle3[0] = 0;
    particle3[1] = 4;
    particle3[2] = 1;
    String[]  allPos;
    allPos = new String[5];
    allPos[0] = particle1;
    allPos[1] = particle2;
    allPos[2] = particle3;
    System.out.println("The position of all of them  and there weight is: " + 
        java.util.Arrays.toString(allPos));
    System.out.println(" Hello World!");`
 
     
     
     
     
    