Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Java-related question

  1. #1
    Junior Member
    Join Date
    Sep 2021
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Java-related question

    I wanted to know how to run a program for as long as a user wants to.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Java-related question

    I am Not sure what you are asking. A program can be written to execute until the user asks it to end.
    For Non-GUI programs, use a loop that continues looping until the user says to exit.
    If a GUI program don't execute any statements to exit until the user says to.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. [SOLVED] I have a question related to instanceof operator
    By Rohan R in forum What's Wrong With My Code?
    Replies: 6
    Last Post: February 2nd, 2014, 01:16 PM
  2. I need a little bit of JAVA related help!
    By RufioLJ in forum The Cafe
    Replies: 4
    Last Post: September 6th, 2012, 07:33 AM
  3. Just a general Java related question
    By javaisfun in forum Java Theory & Questions
    Replies: 3
    Last Post: October 25th, 2011, 07:21 AM
  4. Doubt related to Java
    By Jagatha in forum Member Introductions
    Replies: 1
    Last Post: September 15th, 2011, 04:21 AM
  5. i want three java related projects !
    By coolforyou in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: August 16th, 2011, 12:02 AM