In this section, you will learn to convert Vector to an Array.
Code Description:
This program helps you in converting Vector to an Array.
Here we have taken a Vector
v.add("Java, is, a, wonderful, language");
which gets converted to an Array.
import java.util.Arrays;
|
Output of the program:
| C:\unique>javac VectorToArr.java C:\unique>java VectorToArr [Java, is, a, wonderful, language] C:\unique> |
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Convert Vector to Array
Post your Comment