bsharp.arrays
Class Arrays

java.lang.Object
  extended by bsharp.arrays.Arrays

public class Arrays
extends java.lang.Object

A static class with helpful methods to manipulating arrays.

Author:
brandon@sharpideas.ca

Method Summary
static boolean contains(java.lang.Object[] array, java.lang.Object element)
          Return true if the array contains the given object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

contains

public static boolean contains(java.lang.Object[] array,
                               java.lang.Object element)
Return true if the array contains the given object. Useful pre-Java 1.2

Parameters:
array - the array to search
element - the element to search for.
Returns:
true if the array contains the given object.