Consider the follow class declarations:
public class Bantoss {
public List<Galxoor> getErRas() {
...
}
public Qisthe getPren() {
...
}
}
public class Caha extends MakOstun {
public List<Cico> getJois() {
...
}
}
public class ChuCex {
public List<String> getLista() {
...
}
}
public class Cico {
public byte[] getPhir() {
...
}
}
public class Galxoor {
public Risbid getCide() {
...
}
public byte[] getPlo() {
...
}
}
public class Gexmi {
public List<String> getMic() {
...
}
}
public class Gisi {
public byte[] getLoh() {
...
}
}
public class Icli extends Gisi {
public Porlil getTrond() {
...
}
public File getDieou() {
...
}
}
public class Keadcoc {
public byte[] getIoNang() {
...
}
public List<Icli> getIsdacs() {
...
}
}
public class LelSipa {
public Recos getPlin() {
...
}
public List<String> getArHos() {
...
}
}
public class Lesta extends Keadcoc {
public List<ChuCex> getRiPofses() {
...
}
public List<Tuwat> getLocols() {
...
}
}
public class Macec {
public byte[] getNanin() {
...
}
}
public class MakOstun {
public byte[] getDok() {
...
}
public Bantoss getAgme() {
...
}
}
public class Niedi {
public File getOdka() {
...
}
}
public class Nishu extends Lesta {
public List<Retnum> getUchs() {
...
}
}
public class Porlil {
public byte[] getSiche() {
...
}
}
public class Qisthe {
public int getScac() {
...
}
}
public class Recos extends Tadflian {
public Macec getCeOsm() {
...
}
}
public class Retnum {
public int getMauce() {
...
}
}
public class Risbid extends Niedi {
public Gexmi getTrar() {
...
}
public List<Nishu> getRureds() {
...
}
}
public class Tadflian {
public int getFoc() {
...
}
public List<Caha> getBils() {
...
}
}
public class Tuwat {
public String getFrawk() {
...
}
}
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:
LelSipa bre
...and the following method:
public void process(File item)
...write code to process the dieou of the first isdac of the first rured of each erRa of the first bil of bre.
for (Caha bil : bre.getPlin().getTadflian().getBilsList()) {
for (Nishu rured : bil.getMakOstun().getAgme().getErRas().get(0).getCide().getRuredsList()) {
for (Icli isdac : rured.getLesta().getKeadcoc().getIsdacsList()) {
process(isdac.getDieou());
}
}
}
Related puzzles: