convert multi array into single array(java) -


Is it possible to copy data from multiple [] [] to single []?!?

  Dual multi [] [] = {{1.0, 2.0}, {2.11, 204.00, 11.00, 34.00}, {66.5,43.3,18 9.6}};  
 

to

  double single [] = {1.0, 2.0, 2.11, 204.00, 11.0, 66.5,43.3189.6}   
  double [] single = array 
  

< P>. Stream (multi) // creates a stream & lt; Double [] & gt; .flatMapToDouble (Arrays :: stream) // merges the array into a double stream .toArray (); // collects everything in a double [] array

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -