posted 13 years ago
Hi,
I have initialized array e[i] typing the following:
e[i]=new EstanteriaMultimedia(20);
But the NullPointerexception error was displayed in class EstanteriaMultimedia. I typed something similar as on the class Anadeobjetosalalistamultimedia:
listamultimedia[i]=new Multimedia[20];
When I thought the error was fixed, the java compiler throws the following error:
incompatible types
required Multimedia
found Multimedia[]
Here the new code:
class EstanteriaMultimedia
class Multimedia
class Anadeobjetosalalistamultimedia
How can I fix it?
Thanks.