Path: csiph.com!news.bbs.geek.nz!.POSTED.agency.bbs.geek.nz!not-for-mail From: rustboy86@gmail.com (rustboy86) Newsgroups: comp.lang.java.programmer Subject: Re: Please help Date: Thu, 07 Dec 2017 11:04:12 +1200 Organization: fsxNet Usenet Gateway | bbs.geek.nz/#fsxNet Message-ID: <4106325146@f38.n261.z1.binkp.net> References: <1087264470@f38.n261.z1.binkp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: news.bbs.geek.nz; posting-host="M6YmRdZYyc42DJk0lNlt/X4dpP4dzvceBNabSmESN3E"; logging-data="25937"; mail-complaints-to="abuse@news.bbs.geek.nz" User-Agent: VSoup v1.2.9.47Beta [95/NT] X-Comment-To: Eric Douglas X-MailConverter: SoupGate-Win32 v1.05 Xref: csiph.com comp.lang.java.programmer:37766 On Thursday, December 7, 2017 at 6:44:31 PM UTC, Eric Douglas wrote: > On Thursday, December 7, 2017 at 1:36:37 PM UTC-5, rust...@gmail.com wrote: > > > That is actually a runtime error. It does look like the instructions say to initialize it to the string constant "X00000" while this code is initializing the String variable to the String value of the int variable X00000 which is not assigned. > > > > I just dont get it at all ive tried re-writing but nothing works > > I think it's spelled out pretty clearly. What part don't you "get"? The concept of declaring a return type, or the difference between a variable name and a String constant? i dont understand what parts ive done wrong and how to correct it.