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 09:29:36 +1200 Organization: fsxNet Usenet Gateway | bbs.geek.nz/#fsxNet Message-ID: <2220899802@f38.n261.z1.binkp.net> References: <2409366975@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-MailConverter: SoupGate-Win32 v1.05 X-Comment-To: Eric Douglas Xref: csiph.com comp.lang.java.programmer:37760 On Thursday, December 7, 2017 at 4:54:27 PM UTC, Eric Douglas wrote: > On Thursday, December 7, 2017 at 11:31:40 AM UTC-5, rust...@gmail.com wrote: > > So far i have written....(Which is wrong) > > > > public class M250Account > > { > > /* instance variables */ > > > > private String accountNum; > > private int X00000; > > private double balance; > > > > /** > > * Constructor for objects of class M250Account > > */ > > public M250Account() > > { > > this.accountNum = X00000; > > } > > > > /** > > * An example of a method - replace this comment with your own > > */ > > public getAccountNum() > > { > > return this.accountNum; > > } > > } > > Did you compile this with your BlueJ to see your error? > All I'm seeing wrong with this is your getter method forgetting to declare the return type. the error is on public getAccountNum() invalid method declaration; return type required What should i put?