if (modes[i].getBitDepth() <= 16) continue;
if (modes[i].getBitDepth() < 16) continue;
    private static String[] getDepths(String resolution, DisplayMode[] modes) {        ArrayList depths = new ArrayList(4);        for (int i = 0; i < modes.length; i++) {            //Filter out all bit depths lower than 16 - Java incorrectly reports            //them as valid depths though the monitor does not support them            if (modes[i].getBitDepth() <= 16) continue;                        String res = modes[i].getWidth() + " x " + modes[i].getHeight();            String depth = String.valueOf(modes[i].getBitDepth()) + " bpp";            if (res.equals(resolution) && !depths.contains(depth))                depths.add(depth);        }                String[] res = new String[depths.size()];        depths.toArray(res);        return res;    }