Posted By

hatefulcrawdad on 04/29/11


Tagged

ehcache


Versions (?)

ehcache


 / Published in: Java
 

URL: ehcache

blah

  1. import org.apache.commons.lang.ArrayUtils;
  2.  
  3. public class ArrayUtilsExampleV1 {
  4.  
  5. public static void main(String args[]) {
  6.  
  7. long[] longArray = new long[] {10000, 30, 99};
  8. String[] stringArray = new String[] {"abc", "def", "fgh"};
  9.  
  10. long[] clonedArray = ArrayUtils.clone(longArray);
  11. System.err.println(
  12. ArrayUtils.toString((ArrayUtils.toObject(clonedArray))));
  13.  
  14. System.err.println(ArrayUtils.indexOf(stringArray, "def"));
  15.  
  16. ArrayUtils.reverse(stringArray);
  17. System.err.println(ArrayUtils.toString(stringArray));
  18. }
  19. }

Report this snippet  

You need to login to post a comment.