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

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -