About Question enthuware.ocpjp.v7.2.1406 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
elnmgoo
Posts: 1
Joined: Tue Jun 11, 2013 4:59 am
Contact:

About Question enthuware.ocpjp.v7.2.1406 :

Post by elnmgoo »

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");
}

Online
admin
Site Admin
Posts: 10094
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1406 :

Post by admin »

You are right. This has now been fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests