diff options
-rw-r--r-- | docs/dist/doc/examples/telecom/Call.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/dist/doc/examples/telecom/Call.java b/docs/dist/doc/examples/telecom/Call.java index 738d2d348..3d3489e86 100644 --- a/docs/dist/doc/examples/telecom/Call.java +++ b/docs/dist/doc/examples/telecom/Call.java @@ -42,7 +42,7 @@ public class Call { } else { c = new LongDistance(caller, receiver); } - connections.add(c); + connections.addElement(c); } /** @@ -90,7 +90,7 @@ public class Call { public void merge(Call other){ for(Enumeration e = other.connections.elements(); e.hasMoreElements();){ Connection conn = (Connection)e.nextElement(); - other.connections.remove(conn); + other.connections.removeElement(conn); connections.addElement(conn); } } |