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>.
1. How to convert the integer statement (1) to character statement ('Y')?
This is quite easy. First you need to understand what the Integer.parseInt method does. Look it up in the API docs and you will find it converts a certain type of variable into an int (look in the java.lang package).
Now you need to change your code so that instead of converting input_jawap into an int, you convert it into a character. If the Integer class is used to convert things into ints, which class might be used to convert things into characters?
You will also need to change the type of the 'j' variable too. After that you just need to make a small adjustment to the if statement so that it compares with a character instead of a number.