All pastes #61818 Raw Edit

Stuff

public text v1 · immutable
#61818 ·published 2006-06-04 19:49 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(indexOf("<")+1,indexOf(">")-1):null;
        
}
		
boolean isEndLabel(){

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