Search:

Type: Posts; User: copeg

Search: Search took 0.16 seconds.

  1. Replies
    4
    Views
    3,614

    Re: Nested Looping to find if Strings equal

    Its up to you, but once again I encourage you to use a Set or Map. This is their purpose. A short demo:


    public class Test{
    /**
    *Analyzes the speed of list versus set searches
    */...
  2. Replies
    4
    Views
    3,614

    Re: Nested Looping to find if Strings equal

    If all you need is to look for the presence of a String in an array, I'd highly recommend using a Set or Map instead of a List. The lookup is MUCH faster than iterating over an array in a nested...
Results 1 to 2 of 2