The first part was to create a 2D Boolean array called matrix. The array dimensions of matrix is equal to the local variable letter and the method I have to write should copy the boolean values of...
Type: Posts; User: eNxy
The first part was to create a 2D Boolean array called matrix. The array dimensions of matrix is equal to the local variable letter and the method I have to write should copy the boolean values of...
Yep, I got the first part and it displays the lines
I have done this so far
public void writeLetter(char aCharacter)
{
boolean letter[][] = LEDFont.getLetter(aCharacter);
}
and I'm just stuck on what I need to put...
Nope, there's no doc with it. I'll paste the question to give you a better understanding.
That's why I'm having a mare with it :(
The LEDFont class that is already compiled does not have a source code so I can't view anything in it.
It's a utility class that was already created
Oh, so it's LEDFont.getLetter(aCharacter); ... d'oh
It's to replace it, so that when I execute display(), it will bring up what I was coding before (but with a letter I have specified)
I have no clue how to invoke the getLetter method on the...
The writeLetter() method should take an argument called aCharacter of type char and returns no result. This method should invoke the getLetter() method on the LEDFont class (utility class) with...
I have a utility class where it encodes the characters I input into 2D boolean arrays.
I specify the character using a method called writeLetter(), which then sends a getLetter() method on this...
AH! I think I may have got it. I am going to test it tomorrow after work. Many thanks for not giving me the answer directly as it forces me to actually think!!!
Only problem is that if I remove the <data type> then wouldn't it not implement an array, which completely defeats the point of display()
But it's not just a simple case of removing the instance variable though is it?
Thank you for all your replies so far. Firstly I've gone back to the start - I have declared an instance variable called "matrix" which is capable of referncing a 2D array of type boolean
...
It's an assignment and it's the supplied program so I should be able to figure it out... with lots and lots of time! I don't want to have to resort to trial and error but I guess I might have to, and...
As far as I know this is only for learning purposes and to test small bits of code. It only goes up to a certain point and it's not going to be implemented into a larger model for any commercial use,...
I am a little confused - I don't see how the matrix overrides the other? I must be being blind.
That is the only error message that is displayed. The program that is given (BlueJ) is a simple...
Hello,
First of all I hope this is the right place! I am a bit of a newbie at Java and I am having a mental breakdown in my assignment. Hopefully a kind member can pin-point me in the right...