Re: Need basic help....
- From: Ulrich Eckhardt <eckhardt@xxxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 14:31:38 +0100
TheBigPJ wrote:
Ive got this far...
class q4 {
char a;
public static void main(String[] args) {
q4 blah = new q4();
blah.newa();
blah.newa(); //must put command line here
blah.returna();
}
public void newa() {
a = ' ';
}
public void newa(char a) {
this.a = a;
}
public char returna() {
// Save to a file here
return a;
}
}
But I don't think i am not on the right track :S
I think you are on the right track, just that you should structure your code
a bit better.
1. IMHO, the main() doesn't belong there and is just for testing purposes.
Eventually, it should be removed, but leave it there for now.
2. For each part of the assignment, create corresponding code in main() or a
subroutine thereof that uses the required feature. Document which feature
is being tested. If you fail to achieve a part or if you don't understand
it, ask specific questions here, but as it is now, it seems like you are
only looking for someone to do your homework without wanting to learn
anything yourself.
Uli
--
Sator Laser GmbH
Geschäftsführer: Ronald Boers, Amtsgericht Hamburg HR B62 932
.
- References:
- Need basic help....
- From: TheBigPJ
- Re: Need basic help....
- From: TheBigPJ
- Need basic help....
- Prev by Date: Re: Need basic help....
- Next by Date: Re: Importing javax.faces.context.FacesContext for Glassfish
- Previous by thread: Re: Need basic help....
- Next by thread: Re: Need basic help....
- Index(es):
Relevant Pages
|
|