import java.io.*; import java.lang.*; class Token { String token = ""; boolean isLabel(){ boolean x=false; int[] theString={}; int[] str=new int[theString.length]; for (int i=0; i"){ x=true; } } return x; } String readLabel(){ return (this.isLabel())?this.substring(indexOf("<")+1,indexOf(">")-1):null; } boolean isEndLabel(){ boolean b = false; if (!this.readLabel()){ System.out.println("einai null"); System.exit(0); } return this.startsWith("/"); } //end class