Consider the follow class declarations:
public class Alam {
public int getMaNe() {
...
}
}
public class Almur {
public Stie getPepe() {
...
}
public int getStier() {
...
}
}
public class Bagup extends Grirlu {
public File getErnis() {
...
}
}
public class Bamism {
public byte[] getBaIr() {
...
}
}
public class Bespec {
public File getAdGa() {
...
}
}
public class Ecphin extends Ovin {
public Alam getBaem() {
...
}
public List<Slarqen> getWirphs() {
...
}
public Tuobic getPaAu() {
...
}
}
public class Esle {
public byte[] getRhiec() {
...
}
}
public class Grirlu {
public byte[] getPeMobe() {
...
}
public List<Pushut> getMabus() {
...
}
}
public class Heacbi extends Ecphin {
public String getPhid() {
...
}
}
public class Imgret extends Bagup {
public Esle getHehis() {
...
}
}
public class Ovin {
public List<RurPingpree> getOnRacs() {
...
}
public String getPeno() {
...
}
}
public class Oxru {
public byte[] getErEm() {
...
}
}
public class Poidpri {
public List<Bamism> getIsas() {
...
}
public String getEps() {
...
}
}
public class Pushut {
public List<Oxru> getIngsas() {
...
}
public VudTio getIaa() {
...
}
}
public class RurPingpree {
public int getRalin() {
...
}
}
public class Slarqen {
public String getCeUspoo() {
...
}
}
public class Stie {
public List<Imgret> getRotsas() {
...
}
public byte[] getPosen() {
...
}
}
public class Todter {
public Bespec getUno() {
...
}
public List<String> getLedva() {
...
}
public List<String> getOrRusi() {
...
}
}
public class Tuobic {
public Poidpri getPadoc() {
...
}
public List<Todter> getDoims() {
...
}
}
public class VudTio {
public List<Heacbi> getAlRos() {
...
}
public String getWoae() {
...
}
}
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:
Almur ci
...and the following method:
public void process(List<String> item)
...write code to process the orRusi of the first doim of each alRo of the first mabu of each rotsa of ci.
for (Pushut mabu : ci.getPepe().getRotsas().get(0).getBagup().getGrirlu().getMabusList()) {
for (Todter doim : mabu.getIaa().getAlRos().get(0).getEcphin().getPaAu().getDoimsList()) {
process(doim.getOrRusi());
}
}
Related puzzles: