
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?
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.