Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #37725
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2017-12-07 09:29 -0800 |
| References | (1 earlier) <7d136305-b0dd-4ade-98d4-89db7106955d@googlegroups.com> <d786c841-f747-4848-971d-4c222ef5d834@googlegroups.com> <93e9bca8-c0e8-4a12-bb30-9f5548f611c3@googlegroups.com> <200bfada-8168-4bf1-88de-8cb9016aec1a@googlegroups.com> <367d1efe-674a-4e85-9887-816ebd57affe@googlegroups.com> |
| Message-ID | <4e9ebac0-22e9-461b-bc51-2ab4d10a4810@googlegroups.com> (permalink) |
| Subject | Re: Please help |
| From | rustboy86@gmail.com |
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?
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Please help rustboy86@gmail.com - 2017-12-07 06:02 -0800
Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 07:10 -0800
Re: Please help rustboy86@gmail.com - 2017-12-07 07:33 -0800
Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 08:22 -0800
Re: Please help rustboy86@gmail.com - 2017-12-07 08:31 -0800
Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 08:54 -0800
Re: Please help rustboy86@gmail.com - 2017-12-07 09:29 -0800
Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 10:11 -0800
Re: Please help Kiwi User <martin@mydomain.invalid> - 2017-12-07 18:04 +0000
Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 10:14 -0800
Re: Please help rustboy86@gmail.com - 2017-12-07 10:36 -0800
Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 10:44 -0800
Re: Please help rustboy86@gmail.com - 2017-12-07 11:04 -0800
Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 13:35 -0800
Re: Please help Kiwi User <martin@mydomain.invalid> - 2017-12-07 21:22 +0000
Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 13:32 -0800
Re: Please help Kiwi User <martin@mydomain.invalid> - 2017-12-07 21:48 +0000
csiph-web