I was wondering, I have two different ArrayList<String> and have declared.
First to be called AL, and the other one al, however my main question is. I want to compare and tell that.
AL.add(0,"Car"); AL.add(1,"Bus"); AL.add(2,"Plane"); al.add(0,"Plane"); al.add(1,"Bus"); al.add(2,"Car");
Now I want to compare them and tell that AL,bus is greater than al,bus, vice versa.
Any idea how I could build up a method or object checking it for me or so?
Code strips or tips of constructing one would really help me a lot !!
Thanks in advance !


Sign In
Create Account



Back to top









