import java.util.*; public class Rules { String term1; String term2; String loper; String action; StringBuffer temp; Rules(String t1,String t2,String loper,String action) { term1=removeBlanks(t1); term2=removeBlanks(t2); this.loper = removeBlanks(loper); this.action = removeBlanks(action); } public String removeBlanks(String s) { s= s.trim (); temp = new StringBuffer(); for(int i=0, j=0;i