import java.io.*;

// javac

public class while_break
{
public static void main(String args[])throws IOException
{

System.out.println("Client Starts");
//creating object where ss is reference to the class simple server_1
while_serve ss = new while_serve();
ss.process();

System.out.println("Client ends");
}//end of main
}//end of class
class while_serve
{
//constructor
public while_serve(){ System.out.println("Server Constructor Starts as an object is created");}
//these are the fileds
private int n1 = 0;
private int n2 = 0;
public String str2="Call Me if you need";
//method starts
//accesor type public
//return type void
//() place holder for parameters
public void process() throws IOException

{
//implementation with code satrs
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
////////////////
String str= "";
try {
System.out.println("---While Loop---");
while(( n1 !=9)&&(n2 !=11) )
{
System.out.print("Please enter number: ");
str = br.readLine();
int n3 = Integer.parseInt(str);
n1 = n3;
System.out.print("Please enter pin: ");
str= br.readLine();
int n4=Integer.parseInt(str);
n2= n4;
System.out.println("You Entered : " + n1 + n2);
//this is another break with a keyword break for a loop
if(n1>=200)break;
}
}//try
catch(NumberFormatException e) { System.out.println("data was blank");}
///
System.out.println();
}//end of main
}//end of class