yannis assael | the blog

  • Home
  • About
  • Categories
    • Android
    • Computing
    • iOS
    • Machine Learning
    • MacOSX
  • GitHub
  • Mobile Apps
  • yannisassael.com


Posts Tagged ‘double’

Java convert ArrayList to double[]

Written by iassael on 25/05/2013. Posted in computing

Java can be very efficient sometimes… First, you need to to download the apache commons lang library, from here http://commons.apache.org/proper/commons-lang/. Then, using this function you can convert your List<>
double[] arr = ArrayUtils.toPrimitive(arrlist.toArray(new Double[arrlist.size()]))

  • Continue Reading
  • No Comments