Consider the follow class declarations:
public class Bralla {
public List<Dunnind> getPeMos() {
...
}
public Sicusm getMic() {
...
}
}
public class CasAdfli {
public List<Redeul> getOogns() {
...
}
public List<PlaEnt> getSpeas() {
...
}
public File getEneac() {
...
}
}
public class Chismur {
public Cuast getCri() {
...
}
public Vertir getOsh() {
...
}
}
public class Clusmgo {
public List<Bralla> getOnNuins() {
...
}
public byte[] getChrad() {
...
}
}
public class Cuast {
public List<Irsde> getHiexs() {
...
}
public File getTasir() {
...
}
}
public class Doic {
public byte[] getPeght() {
...
}
public List<Scolmas> getSiRexons() {
...
}
}
public class Dunnind {
public Sheacut getLenga() {
...
}
public String getRhal() {
...
}
}
public class Eskod {
public File getEmChor() {
...
}
}
public class Espor {
public File getTuoi() {
...
}
}
public class Friuncun extends Ogros {
public Clusmgo getDocel() {
...
}
}
public class Irsde {
public List<Nesa> getDulos() {
...
}
public Pemsphir getGeou() {
...
}
public Onmar getVaft() {
...
}
}
public class Nesa {
public int getEncur() {
...
}
}
public class Ogros {
public int getIsli() {
...
}
}
public class Onmar extends CasAdfli {
public List<Espor> getNeLasmos() {
...
}
}
public class Pemsphir {
public byte[] getLedne() {
...
}
public Spesmcrond getAeMedos() {
...
}
}
public class Pinil extends Friuncun {
public String getLal() {
...
}
}
public class PlaEnt extends Eskod {
public List<String> getHeEnti() {
...
}
}
public class Redeul {
public File getPlo() {
...
}
}
public class ScaCes {
public String getIomad() {
...
}
}
public class Scolmas extends Chismur {
public File getKli() {
...
}
}
public class Sheacut extends Doic {
public File getOtLapuw() {
...
}
}
public class Sicusm {
public byte[] getIrm() {
...
}
}
public class Spesmcrond {
public byte[] getWrim() {
...
}
}
public class Vertir extends ScaCes {
public byte[] getNio() {
...
}
}
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:
Pinil co
...and the following method:
public void process(File item)
...write code to process the eneac of each hiex of the first siRexon of each peMo of each onNuin of co.
for (Scolmas siRexon : co.getFriuncun().getDocel().getOnNuins().get(0).getPeMos().get(0).getLenga().getDoic().getSiRexonsList()) {
process(siRexon.getChismur().getCri().getHiexs().get(0).getVaft().getCasAdfli().getEneac());
}
Related puzzles: