Results 1 to 4 of 4
  1. #1
    kliane's Avatar
    kliane is offline Member
    Join Date
    Jan 2010
    Posts
    10
    Rep Power
    0

    Question Continue or not?

    What to use in asking the user if he wants to continue or not? As the user enter yes, the processed data will be gone and the user will be prompt to enter another data to be process... As the user enters no, the program will be aborted... How can I do this?

  2. #2
    kliane's Avatar
    kliane is offline Member
    Join Date
    Jan 2010
    Posts
    10
    Rep Power
    0

    Default

    can anyone help please?

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,000
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by kliane View Post
    can anyone help please?
    Something like this can do the job:

    Java Code:
    do {
       processData();
    }
    while (doContinue());
    The method processData() is supposed to, well process the data and the boolean method doContinue() shows a friendly prompt and asks the user if s/he wants to continue; if so, the method returns true, otherwise it returns false.

    kind regards,

    Jos

  4. #4
    Cbani is offline Member
    Join Date
    Jan 2010
    Posts
    90
    Rep Power
    0

    Default

    if u are using any client side technology / web application; then in your jsp page you can just make use of javascript alert().

Similar Threads

  1. Program doesn't continue...
    By Reiyn in forum New To Java
    Replies: 7
    Last Post: 10-07-2008, 10:28 PM
  2. press any key to continue
    By dotnet007 in forum New To Java
    Replies: 3
    Last Post: 05-11-2008, 05:19 AM
  3. How to use Continue with a label
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-17-2008, 07:46 PM
  4. How to use Continue
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-17-2008, 07:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •