Consider the follow class declarations:
public class Adcrord {
public List<Pruc> getEsPaacses() {
...
}
public Chlosha getUss() {
...
}
}
public class Blepet extends SorIdi {
public Pholpoist getIscus() {
...
}
}
public class Chlosha {
public List<Clabe> getPiMesus() {
...
}
public List<Osent> getRosias() {
...
}
}
public class Choer extends Nipec {
public byte[] getFrer() {
...
}
}
public class Clabe extends Garm {
public byte[] getHipet() {
...
}
}
public class Garm extends Blepet {
public Tioplant getOcrot() {
...
}
}
public class IssZecress {
public byte[] getKasso() {
...
}
public Pliol getOdOi() {
...
}
}
public class Kastcem {
public List<Pussdi> getEdpes() {
...
}
public List<String> getOurre() {
...
}
}
public class Micdes {
public byte[] getTul() {
...
}
}
public class Nipec {
public int getOng() {
...
}
}
public class Niurgre extends Kastcem {
public int getSiLeshi() {
...
}
}
public class Osent {
public IssZecress getRion() {
...
}
public File getDre() {
...
}
}
public class PhePhungxe {
public List<String> getFiIdba() {
...
}
public List<String> getCeGe() {
...
}
}
public class Pholpoist {
public List<Niurgre> getSuwos() {
...
}
public String getApic() {
...
}
}
public class Pliol {
public byte[] getWaCapeu() {
...
}
}
public class Pruc {
public byte[] getIlue() {
...
}
}
public class Pussdi {
public Triss getSagi() {
...
}
public File getNas() {
...
}
}
public class SorIdi {
public List<Choer> getXasses() {
...
}
public byte[] getEleae() {
...
}
}
public class Tioplant {
public List<String> getRedon() {
...
}
}
public class Triss {
public PhePhungxe getAlam() {
...
}
public List<Micdes> getFaStrols() {
...
}
}
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:
Adcrord eo
...and the following method:
public void process(List<String> item)
...write code to process the ceGe of each edpe of each suwo of the first piMesu of eo.
for (Clabe piMesu : eo.getUss().getPiMesusList()) {
process(piMesu.getGarm().getBlepet().getIscus().getSuwos().get(0).getKastcem().getEdpes().get(0).getSagi().getAlam().getCeGe());
}
Related puzzles: