Consider the follow class declarations:
public class AciPesmchel {
public int getCermo() {
...
}
}
public class Caspec extends Truenthe {
public String getPire() {
...
}
}
public class CicGitsoc {
public List<String> getElAc() {
...
}
}
public class Cosspi extends Imill {
public Psif getGreu() {
...
}
}
public class Eactstre {
public File getOsir() {
...
}
}
public class Eend {
public Sunmac getMie() {
...
}
public List<Eactstre> getAdoegs() {
...
}
}
public class FesDeousbri extends Splidtroc {
public int getFri() {
...
}
}
public class Grocme extends Siont {
public int getLon() {
...
}
}
public class IelGeso extends AciPesmchel {
public String getOprod() {
...
}
}
public class Imill {
public int getEed() {
...
}
public List<IelGeso> getNaSos() {
...
}
public List<String> getKued() {
...
}
}
public class Liessprec {
public List<Eend> getPiPes() {
...
}
public byte[] getPiol() {
...
}
}
public class Noul {
public List<Otciss> getDaIas() {
...
}
public List<Grocme> getTiPlells() {
...
}
}
public class Otciss {
public String getNer() {
...
}
}
public class Psif {
public byte[] getPras() {
...
}
}
public class Saest {
public String getRhel() {
...
}
}
public class Scalboc {
public Sefoll getCri() {
...
}
public File getMeUe() {
...
}
}
public class Sefoll {
public List<FesDeousbri> getNiings() {
...
}
public List<String> getCiUqin() {
...
}
}
public class Siont {
public List<String> getSes() {
...
}
public List<Cosspi> getLuPrents() {
...
}
}
public class Splidtroc {
public Caspec getHiAs() {
...
}
public Noul getFel() {
...
}
}
public class Sunmac extends Scalboc {
public CicGitsoc getEaOdca() {
...
}
public Watast getRango() {
...
}
}
public class Truenthe {
public File getAlHicen() {
...
}
}
public class Watast {
public int getSooc() {
...
}
public List<Saest> getKucons() {
...
}
}
Draw a diagram showing the class relationships.
You only need to diagram the classes listed above. You only need to show the name of each class; do not show their methods or properties.
Draw arrows between the classes that have relationships, and label each arrow with one of the following:
Make sure your arrows point in the correct direction!
Given the following variable:
Liessprec rhid
...and the following method:
public void process(List<String> item)
...write code to process the kued of the first luPrent of the first tiPlell of the first niing of the first piPe of rhid.
for (Eend piPe : rhid.getPiPesList()) {
for (FesDeousbri niing : piPe.getMie().getScalboc().getCri().getNiingsList()) {
for (Grocme tiPlell : niing.getSplidtroc().getFel().getTiPlellsList()) {
for (Cosspi luPrent : tiPlell.getSiont().getLuPrentsList()) {
process(luPrent.getImill().getKued());
}
}
}
}
Related puzzles: