"Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 15" is the error message I get when running my code, I assume it is trying to use a number which is larger than the array or something along those lines; heres my code:
public class TileGrid {
public Tile[][] map;
public TileGrid(){
    map = new Tile[20][15];
    for(int i=0; i<map.length; i++){
        for(int j=0; j<map[i].length; j++){
            map[i][j]=new Tile(i*64, j*64, 64, 64, TileType.grass);
        }
    }
}
public void Draw(){
    for(int i=0; i<map.length;i++){
        for(int j=0; i<map[i].length;j++){
            Tile t = map[i][j];
            DrawQuadTex(t.getTexture(), t.getX(), t.getY(), t.getWidth(), t.getHeight());
        }
    }
}
My code is in multiple classes, which I will paste as well if needed
 
     
    