heightData[i + (j*size)] = bis.readUnsignedByte();
heightData[i + (j*size)] = dis.readUnsignedByte();
    public boolean load() {        //confirm data has been set. Redundant check...        if (null == filename || size <= 0) {            throw new JmeException(                "Must supply valid filename and " + "size (> 0)");        }                //clean up        if (null != heightData) {            unloadHeightMap();        }        //initialize the height data attributes        heightData = new int[size*size];        //attempt to connect to the supplied file.        FileInputStream fis = null;        try {            fis = new FileInputStream(filename);                        DataInputStream bis = new DataInputStream(fis);            //read in each byte from the raw file.            for (int i = 0; i < size; i++) {                for(int j = 0; j < size; j++) {                    heightData[i + (j*size)] = bis.readUnsignedByte();                }            }            bis.close();            fis.close();        } catch (FileNotFoundException e) {            LoggingSystem.getLogger().log(                Level.WARNING,                "Heightmap file" + filename + " not found.");            return false;        } catch (IOException e1) {            LoggingSystem.getLogger().log(                Level.WARNING,                "Error reading data from " + filename);            return false;        }        LoggingSystem.getLogger().log(            Level.WARNING,            "Successfully loaded " + filename);        return true;    }