All pastes #61776 Raw Edit

Miscellany

public text v1 · immutable
#61776 ·published 2006-06-04 18:36 UTC
rendered paste body
import java.io.*;
import java.lang.*;

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

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

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

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

		String x = null; // to null den einai ena string alla mia stathera ara de thelei ""
		boolean b ;
		int i;
		b = this.isLabel();

		char str[] = new char[this.length]; // exei mikos oso to string me to opoio kalesame tin readLabel()
		char temp[] = new char[this.length];  
			
		if ( b== true ){
                       str.toCharArray()
// o pinakas na ginetai string. dhladh to temp na ginetai string kai na ekxwreitai sto x
		} //end if
			return x;
	}  //end function
		
	static boolean isEndLabel()
	{
		String x;
		boolean b = false;
		int i;
//  KAI EDW
		String str[] = new String[50];
		x = Token.readLabel();
		if (x == null)
		{
			System.out.println("einai null");
			System.exit(0);
		}
// to string na ginetai se pinaka. dhladh to string x ston pinaka str
		
		if(str[0]=="/")
		{
			b=true;
		}
		return b;
	} //end function
	
}  //end class