Hello, I have code:
And I try to rewrite this loop:
to lambda expression:
listOfTLDDomainNames = Stream.of(csvReader.readNext())
.collect(Collectors.toList());
I have get error message:
incompatible types: inference variable T has incompatible bounds
equality constraints: TLDDomain
lower bounds:
String
where T is a type-variable:
T extends Object declared in method <T>toList()
----
(Alt-Enter shows hints)