use array's..
Carton[] cartons = new Carton[25];
Type: Posts; User: arieltal
use array's..
Carton[] cartons = new Carton[25];
need to import it
well according to your code the compiler is right, you have not initialized the variable textField1,
you need to create a new object with the new keyword, and then you can add it.
edit : the order...
yes i see now i was mistaken about the string = "" , since it is an assignment and not comparison.. oopsi
which line produces the error?
firstly, the carWorker class, the constructor MUST be the same name as the class, you wrote public car(int....)
it needs to be carWorker(int....)
secondly, the toString method in the same class...
what is your question sir?
i think it's because you instansiate the background class before sprites_sheet class,
the background class relies on the sprite_sheet variable - ml, which is null at the time..
i guess you need to tell that circle not to paint itself.. on a side note - you have a line that says:
if (enemylhit=true)
// something..
that line will ALWAYS be true, since you need == for...
try using 2 different variables for length and width..
good advice is to debug it, and trace what's happening.
maybe there's a problem with singleID definition, what IDE you use?
kevin is right, but i would start by putting some code inside the main method.
not sure what the question is..
but if you mean to implement equal, then you'll want to test for instanceof to see if the object is the same as the one that
invoked the method, and then just test...
hello, i'm new to this forum, i hope to find some answers :)
my problem is that i have a .png file, and i read the content to a BufferedImage object, then i move that into a
pixel array, the file...