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


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

Re: Class assignment help

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Class assignment help
Date Mon, 21 Jul 2014 18:35:12 -0400
Organization A noiseless patient Spider
Lines 32
Message-ID <lqk532$tup$1@dont-email.me> (permalink)
References <lqi67a$1nt$2@dont-email.me> <lqi6fl$3b3$1@dont-email.me> <tnaps91uuvk0tlsan8e2f0fg930u6vvo9i@4ax.com> <lqidjb$8l5$1@dont-email.me> <jv9qs99vjkbrit3qjtnvmtn1853ise0r9b@4ax.com> <qqqqs9lhgordsok2srcsjm52sfuv6qh2jh@4ax.com> <lqk0k5$sb1$1@dont-email.me> <lqk199$36f$1@dont-email.me> <lqk4df$phm$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Mon, 21 Jul 2014 22:43:46 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="b896cb427f8c4d19d14880347aa9d6ce"; logging-data="30681"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18aN12pHhvs9400+mlVcwPsWD/tg3iBOL8="
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.6.0
In-Reply-To <lqk4df$phm$1@dont-email.me>
Cancel-Lock sha1:rbnH82l9C8Zhqjg7gqLxvoCv/08=
Xref csiph.com comp.lang.java.programmer:29174

Show key headers only | View raw


On 07/21/2014 06:34 PM, Scott Dunning wrote:
> On 7/21/14, 2:30 PM, Jeff Higgins wrote:
>> On 07/21/2014 05:29 PM, Scott Dunning wrote:
>>> On 7/21/14, 12:35 PM, Roedy Green wrote:
>>>> On Mon, 21 Jul 2014 10:50:22 -0400, Tim Slattery <tim@risingdove.com>
>>>> wrote, quoted or indirectly quoted someone who said :
>>>>
>>>>> You'll need to assign them a dummy value (highName = "no
>>>>> name yet";) or an empty string (secondHighName = "";) to get rid of
>>>>
>>>> null will keep it happy. You might later get an NullPointerException
>>>> if you don't get a real value in there soon enough.
>>>>
>>>
>>>
>>> So I got it "working" which is to say it will run.  However, after it
>>> asks to how many students names and grades I'd like to enter it asks
>>> both of the next questions at the same time and that then causes an
>>> error.  Since it's in the for loop I'm not sure how to get it to ask the
>>> questions separately.  Any tips?
>>
>> java.io.Console - if you're allowed to use it.
>> <http://docs.oracle.com/javase/tutorial/essential/io/cl.html>
>>
> I just stumbled onto something called hasNext, will something like that
> work you think, provided I can figure out how to use it?
>
>
Please don't stumble, proceed with deliberation.
<http://docs.oracle.com/javase/8/docs/api/java/util/Scanner.html>
Paper and pencil, although somewhat dated, can be very helpful.

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


Thread

Class assignment help Scott Dunning <scottwd01@gmail.com> - 2014-07-20 21:53 -0700
  Re: Class assignment help Scott Dunning <scottwd01@gmail.com> - 2014-07-20 21:57 -0700
    Re: Class assignment help Roedy Green <see_website@mindprod.com.invalid> - 2014-07-20 22:55 -0700
      Re: Class assignment help Scott Dunning <scottwd01@gmail.com> - 2014-07-20 23:59 -0700
        Re: Class assignment help Tim Slattery <tim@risingdove.com> - 2014-07-21 10:50 -0400
          Re: Class assignment help Roedy Green <see_website@mindprod.com.invalid> - 2014-07-21 12:35 -0700
            Re: Class assignment help Scott Dunning <scottwd01@gmail.com> - 2014-07-21 14:22 -0700
            Re: Class assignment help Scott Dunning <scottwd01@gmail.com> - 2014-07-21 14:29 -0700
              Re: Class assignment help Jeff Higgins <jeff@invalid.invalid> - 2014-07-21 17:30 -0400
                Re: Class assignment help Scott Dunning <scottwd01@gmail.com> - 2014-07-21 15:26 -0700
                Re: Class assignment help Scott Dunning <scottwd01@gmail.com> - 2014-07-21 15:34 -0700
                Re: Class assignment help Jeff Higgins <jeff@invalid.invalid> - 2014-07-21 18:35 -0400
                Re: Class assignment help Jeff Higgins <jeff@invalid.invalid> - 2014-07-21 20:55 -0400
                Re: Class assignment help markspace <markspace@nospam.nospam> - 2014-07-22 10:42 -0700
                Re: Class assignment help Scott Dunning <scottwd01@gmail.com> - 2014-07-23 17:55 -0700
                Re: Class assignment help cdalten@gmail.com - 2014-07-30 20:58 -0700
                Re: Class assignment help cdalten@gmail.com - 2014-07-30 21:00 -0700

csiph-web