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


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

Re: Class assignment help

From Tim Slattery <tim@risingdove.com>
Newsgroups comp.lang.java.programmer
Subject Re: Class assignment help
Date 2014-07-21 10:50 -0400
Organization A noiseless patient Spider
Message-ID <jv9qs99vjkbrit3qjtnvmtn1853ise0r9b@4ax.com> (permalink)
References <lqi67a$1nt$2@dont-email.me> <lqi6fl$3b3$1@dont-email.me> <tnaps91uuvk0tlsan8e2f0fg930u6vvo9i@4ax.com> <lqidjb$8l5$1@dont-email.me>

Show all headers | View raw


Scott Dunning <scottwd01@gmail.com> wrote:


>what it means.  Doesn't initializing it mean to declare the variables?

No, it means to assign them a value. You assigned values to highScore
and secondHignScore in the declarations, but that syntax doesn't work
for String. You'll need to assign them a dummy value (highName = "no
name yet";) or an empty string (secondHighName = "";) to get rid of
the error messages.

-- 
Tim Slattery
tim <at> risingdove <dot> com

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