Path: csiph.com!news.bbs.geek.nz!.POSTED.agency.bbs.geek.nz!not-for-mail From: Eric Douglas (Eric Douglas) Newsgroups: comp.lang.java.programmer Subject: Re: Please help Date: Thu, 07 Dec 2017 10:11:28 +1200 Organization: fsxNet Usenet Gateway | bbs.geek.nz/#fsxNet Message-ID: <3928596342@f38.n261.z1.binkp.net> References: <2220899802@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: rustboy86 X-MailConverter: SoupGate-Win32 v1.05 Xref: csiph.com comp.lang.java.programmer:37762 On Thursday, December 7, 2017 at 12:30:02 PM UTC-5, rust...@gmail.com wrote: > > the error is on > > public getAccountNum() > > invalid method declaration; return type required > > What should i put? This is a basic you would learn in the free tutorial if you follow from the beginning you'd get to it in this section.. https://docs.oracle.com/javase/tutorial/java/javaOO/returnvalue.html