[Solved]Java Create Class Picturegallery Manages Arraylist Picture Objects Constructor Take Parame Q37273926
This is in Java
Create a class PictureGallery that manages an ArrayList ofPicture objects
The constructor does not take any parameters but needs toinitialize the instance variable.
Provide these methods
- public void add(Picture p) adds the picture to thisPictureGallery
- public Picture mostNarrow() gets the narrowest picture – theone with the smallest width or null if the PictureGallery is empty.If two pictures are narrow width, return the first.
You will need to import the graphics class.
Create a class PictureGallery that manages an ArrayList ofPicture objects
The constructor does not take any parameters but needs toinitialize the instance variable.
Provide these methods
- public void add(Picture p) adds the picture to thisPictureGallery
- public Picture mostNarrow() gets the narrowest picture – theone with the smallest width or null if the PictureGallery is empty.If two pictures are narrow width, return the first.
I desperately need help, I’ve been stuck on this problem forawhile and I need ideas.
heres the codecheck:
http://www.codecheck.it/files/1901180403bszw7ekw28kroh0b57qjuwia4
Expert Answer
Answer to This is in Java Create a class PictureGallery that manages an ArrayList of Picture objects The constructor does not take… . . .
OR

