Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What does a Guava two-Integer-element array literal look like?


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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: