Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #29455

Re: Help with methods, classes and parameters

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!newsfeed.CARNet.hr!gregory.BNet.hr!not-for-mail
From Josip Almasi <joe@vrspace.org>
Newsgroups comp.lang.java.programmer
Subject Re: Help with methods, classes and parameters
Date Thu, 31 Jul 2014 10:42:16 +0200
Organization B.net Hrvatska d.o.o.
Lines 16
Message-ID <lrcvh8$qe8$1@gregory.bnet.hr> (permalink)
References <lra1dp$9jh$1@dont-email.me> <lra7be$l2s$1@gregory.bnet.hr> <lrc0n6$nqt$1@dont-email.me>
NNTP-Posting-Host cpe-188-252-129-249.zg5.cable.xnet.hr
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace gregory.bnet.hr 1406796136 27080 188.252.129.249 (31 Jul 2014 08:42:16 GMT)
X-Complaints-To abuse@globalnet.hr
NNTP-Posting-Date Thu, 31 Jul 2014 08:42:16 +0000 (UTC)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
In-Reply-To <lrc0n6$nqt$1@dont-email.me>
Xref csiph.com comp.lang.java.programmer:29455

Show key headers only | View raw


On 07/31/2014 01:59 AM, Scott Dunning wrote:
>
> This is my last question...In the switch with the default being if they
> enter an option that is not listed, how can I get it to restart the
> switch if they enter the wrong option and not have to rerun the program?
> Can I do that inside the switch or would I need to put the switch inside
> a while loop?

A loop allright.
And exit the loop with
case 0:
   break;

(to answer the other question)

Regards...

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Help with methods, classes and parameters Scott Dunning <scottwd01@gmail.com> - 2014-07-29 22:58 -0700
  Re: Help with methods, classes and parameters Josip Almasi <joe@vrspace.org> - 2014-07-30 09:37 +0200
    Re: Help with methods, classes and parameters Scott Dunning <scottwd01@gmail.com> - 2014-07-30 16:59 -0700
      Re: Help with methods, classes and parameters Josip Almasi <joe@vrspace.org> - 2014-07-31 10:42 +0200
    Re: Help with methods, classes and parameters Scott Dunning <scottwd01@gmail.com> - 2014-07-30 17:29 -0700
    Re: Help with methods, classes and parameters Arne Vajhøj <arne@vajhoej.dk> - 2014-07-30 20:54 -0400
      Re: Help with methods, classes and parameters markspace <markspace@nospam.nospam> - 2014-07-30 18:43 -0700
        Re: Help with methods, classes and parameters Scott Dunning <scottwd01@gmail.com> - 2014-07-30 22:01 -0700
          Re: Help with methods, classes and parameters markspace <markspace@nospam.nospam> - 2014-07-31 09:45 -0700
            Re: Help with methods, classes and parameters Steven Simpson <ss@domain.invalid> - 2014-08-01 09:00 +0100
              Re: Help with methods, classes and parameters markspace <markspace@nospam.nospam> - 2014-08-01 09:07 -0700
            Re: Help with methods, classes and parameters Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2014-08-01 12:02 +0300
  Re: Help with methods, classes and parameters Jeff Higgins <jeff@invalid.invalid> - 2014-07-30 17:57 -0400

csiph-web