when you press a "n" the loop terminate.
I think you need this with sentinel value...
[code]
static boolean condition = true;//declare sentinel value
do {
System.out.println("Add more?...
Type: Posts; User: Tamilarasi
when you press a "n" the loop terminate.
I think you need this with sentinel value...
[code]
static boolean condition = true;//declare sentinel value
do {
System.out.println("Add more?...
Hi hirohashimoto,
I think you want you will get the student detail when you select the option "n"..
Try this:
code removed
Hi,
I don,t know what you want exactly but i solve your problem on do while loop. The problem is you are used stdin.next() but you don't declare the scanner. So it displays issue and also you don't...