Consider the follow class declarations:
public class Arbe {
public List<String> getEcRor() {
...
}
}
public class AurCondrud {
public byte[] getMaCeid() {
...
}
public Firde getDuGlasa() {
...
}
}
public class Berpang {
public byte[] getOxGaim() {
...
}
public Krud getOcent() {
...
}
}
public class Chesio {
public Lallston getInge() {
...
}
public Stisil getShoss() {
...
}
public List<Osdism> getCodars() {
...
}
}
public class Coddism extends EdiAri {
public String getAsPhri() {
...
}
}
public class EdiAri {
public List<Iraist> getEtats() {
...
}
public byte[] getEusm() {
...
}
}
public class Eodilp {
public EouPanneaed getIoa() {
...
}
public String getMesor() {
...
}
}
public class EouPanneaed {
public String getSiw() {
...
}
public List<Arbe> getOnFaels() {
...
}
}
public class Erdrad {
public List<AurCondrud> getDiis() {
...
}
public File getIstmo() {
...
}
public byte[] getSost() {
...
}
}
public class Firde {
public String getIcUees() {
...
}
}
public class IckStaris extends Coddism {
public List<String> getSiog() {
...
}
}
public class Iraist extends Spiea {
public Chesio getUno() {
...
}
}
public class Krud {
public int getCaCacca() {
...
}
public List<IckStaris> getEirms() {
...
}
}
public class Lallston extends Pece {
public List<OssEnfo> getSiosses() {
...
}
}
public class MulSto {
public byte[] getWoma() {
...
}
public Erdrad getRiu() {
...
}
}
public class Osdism extends Eodilp {
public List<String> getPuas() {
...
}
}
public class OssEnfo {
public File getBaFi() {
...
}
}
public class Pece {
public File getHiass() {
...
}
public List<MulSto> getPsisos() {
...
}
}
public class Spiea {
public String getLaInce() {
...
}
}
public class Stisil {
public byte[] getPuin() {
...
}
}
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:
Berpang au
...and the following method:
public void process(byte[] item)
...write code to process the sost of each psiso of the first etat of the first eirm of au.
for (IckStaris eirm : au.getOcent().getEirmsList()) {
for (Iraist etat : eirm.getCoddism().getEdiAri().getEtatsList()) {
process(etat.getUno().getInge().getPece().getPsisos().get(0).getRiu().getSost());
}
}
Related puzzles: