For instance why can I write the line
Character[] c = Arrays.sort(list.toArray(new Character[list.size()]))
But in documentation when I read about method referencing, they tell me to use ::
instead? Doesn't it do the same as the .
operator?
I dont know if the above code compiles, as I'm typing this on my mobile. Consider it a loose example.