public class Order {
private String name;
private String type;
private String order;
public Order(String name,String type, String order){
this.fileName = fileName;
this.type = type;
this.order = order;
}
//All getter and setter methods.
}
public class test{
List<Order> order = new ArrayList<Order>();
// I am adding all the values to order list
for(i = 0; i<length;i++){
order.add(new Order(details[i][0],details[i][1],details[i][2]));
}
}
|