com.bristle.javalib.util
Class ArrUtil
java.lang.Object
com.bristle.javalib.util.ArrUtil
public class ArrUtil
- extends Object
This class contains utility routines for manipulating Java arrays.
Usage:
- The typical scenario for using this class is:
String str1 = ArrUtil.arrayToString(arr1);
- See the source code of the inner Tester class for more examples.
Assumptions:
Effects:
- None.
Anticipated Changes:
Notes:
Implementation Notes:
Portability Issues:
Revision History:
$Log$
Nested Class Summary |
static class |
ArrUtil.Tester
Each class contains a Tester inner class with a main() for easier
unit testing. |
ArrUtil
public ArrUtil()
arrayToString
public static String arrayToString(Object[] arr)
- Return a string version of the array.
- Parameters:
arr
- Array to convert to a String.
- Returns:
- String version of the array, or null if array was null.