I am trying to preform the following:
But the following exception is thrown when I try to run it:
Exception in thread "main" java.lang.UnsupportedOperationException
at java.util.AbstractList.add(Unknown Source)
at java.util.AbstractList.add(Unknown Source)
at learning.about.collection.Fubar.main(Fubar.java:15)
I only have Java 1.5 on my machine, so what is going wrong here?
Thanks in advance :-)