About Question enthuware.ocpjp.v8.2.1270: probably a typo

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
jankur
Posts: 11
Joined: Wed Dec 07, 2016 3:21 pm
Contact:

About Question enthuware.ocpjp.v8.2.1270: probably a typo

Post by jankur »

Hi, probably there is a typo in the explanation related to the last checkbox option:

Code: Select all

List<String> list = new ArrayList<>(10);
because there is size() method in List, not getSize():
[...] So list.getSize() would still return 0.
Additionally: there are some new line chars missing in the main explanation, so sample code lines look like they have invalid comments, for example:
Map<String, List<String>> myMap = new HashMap<String, List<String>>();In Java SE 7, you can substitute the parameterized type of the constructor with an empty set of type parameters (<>):

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

Re: About Question enthuware.ocpjp.v8.2.1270: probably a typ

Post by admin »

You are right. 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 30 guests