/* * VegARG.java * * Created on July 31, 2007, 10:21 AM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */package vegclasst;/** * * @author vegan */public class VegARG { String vEGEX; int vSplits; /** Creates a new instance of VegARG */ public VegARG() { vSplits = 0; vEGEX = ".*"; } public VegARG (String[] args) { int i; for (i=0; i <args.length; i++) { System.out.println(args[i]); String ss = new String(args[i]); if(ss.compareTo("-s") < 0) {// this.vSplits = Integer.parseInt(args[i+1]); //i++; } else if (ss.equals("-re")) { this.vEGEX = new String(args[i]); //i++; }// if (i >= args.length-1){ // return; // } } } public static void vegPrint(VegARG t){ System.out.println(t.vEGEX); System.out.println(t.vSplits); }}