Search:

Type: Posts; User: eNxy

Search: Search took 0.14 seconds.

  1. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    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...
  2. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    Yep, I got the first part and it displays the lines
  3. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    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...
  4. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    Very well.
  5. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    Nope, there's no doc with it. I'll paste the question to give you a better understanding.
  6. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    That's why I'm having a mare with it :(
  7. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    The LEDFont class that is already compiled does not have a source code so I can't view anything in it.
  8. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    It's a utility class that was already created
  9. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    Oh, so it's LEDFont.getLetter(aCharacter); ... d'oh
  10. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    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...
  11. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    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...
  12. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    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...
  13. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    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!!!
  14. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    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()
  15. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    But it's not just a simple case of removing the instance variable though is it?
  16. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    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


    ...
  17. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    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...
  18. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    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,...
  19. Replies
    40
    Views
    3,441

    Re: Implementing a two-dimensional boolean array

    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...
  20. Replies
    40
    Views
    3,441

    Implementing a two-dimensional boolean array

    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...
Results 1 to 20 of 20