Consider the follow class declarations:
public class Cerar {
public Enaer getPeId() {
...
}
public Ossmust getAuss() {
...
}
}
public class Chlurpsend {
public Sarba getPoc() {
...
}
public Jespok getGeModce() {
...
}
}
public class Dioud {
public List<String> getSeuar() {
...
}
}
public class EalBrup extends Sliass {
public int getEsted() {
...
}
}
public class Elui {
public List<Prass> getIrDros() {
...
}
public File getMogod() {
...
}
}
public class Enaer {
public File getNii() {
...
}
}
public class Enreor extends Pris {
public List<Snenlel> getKaPreous() {
...
}
public List<Nico> getAngmis() {
...
}
}
public class Fudhous extends Elui {
public byte[] getAcCi() {
...
}
}
public class Jespok {
public List<Enreor> getOmaes() {
...
}
public int getSkan() {
...
}
}
public class Nico extends Peatrin {
public List<String> getChiad() {
...
}
public byte[] getSes() {
...
}
}
public class Ossmust {
public String getEnmol() {
...
}
}
public class Peatrin {
public List<Cerar> getImEls() {
...
}
public String getCeeng() {
...
}
}
public class Prass {
public Steposs getVeEn() {
...
}
public Trenpe getCes() {
...
}
}
public class Pris {
public byte[] getOnIsac() {
...
}
}
public class Sarba {
public byte[] getPrant() {
...
}
}
public class Sliass extends Chlurpsend {
public File getGui() {
...
}
}
public class Snenlel {
public List<String> getPhra() {
...
}
}
public class Steposs {
public int getSuCecon() {
...
}
public List<VadFrifoc> getEbuds() {
...
}
}
public class Trenpe {
public byte[] getIdont() {
...
}
}
public class VadFrifoc {
public List<Dioud> getAlAeps() {
...
}
public EalBrup getEsex() {
...
}
}
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:
Fudhous ed
...and the following method:
public void process(byte[] item)
...write code to process the ses of the first angmi of each omae of the first ebud of each irDro of ed.
for (VadFrifoc ebud : ed.getElui().getIrDros().get(0).getVeEn().getEbudsList()) {
for (Nico angmi : ebud.getEsex().getSliass().getChlurpsend().getGeModce().getOmaes().get(0).getAngmisList()) {
process(angmi.getSes());
}
}
Related puzzles: