Hi, I have to complete a code. There's an array containing objects called fish. The method
is used to draw each fish in the array. I wrote the following piece of code:
and when I compile it, it tells me that ')' is missing. As no ')' is missing, the mistake is of another nature. pelase help me!
Code:
public void disegna(Graphics2D g, Applet parent);
is used to draw each fish in the array. I wrote the following piece of code:
Code:
for ( int i=0 ; i < pesciArray.length; i++)
{ ((OggettoAnimato) pesciArray[i]).disegna(Graphics2D g2, Applet parent);
}
and when I compile it, it tells me that ')' is missing. As no ')' is missing, the mistake is of another nature. pelase help me!