Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Scott Dunning Newsgroups: comp.lang.java.programmer Subject: Re: Class assignment help Date: Mon, 21 Jul 2014 14:22:36 -0700 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 21 Jul 2014 21:20:10 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="11828741c91d0da908948c6ecdf164c7"; logging-data="26112"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/g+r5BzanGaV1xxBpvKsAax+FAEILdO7M=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: Cancel-Lock: sha1:XhxE/UgwQISwAo7RJTqrO3l6Fo8= Xref: csiph.com comp.lang.java.programmer:29164 On 7/21/14, 12:35 PM, Roedy Green wrote: > On Mon, 21 Jul 2014 10:50:22 -0400, Tim Slattery > 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. > Oh ok, I didn't realize. I thought I could just declare them like you do with an int or double...Thank you, I'll see if I can get it working now. Scott