All pastes #61841 Raw Edit

Stuff

public text v1 · immutable
#61841 ·published 2006-06-04 20:32 UTC
rendered paste body
import java.io.*;
import java.lang.*;

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

	return (this.startsWith("<") && (this.indexOf(">")!=-1)))?true: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.substring(1).startsWith("/");
	
}