Page 1 of 1

About Question enthuware.ocpjp.v7.2.1309 :

Posted: Fri Feb 21, 2014 9:50 am
by vddoan
Hi,

In this question, when I used the diamond syntax in the initilisation of the variable returnValue within the getWordsStartingWith method, the software said it is incorrect. However, this declaration is ok for compilation

Collection<  E  > returnValue = new ArrayList< >();

Regards

Viet

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

Posted: Fri Feb 21, 2014 12:22 pm
by admin
You are right. That is also valid but is not set as a correct answer. It has now been fixed.

thank you for your feedback!