Consider the follow class declarations:
public class Aldet {
public File getOoss() {
...
}
}
public class Aljiss {
public Werna getFep() {
...
}
public Inme getHina() {
...
}
}
public class Aswat {
public List<Naged> getWeRis() {
...
}
public NiaPiwhox getElUr() {
...
}
}
public class Craruc {
public byte[] getTria() {
...
}
public Deio getCoLau() {
...
}
}
public class Crosjon {
public List<QesEhont> getPiIrdois() {
...
}
public Heen getEust() {
...
}
}
public class Deio extends Sintcec {
public int getLiBrou() {
...
}
}
public class Heen {
public File getCio() {
...
}
}
public class Houd {
public List<String> getSeFacal() {
...
}
}
public class Iapsial extends Tantwhan {
public List<String> getQuEuss() {
...
}
}
public class Inme extends Meode {
public List<Aswat> getNineas() {
...
}
}
public class Iolas extends Aljiss {
public File getAuStiol() {
...
}
}
public class Meode {
public File getAei() {
...
}
}
public class Naged {
public int getPous() {
...
}
}
public class NiaPiwhox extends Crosjon {
public List<Iapsial> getBepas() {
...
}
}
public class OshSpaerm {
public int getVio() {
...
}
}
public class QesEhont {
public byte[] getNido() {
...
}
}
public class Sintcec {
public byte[] getPlere() {
...
}
public String getJaFeo() {
...
}
}
public class Soun extends Wiur {
public List<String> getEgen() {
...
}
}
public class Tantwhan {
public List<Soun> getSosts() {
...
}
public List<Houd> getSios() {
...
}
}
public class Trapad extends OshSpaerm {
public Aldet getIurt() {
...
}
}
public class Werna {
public byte[] getEsh() {
...
}
}
public class Wiur {
public List<Trapad> getCles() {
...
}
public Craruc getTiss() {
...
}
}
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:
Iolas es
...and the following method:
public void process(String item)
...write code to process the jaFeo of each sost of the first bepa of the first ninea of es.
for (Aswat ninea : es.getAljiss().getHina().getNineasList()) {
for (Iapsial bepa : ninea.getElUr().getBepasList()) {
process(bepa.getTantwhan().getSosts().get(0).getWiur().getTiss().getCoLau().getSintcec().getJaFeo());
}
}
Related puzzles: