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...
Type: Posts; User: KristopherP
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...
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...
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
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...
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...
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. ...