All pastes #61822 Raw Edit

Someone

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

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

	 int[] theString={};

		if( theString.startsWith("<") && (theString.indexOf(">")!=-1)){
				return true;
		}
	
         return false;
}
	
	
String readLabel(){	

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

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