Re: Need basic help....



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

.



Relevant Pages

  • [PATCH 2.6.19-rc1 V9] drivers: add LCD support
    ... Adds support for the ks0108 LCD Controller as a device driver. ... +The buffer should be a 128*64 unsigned char array: ... * GNU General Public License for more details. ... +static void cfag12864b_setbit ...
    (Linux-Kernel)
  • [PATCH 2.6.19-rc1 V9] drivers: add LCD support
    ... Adds support for the ks0108 LCD Controller as a device driver. ... +The buffer should be a 128*64 unsigned char array: ... * GNU General Public License for more details. ... +static void cfag12864b_setbit ...
    (Linux-Kernel)
  • [PATCH 2.6.18 V8] drivers: add LCD support
    ... Adds a LCD class for registering LCD devices. ... +The buffer should be a 128*64 unsigned char array: ... * GNU General Public License for more details. ... +static void cfag12864b_setbit ...
    (Linux-Kernel)
  • [PATCH 2.6.18 V7] drivers: add lcd display support
    ... Adds support for the cfag12864b LCD Display as a device driver. ... +The buffer should be a 128*64 unsigned char array: ... * GNU General Public License for more details. ... +static void cfag12864b_setbit ...
    (Linux-Kernel)
  • [PATCH 2.6.18 V6] drivers: add lcd display support
    ... Adds support for the cfag12864b LCD Display as a device driver. ... * GNU General Public License for more details. ... +static void cfag12864b_setbit(unsigned char state, ...
    (Linux-Kernel)