singletonList() returns the object as an immutable List. This is an easy way to convert a single object into a list. This was added by Java 2.0.
Previous Question Next Question
Your comments will be displayed only after manual approval.