All pastes #61810 Raw Edit

Stuff

public text v1 · immutable
#61810 ·published 2006-06-04 19:39 UTC
rendered paste body
import java.io.*;
import java.lang.*;

class Token
{ 
	String token = "<example>";
	
boolean  isLabel(){

	 boolean x=false;
	 int[] theString={};

         int[] str=new int[theString.length];

	 for (int i=0; i<str.length; i++){
		if( str[0]=="<" && str[temp]==">"){
				x=true;
		}
	 }
	
         return x;
}
	
	
String readLabel(){	

        return (this.isLabel())?this.substring(indexOf("<")+1,indexOf(">")-1):null;
        
}
		
static boolean isEndLabel(){

	boolean b = false;

		if (!this.readLabel()){
			System.out.println("einai null");
			System.exit(0);
		}
		
		return this.startsWith("/");
	
}  //end class