Consider the follow class declarations:
public class Derais {
public String getUngme() {
...
}
}
public class EnoNunhont {
public List<String> getRerm() {
...
}
public List<Leeram> getPoAfs() {
...
}
}
public class Ermed extends Esho {
public File getScick() {
...
}
}
public class Esho {
public int getTedea() {
...
}
public List<Etrerd> getAlamps() {
...
}
}
public class Etrerd extends Onsi {
public Homa getImool() {
...
}
}
public class Fanor {
public File getIsStass() {
...
}
}
public class Fitcin {
public int getFaim() {
...
}
public byte[] getClac() {
...
}
}
public class Heiss {
public Fitcin getLorda() {
...
}
public Derais getDiu() {
...
}
}
public class Heldo {
public List<String> getOssed() {
...
}
}
public class Homa extends Heiss {
public File getCuct() {
...
}
}
public class Iqul {
public List<Onte> getCipens() {
...
}
public int getEoWo() {
...
}
}
public class IrmNer extends Mangpren {
public EnoNunhont getDeWuc() {
...
}
}
public class Leeram {
public List<String> getTrai() {
...
}
}
public class Mangpren {
public byte[] getZeia() {
...
}
public Pabe getPhec() {
...
}
}
public class Masmdus {
public byte[] getUsm() {
...
}
public Fanor getEcEdco() {
...
}
}
public class Onsi extends Heldo {
public List<Masmdus> getHioses() {
...
}
}
public class Onte {
public File getMacen() {
...
}
}
public class Pabe {
public List<String> getCiis() {
...
}
public List<Pror> getAwucs() {
...
}
}
public class Pror {
public Ermed getTriai() {
...
}
public List<Iqul> getLomos() {
...
}
}
public class Twec {
public byte[] getCosut() {
...
}
public List<IrmNer> getGlans() {
...
}
}
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:
Twec al
...and the following method:
public void process(byte[] item)
...write code to process the clac of each alamp of each awuc of the first glan of al.
for (IrmNer glan : al.getGlansList()) {
process(glan.getMangpren().getPhec().getAwucs().get(0).getTriai().getEsho().getAlamps().get(0).getImool().getHeiss().getLorda().getClac());
}
Related puzzles: