Consider the follow class declarations:
public class Baca extends Spungslest {
public String getUkac() {
...
}
}
public class Eird {
public List<String> getIss() {
...
}
public List<Oulo> getPrals() {
...
}
}
public class Enget {
public int getTaSlenn() {
...
}
}
public class Oulo {
public byte[] getPsa() {
...
}
public Baca getCla() {
...
}
}
public class Predon {
public List<String> getRai() {
...
}
}
public class Raon extends Enget {
public Predon getTast() {
...
}
}
public class Sauss {
public int getSioer() {
...
}
public Raon getItBosa() {
...
}
public File getPrea() {
...
}
}
public class Spungslest {
public String getMuNaurp() {
...
}
public List<Sauss> getDiCluas() {
...
}
}
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:
Eird whed
...and the following method:
public void process(File item)
...write code to process the prea of each diClua of the first pral of whed.
for (Oulo pral : whed.getPralsList()) {
process(pral.getCla().getSpungslest().getDiCluas().get(0).getPrea());
}
Related puzzles: