Search:

Type: Posts; User: KristopherP

Search: Search took 0.09 seconds.

  1. Replies
    14
    Views
    3,667

    Re: Writing a getColor() method

    Thanks for the input and links but, I am not getting it. I got my program to perform by using the locations in the arrayList since I know where each object is. I would still like to create a method...
  2. Replies
    14
    Views
    3,667

    Re: Writing a getColor() method

    I am not sure I do not know if it is an object or string


    It is , I need to return the variable from Color c Im just not sure how since Im confused on the method header and code. The text book...
  3. Replies
    14
    Views
    3,667

    re: Writing a getColor() method

    Thanks but, the problem is I do not know how to do a getColor() method. I do not know what the return type should be or what code I would use to get the color from one of my objects
  4. Replies
    14
    Views
    3,667

    Writing a getColor() method

    I believe my previous post was in the wrong section. I need a way to check the color of objects in an arrayList. I included my Block class and what I have so far. I am not sure what I need to...
  5. Replies
    14
    Views
    3,667

    re: Writing a getColor() method

    My main question is do I need to create a getColor method or can I use the getColor that is already available as part of Color.
    If I can use the getColor already available that is getColor(String...
  6. Replies
    14
    Views
    3,667

    Writing a getColor() method

    I am having trouble with a simple game. I have a game made with Blocks. The blocks are made as
    Block(double x1Lc, double y1Lc, double w, double h, Color c)

    They are then added to an ArrayList. ...
Results 1 to 6 of 6