I am writing a program in java and needed to use Buffers. I used a function which returned a list of arrays i.e. nested arrays and I would like to place these arrays into my buffers. I am presented with the following error:
java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.nio.DoubleBuffer
Would anyone have any ideas or solutions on how to cast an array list to a buffer?