jkteater
asked on
casting a Arraylist
I am calling a ArrayList from a different class. Once I get the ArrayList in this class, I want to cast it to a TCComponentItemRevision
Here is the constructor
Then I am using the ArrayList in a method
But I need to cast the ArrayList to TCComponentItemRevision
Here is the constructor
public SelectedTModel() {
super();
ArrayList<RevDataset> aList = EdiSelection.rds;
}
Then I am using the ArrayList in a method
public void getListValues(int row, int column, ArrayList <RevDataset> aList) throws TCException {
But I need to cast the ArrayList to TCComponentItemRevision
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Waht type expects your method in that third position ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Theis method probably expects only one elemnt of your ArrayList and even maybe one part of it,
as the elements are the objects whiach are made up of two fileds, if I am not mistaken.
Show what is within that method and we'll try to figure out
as the elements are the objects whiach are made up of two fileds, if I am not mistaken.
Show what is within that method and we'll try to figure out
ASKER
I went back to where I was creating the ArrayList and cast it there - So I am going to split the points - thanks for the quick response