The method addElement() is not a valid method of the List interface (it is a method used with the Interface Vector).
public void assertTest(List v)
{
assert v.size() == 10 : v.addElement("hello");
}
The method void add(int index, E element) can be used to recreate the problem.
public void assertTest(List v)
{
assert v.size() == 10 : v.add(0, "hello");
}
About Question enthuware.ocpjp.v7.2.1406 :
Moderators: Site Manager, fjwalraven
-
- Posts: 1
- Joined: Tue Jun 11, 2013 4:59 am
- Contact:
-
- Site Admin
- Posts: 10386
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1406 :
You are right. This has now been fixed.
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 11 guests