www.pudn.com > Operate2.rar > test.java


package Expression; 
 
import java.io.BufferedReader; 
import java.io.IOException; 
import java.io.InputStreamReader; 
 
public class test { 
 
	static String abc; 
	public test() throws IOException 
	{ 
		//abc="a1 = ( b1 + 2) + 3/5*3*6- ddd / 333"; 
		boolean tt = true ; 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); 
		String str = ""; 
		while (tt){ 
			System.out.println("Enter your value:"); 
			str = br.readLine(); 
			if (str.toUpperCase().equals( "EXIT")){ 
				return; 
			} 
			if (!str.equals("")){ 
				ConstituteTree tree =new ConstituteTree(str); 
				tree.Gen(); 
			} 
		} 
	} 
	/** 
	 * @param args 
	 * @throws IOException  
	 */ 
	public static void main(String[] args) throws IOException { 
		// TODO Auto-generated method stub 
	   test t = new test();	 
	} 
}