List of objects
List routeObjList =new ArrayList();
this list should be a list of objects of class Route.How should I cast this list to the object of class route.Plz any one help.and I should not cast like this
List<Route> routeObjList =new ArrayList<Route>();
Tell mw any other way.please
Did You use List in your application?
Using List we can store Object ,Then why do you need casting?
if I use statements like this it is not accepting where locatioIid is attribute of class route.
by add() function you can add it...
Did You try it ReKha.
ArrayList<emp> Obj=new ArrayList<emp>;
Simple syntax for store object in arraylist,It works quite well.
this casting is working properly.Thank you for your reply.
As for me,casting is not a good practice for good programmers.Casting is a shortest way to solve big problem.So,Don't use casting in Application.