@SuppressWarnings("deprecation")
public static void main(String args[]) throws NumberFormatException, IOException {
	DataInputStream in;
	int data;String cont;
	BST b=new BST();;
do {
	System.out.println("1. Insert");
	System.out.println("2. Delete");
	System.out.println("3. Print");
	System.out.println("4. Mirror");
	System.out.println("5. BFS Tree");
	
	System.out.println("Enter a choice:");
	in=new DataInputStream(System.in);
	int choice=Integer.parseInt(in.readLine());
	
	
	switch(choice) {
	case 1:
		System.out.println("Enter a number to insert:");
		in=new DataInputStream(System.in);
		data=Integer.parseInt(in.readLine());
		b.insert(data);
	break;
		
	case 2:
		System.out.println("Enter a number to delete:");
		in=new DataInputStream(System.in);
		data=Integer.parseInt(in.readLine());	
		b.delete(data);
	break;	

	case 3:
		b.print();
	break;	
	
	case 4:
		b.mirror();
	break;
	
	case 5:
		b.bfs();
	break;	
	}
	System.out.println("Want to continue (y/n)");
	in=new DataInputStream(System.in);
	cont =in.readLine();
} while(cont.equals("y"));

}