Array[] and ArrayList are two different things
Type: Posts; User: newbie
Array[] and ArrayList are two different things
you havent got a getSampleValue() method anywhere in your classes.
Either create one or seek an alternative way of doing what you need.
Post your exception error message
I Think its this:
samples.add(new Sample("Kings College" + " " + 265));
You're treating the input as one String.
try
samples.add(new Sample("Kings College",265));