to use ArrayList in the place of Vector

Ads
 

to use ArrayList in the place of Vector

public Enumeration getInterfaces() { ISCMetaType currentType = this; ArrayList allInterfaces = new ArrayList(); while( currentType != null ) { for( Enumeration e = currentType.getLocalInterfaces(); e.hasMoreElements(); ) //allInterfaces.addElement( e.nextElement() ); allInterfaces.add(index, e.nextElement() ); currentType = currentType.getParent(); } return allInterfaces.elements(); }

How can i come back from this error? return allInterfaces.elements(); is a return type of Enumeration, while using ArrayList what should i do?

View Answers

Ads









Related Tutorials/Questions & Answers:
to use ArrayList in the place of Vector
to use ArrayList in the place of Vector  public Enumeration getInterfaces() { ISCMetaType currentType = this; ArrayList allInterfaces = new ArrayList(); while( currentType != null
to use ArrayList in the place of Vector
to use ArrayList in the place of Vector  public Enumeration getInterfaces() { ISCMetaType currentType = this; ArrayList allInterfaces = new ArrayList(); while( currentType != null
Advertisements
vector and arraylist
vector and arraylist    suppose i have class A { public static arrylist a1(){} class B{ public static vector b1() {} } my question is how to class B method in Class A and how to get vector object values in class A without
Diff between ArrayList and Vector?
Diff between ArrayList and Vector?  What's The Difference between ArrayList and Vector Classes and Can you give me a simple Program for set and List Interface
How to use place hoder in IE(version : 8)
How to use place hoder in IE(version : 8)  how to use placeholder for input field(type=text) and password field (type= password) in IE
Java : Vector Example
Java : Vector Example This segment of tutorial illustrates about the Vector class and its use with the Iterator interface. Java Vector : Vector class... by using its index. It is similar to ArrayList but some properties make
arraylist of an arraylist
arraylist of an arraylist  Can anyone suggest me how to use arraylist of an arraylist?? how to put data into it and get data from it???? becoz i want to make rows and column dynamic which can grow as per requirement?????/ plz
arraylist
arraylist   Using arraylist class , what type of exception are throws, how can write a java programe   An ArrayList can throw... ArraylistException { void buildAlphabet() { ArrayList list = new ArrayList
Java collection Vector
Java collection Vector  How can we use the vector class in java program?   The vector class is similar to the ArrayList class except that the vector class is synchronized. import java.util.Iterator; import
ArrayList
ArrayList  import java.util.*; class ArrayListDemo2 { public static void main(String args[]) { ArrayList al=new ArrayList(); al.add("one"); al.add("two"); al.add("three"); al.add("four"); for(int i=0;i Expected
arraylist
arraylist  Hi How can we eliminet duplicate element from arraylist? How can we find highest salary from arraylist ? How can we highest key value pair from map? Thanks Kalins Naik   Remove duplicates from Arraylist
arraylist
arraylist  Hi how can we eliminet duplicate element from arraylist in java? how can we achieve data abstrcation and encapulation in java? how many type of modifier are there in java? Thanks kalins anik   Remove
arraylist
arraylist  Hi i have class A , i have added employee name and id in arraylist, then how can i find out all infomation of class A using emplyee... data into an arraylist and display the data of the particular employee according
arraylist
% *(noOfYearService/2). Store each employee information in different arrayList depending on his
J2ME Vector Example
J2ME Vector Example       This application illustrates how we can use Vector class...) toString() trimToSize() You can use the above method by accessing vector
Java Vector
and removing items to that vector.    Vectors are extremely easy to use... Java Vector       Vector represents a collection of similar items. In Java, the Vector class is defined
vector question
vector question  how does vector works?   Please visit the following link: Java Vector Demo
Java Vector
Java Vector In this tutorial, you will learn about vector and its' implementation with example. Vector is alike to ArrayList , it is also dynamic.... But it also have some dissimilarities with ArrayList , which are given below
Vector in java
. Example : The following program to illustrate the use of vector: import...Vector in java Vector in java implements dynamic array. It is similar to array and the component of vector is accessed by using integer index. Size
accessor arrayList
accessor arrayList  how to use an acccessor to return an arraylist?   public List getProductList(String itemName) { List list=new ArrayList(); //Add your item in the list return list; } You may wish to browse
How To Create Vector of Vector In R
How To Create Vector of Vector In R  Hi, I want to create two vectors inside a vector. How To Create Vector of Vector In R? Thanks   Hi... initialize list and then add vector to it. Here is the sample code: > x <
ArrayList as an argument to another class
ArrayList as an argument to another class  how do you pass arraylists as arguments to another class, and how does the method/class accept this arraylist for use
Java ArrayList Example
Java ArrayList Example  How can we use array list in java program... demonstrates you the use of ArrayList. An ArrayList is a data structure. It can..."); array.add("Arun"); System.out.println("ArrayList Size
arraylist in java
arraylist in java  arraylist in java   Array List Example in java
Can ArrayList accept an ImageIcon >>????
Can ArrayList accept an ImageIcon >>????  haw can create ArrayList witch can accept Image ..mean when i use add() method, instead item let me add image to the ArrayList in run time .{should be the program using GUI
ArrayList object
ArrayList object  i have am ArrayList object it containg data base records in it, now i want to display this ArrayList object data in my jsp programe, plz help me
How to sort ArrayList in java
How to sort ArrayList in java In this section you will learn how to sort ArrayList in java. ArrayList support dynamic array that can grow as needed. Array.... In this tutorial  we will sort the ArrayList using sort method of collection
ArrayList elements
ArrayList elements  how to print ArrayList elements in reverse order... ArrayListReverse { public static void main(String[] args) { ArrayList list=new ArrayList(); list.add("Innova"); list.add("Alto
comparing arraylist of an multi dimensional arraylist
comparing arraylist of an multi dimensional arraylist  can anyone help me in solving the following issue: actually i have an arraylist called dany... have to compare each arraylist with each other. like i have to take 1st arraylist
ModuleNotFoundError: No module named 'vector'
ModuleNotFoundError: No module named 'vector'  Hi, My Python... 'vector' How to remove the ModuleNotFoundError: No module named 'vector'... to install padas library. You can install vector python with following command
Vector in Java
Vector in Java are array lists that are used instead of arrays, as they have... data even after the Vector has been created. Capacity of vector is always to the lowest degree. Size of the Vector is however larger because components

Ads