Subash Chandran posted: "//Assuming that your object is a valid List object, you can use: Collections.singletonList(object) -- Returns an immutable list containing only the specified object. List<Object> list = Collections.singletonList(object); //If you want it in a speci" |

No comments:
Post a Comment
Note: Only a member of this blog may post a comment.