Consider the follow class declarations:
public class Brapid extends Choncen {
public int getHec() {
...
}
}
public class BreAned {
public int getMiOs() {
...
}
public List<Finos> getNeods() {
...
}
}
public class Chlet {
public Ismni getPasec() {
...
}
public File getGiaid() {
...
}
}
public class Choncen {
public int getIis() {
...
}
public byte[] getPhuen() {
...
}
}
public class Cien {
public List<Cilt> getBeos() {
...
}
public String getHef() {
...
}
}
public class Cilt {
public List<String> getRapra() {
...
}
}
public class Cintho {
public NoeVedhi getAoc() {
...
}
public Dirngaps getRiAn() {
...
}
}
public class Cles {
public List<String> getIckes() {
...
}
}
public class Dilcru {
public byte[] getCla() {
...
}
public List<Haicull> getPoFeos() {
...
}
}
public class Dirngaps {
public File getShric() {
...
}
}
public class Drartmo {
public File getBipt() {
...
}
}
public class Finos {
public File getChoo() {
...
}
}
public class Gesssan {
public File getUmpuc() {
...
}
}
public class Haicull extends Cintho {
public byte[] getSchel() {
...
}
}
public class Hasm {
public Iiss getSuPi() {
...
}
public List<Cien> getUntus() {
...
}
}
public class Iiss extends Nisas {
public List<Mucs> getFurises() {
...
}
}
public class Ismni {
public List<String> getPespe() {
...
}
}
public class KarRemde extends Hasm {
public String getEndqi() {
...
}
}
public class Mucs extends Pric {
public Cles getErMe() {
...
}
}
public class Nisas {
public List<String> getNass() {
...
}
}
public class NoeVedhi {
public List<Woros> getOsrons() {
...
}
public byte[] getOuXiss() {
...
}
}
public class Plof extends Gesssan {
public List<Brapid> getPrises() {
...
}
}
public class Pric {
public List<Chlet> getEoTes() {
...
}
public Drartmo getHac() {
...
}
public Dilcru getClor() {
...
}
}
public class Woros {
public Plof getSoPa() {
...
}
public List<BreAned> getBoiws() {
...
}
}
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:
KarRemde ed
...and the following method:
public void process(byte[] item)
...write code to process the phuen of the first pris of the first osron of the first poFeo of each furis of ed.
for (Haicull poFeo : ed.getHasm().getSuPi().getFurises().get(0).getPric().getClor().getPoFeosList()) {
for (Woros osron : poFeo.getCintho().getAoc().getOsronsList()) {
for (Brapid pris : osron.getSoPa().getPrisesList()) {
process(pris.getChoncen().getPhuen());
}
}
}
Related puzzles: