Hacker News new | ask | show | jobs
by derefr 3312 days ago
What does a Guava two-Integer-element array literal look like?
1 comments

Sorry, I didn't explain myself well.

Range.closed(1,5) is the syntax used to refer to what a mathematician would call [1,5].

Guava is just a Java library. In Java 9, a two-Integer-element list literal will be List.of(9000, 9001).