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
- Posts: 11
- Joined: Wed Dec 07, 2016 3:21 pm
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 (<>):
- Site Admin
- Posts: 8543
- Joined: Fri Sep 10, 2010 9:26 pm
You are right. Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here
Users browsing this forum: No registered users and 0 guests