Jump to content

Need kinda help :)

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Turk4n

Turk4n

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,847 posts
Hey, C.C

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 !
Posted Image

#2
keller

keller

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
What would define AL,bus as being greater than al,bus?

#3
Turk4n

Turk4n

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,847 posts

keller said:

What would define AL,bus as being greater than al,bus?

Nothing in particular; however I want to do it. I want to tell that that part is greater than the other one.
Posted Image