In this section, you will learn to convert an Array to Vector.
Code Description:
This program helps you in converting an Array into a Vector. Here we have taken an array of data which gets converted to data of Vector using Array.asList method. We have also used Enumeration to get the next element of the data.
import java.util.Arrays;
|
Output of the program:
| C:\unique>javac ArrToVector.java C:\unique>java ArrToVector Tamana Aggrawal Mon Jul 30 17:32:03 GMT+05:30 2007 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 Array to Vector
Post your Comment