Consider the follow class declarations:
public class Cistran {
public List<Dommi> getLaSisins() {
...
}
public int getSiRu() {
...
}
}
public class Dommi {
public NerPicles getWoch() {
...
}
public List<Ieed> getIoTries() {
...
}
}
public class EimMaerthfil extends EisMunasm {
public Reqoir getOlIr() {
...
}
}
public class EisMunasm {
public List<Latas> getOpers() {
...
}
public String getBeb() {
...
}
}
public class Gefass extends Cistran {
public List<EimMaerthfil> getPecs() {
...
}
}
public class Ieed {
public byte[] getPadas() {
...
}
}
public class Latas {
public List<String> getDuu() {
...
}
}
public class NerPicles {
public List<Posste> getMioses() {
...
}
public byte[] getWoul() {
...
}
}
public class PhaGreno {
public byte[] getSobe() {
...
}
public Slantflir getPle() {
...
}
}
public class Posste extends StiSqu {
public Tobre getRitch() {
...
}
}
public class Reqoir {
public List<String> getEal() {
...
}
}
public class Slantflir {
public List<String> getErAf() {
...
}
public File getEgind() {
...
}
}
public class StiSqu {
public int getNio() {
...
}
}
public class Tobre extends PhaGreno {
public String getEdSepon() {
...
}
}
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:
Gefass ce
...and the following method:
public void process(File item)
...write code to process the egind of each mios of the first laSisin of ce.
for (Dommi laSisin : ce.getCistran().getLaSisinsList()) {
process(laSisin.getWoch().getMioses().get(0).getRitch().getPhaGreno().getPle().getEgind());
}
Related puzzles: