News

The above code will work great. But list object is immutable.Thus you will not be able to add new values to it. In case you try to add new value to list, it will throw UnsupportedOperationException..