Below is a subprogram. It shows the output with looping using integer keydata (while j==1).
1. How to convert the integer statement (1) to character statement ('Y')?
2. How to clearscreen the previous statement? In C language, we can insert clrscr(); with #include<conio.h>.
public static void main(
String args[]) throws IOException
{
BufferedReader input = new BufferedReader
(new InputStreamReader(System.in));
String input_jawap;
int j;
do{
//statement
input_jawap = input.readLine();
j = Integer.parseInt(input_jawap);
}while(j==1);
}