If you want an empty list, you can use Collections.EMPTY_LIST or emptyList(). If you want an unmodifiable List containing a single item, compare Collections.singletonlist("My Object") to the code doing the same.
Joined: Jul 17, 2007
thanks for your answer david
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com