Search:

Type: Posts; User: samjoyboy

Search: Search took 0.36 seconds.

  1. Re: toggle colors from an array when the method is called.

    That was so helpful honestly made a lot of sense however i can only get it to work until it hits the end of the arraylist length this is my code:



    private void drawRow() {
    Integer...
  2. [SOLVED] Re: I can't figure out why this isn't working!

    solved...


    private void drawRow() {
    Integer row1 = 0;
    while (row1 < numRows) {
    for (Integer row = 0; row <= rowLength; row++) {
    makeBrick();
    ...
  3. toggle colors from an array when the method is called.

    I have to make the bricks i print out from the drawRow method multi coloured by calling the method and using this to go through the colors per brick.


    import java.util.ArrayList;
    /**
    * Write a...
  4. [SOLVED] Re: I can't figure out why this isn't working!

    1. rowLength is how many bricks are in each row - this is declared when I create a new brickwall in BlueJ. The make brick creates a brick then the startX moves position of the next brick after the...
  5. [SOLVED] I can't figure out why this isn't working!

    On my current assignment I have to create a brick wall of multi-coloured tiles in java. All using blueJ and as you can see below my code on the "drawRow" method won't work, it just draws a single row...
Results 1 to 5 of 5