int argc = args.length;
    public static void main(String[] args) throws IOException {        int argc = args.length;        String inpath = "";        String outpath = "";        String sllp;        String[] sllpa;        ShapeFileCrop sfc = null;        ESRIPoint ul = null;        ESRIPoint lr = null;        int index = 0;        for (int i = 0; i < args.length; i++) {            if (args[i].equals("-i")) {                inpath = args[++i];            } else if (args[i].equals("-o")) {                outpath = args[++i];            } else if (args[i].equals("-ul")) {                sllp = args[++i];                //              sllpa = sllp.split(","); // jdk 1.4                index = sllp.indexOf(",");                if (index != -1) {                    sllpa = new String[2];                    sllpa[0] = sllp.substring(0, index);                    sllpa[1] = sllp.substring(index + 1);                    ul = new ESRIPoint(Double.valueOf(sllpa[1]).doubleValue(), Double.valueOf(sllpa[0])                            .doubleValue());                }            } else if (args[i].equals("-lr")) {                sllp = args[++i];                //              sllpa = sllp.split(","); // jdk 1.4                index = sllp.indexOf(",");                if (index != -1) {                    sllpa = new String[2];                    sllpa[0] = sllp.substring(0, index);                    sllpa[1] = sllp.substring(index + 1);                    lr = new ESRIPoint(Double.valueOf(sllpa[1]).doubleValue(), Double.valueOf(sllpa[0])                            .doubleValue());                }            } else {                usage();            }        }        if ((ul == null) || (lr == null) || (inpath.equals(""))                || (outpath.equals(""))) {            usage();        } else {            sfc = new ShapeFileCrop(inpath, outpath);            sfc.ebb = new ESRIBoundingBox(ul, lr);        }        sfc.cropShapeFile();    }