0

How transfer the elements of a vector to an array

7th Feb 2023, 4:57 PM
Hanin Hanin
Hanin Hanin - avatar
1 Antwort
+ 4
A) toArray() method https://www.geeksforgeeks.org/how-to-convert-vector-to-array-in-java/ https://www.javatpoint.com/java-vector-toarray-method B) Create array of appropriate size and use a loopto fill it with vector elements
7th Feb 2023, 5:18 PM
Lisa
Lisa - avatar