Anil Philip wrote:Sorry, I misspoke - I meant to say list containing integers. Below I add Integer and Float to a List<? super Integer>
I should not be able to do that!
Anil Philip wrote:I have assigned a Float to a List<Integer>.
Anil Philip wrote:
List<? super Number> is a subtype of List<? super Integer>
It seems reversed and counterintuitive since Integer is a subtype of Number
Anil Philip wrote:
Mark Liu wrote:As a result, they can understand human language,
Only humans can understand human language!
Anil Philip wrote:You cannot access class A's m1() from class C for the same object ( i.e. this).
Mike Simmons wrote:Sadly, the world's governments have failed to consult me on this matter, so far. Oh well.
Arianna Franchetto wrote:Thanks!
Nope, I came to the conclusion on my own that one possible way to check that the boxes fit in a container was to put a box in the container and then split the remaining area into two further areas (so that they always remain rectangular in shape). This seemed to work until I realised the problem that arises if a new box intersects both of the two new remaining areas, as you can see in the last part of the figure.
Campbell Ritchie wrote:Can you use flatMap()?
The Docs wrote:If path is the path to a file, then the following produces a stream of the words contained in that file: