String[] IndexOf ?

  • Thread starter Thread starter John Bailo
  • Start date Start date
...
How come String[] does not have an indexOf method ?

In short, if *all* useful methods for any type of array would be in *all*
types of arrays' protocols, there would be very many methods around...

Instead there's a useful class "Array", with many such methods applicable to
all types of arrays, e.g:

int index = Array.IndexOf(array, value};


// Bjorn A
 
Back
Top