Consider the follow class declarations:
public class Barust extends Ruipont {
public List<String> getEcPri() {
...
}
public int getJor() {
...
}
}
public class Cengnol {
public byte[] getDarir() {
...
}
public List<Tuscooct> getOeses() {
...
}
}
public class Cioschom extends Strimu {
public int getStasm() {
...
}
}
public class Cisfa {
public String getAfi() {
...
}
}
public class Dahus {
public Cioschom getIlt() {
...
}
public byte[] getBoi() {
...
}
}
public class Decme {
public List<String> getClaa() {
...
}
public Cengnol getPleo() {
...
}
}
public class Etpleir {
public List<Plon> getPriis() {
...
}
public List<String> getVouho() {
...
}
}
public class Iawoc extends Decme {
public List<Memp> getMios() {
...
}
public PloOnpil getAlsor() {
...
}
}
public class Memp {
public File getGiRirpe() {
...
}
}
public class OssTre {
public List<String> getIsi() {
...
}
}
public class PloOnpil {
public File getEpWra() {
...
}
}
public class Plon extends Thaoat {
public String getMeIost() {
...
}
}
public class Ruipont {
public List<String> getClu() {
...
}
}
public class Singol {
public byte[] getFeAd() {
...
}
public Cisfa getBuii() {
...
}
}
public class Spongroc {
public List<String> getQeci() {
...
}
}
public class Spoud {
public Spongroc getApAsman() {
...
}
public int getOdFic() {
...
}
}
public class Stracin {
public String getIted() {
...
}
}
public class Strimu {
public Stracin getSteo() {
...
}
public List<Barust> getMefes() {
...
}
}
public class Thaoat {
public List<Spoud> getSwasses() {
...
}
public List<OssTre> getPliors() {
...
}
public List<Dahus> getVirs() {
...
}
}
public class Tuscooct extends Singol {
public Etpleir getPra() {
...
}
}
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:
Iawoc la
...and the following method:
public void process(int item)
...write code to process the jor of each mefe of the first vir of each prii of each oese of la.
for (Dahus vir : la.getDecme().getPleo().getOeses().get(0).getPra().getPriis().get(0).getThaoat().getVirsList()) {
process(vir.getIlt().getStrimu().getMefes().get(0).getJor());
}
Related puzzles: