I'm working on a project in Java (I'm very new).I'm trying to make two arrays that refer to the a similar set of objects (Indices 3-16) and respective 3 (Indices 0-2). I want the objects to be stacks (that I changed to be "Pile"s, which just have a method to report their lengths). Each of the "Pile" objects will be ready to accept "Piece" objects.\[code\]Pile<Piece>[] leftBoard = new Pile[16];Pile<Piece>[] rightBoard = new Pile[16];for (int i = 3; i < 16; i++){ leftBoard = new Pile<Piece>(); rightBoard = leftBoard;}for (int i = 0; i < 3; i++){leftBoard = new Pile<Piece>();}for (int i = 0; i < 3; i++){ rightBoard = new Pile<Piece>();}\[/code\]Please help! Thanks!