Your preferences have been saved!
» Returns a new array containing all of a, with additional - //package cc.mallet.util; import java.lang.reflect.Array; /**  *  Static utility methods for arrays   *   (like java.util.Arrays, but more useful).  *  * @author <a href="mailto:casutton@cs.umass.edu">Charles Sutton</a>  * @version $Id: ArrayUtils.java,v 1.1 2007/10/22 21:37:40 mccallum Exp $  */ public class Util{... 17 Feb 12 » Reverse an Array - import java.util.Arrays; import java.util.Collections; import java.util.List; public class Util{   public static <T> List<T> reverse(T[] array)   {     List<T> list = Arrays.asList(array);     Collections.reverse(list);     return list;   }... 17 Feb 12 » Sub Array - //package org.eoti.util; import java.util.Iterator; public class SubArray<T> implements Iterable<T>, Iterator<T> {   protected T[] arr;   protected int startInclusive;   protected int endInclusive;   protected int currentPos;   public SubArray(int startInclusive, int endInclusive, SubArray<T> arr) {     this(startInclusive, endInclusive, arr.arr);   }... 17 Feb 12 » This program shows how to store tabular data in a - /**  * This program shows how to store tabular data in a 2D array.  *   * @version 1.40 2004-02-10  * @author Cay Horstmann  */ public class CompoundInterest {   public static void main(String[] args) {     final double STARTRATE = 10;     final int NRATES = 6;... 17 Feb 12 » This program demonstrates a triangular array. - /**  * This program demonstrates a triangular array.  *   * @version 1.20 2004-02-10  * @author Cay Horstmann  */ public class LotteryArray {   public static void main(String[] args) {     final int NMAX = 10;     // allocate triangular array... 17 Feb 12 » Exclude 2 arrays of ints - /**  * Collection of useful utilities to work with arrays.   *   * @version $Id: ArrayUtils.java,v 1.9 2007/01/23 06:00:30 bastafidli Exp $  * @author Peter Satury  * @code.reviewer Miro Halas  * @code.reviewed 1.5 2005/07/29 07:36:24 bastafidli  */ public final class ArrayUtils {... 17 Feb 12 » Copies bytes from the source byte array to the destination - /**  * Byte utilities  */ public class ByteUtils {   /**    * Copies bytes from the source byte array to the destination array    *     * @param source    *          The source array    * @param srcBegin... 17 Feb 12 » Puts the entire source array in the target array at - public class Utils {   /**    * Puts the entire <tt>source</tt> array in the <tt>target</tt>    * array at offset <tt>offset</tt>.    */   public static void put(byte[] source, byte[] target, int offset) {     System.arraycopy(source, 0, target, offset, source.length);   } }... 17 Feb 12 » Gets the subarray of length length from array that starts - public class Utils {   /**    * Gets the subarray of length <tt>length</tt> from <tt>array</tt>    * that starts at <tt>offset</tt>.    */   public static byte[] get(byte[] array, int offset, int length) {     byte[] result = new byte[length];     System.arraycopy(array, offset, result, 0, length);     return result;   }... 17 Feb 12 » Gets the subarray from array that starts at offset. - public class Utils {   /**    * Gets the subarray from <tt>array</tt> that starts at <tt>offset</tt>.    */   public static byte[] get(byte[] array, int offset) {     return get(array, offset, array.length - offset);   }   /**    * Gets the subarray of length <tt>length</tt> from <tt>array</tt>    * that starts at <tt>offset</tt>.... 17 Feb 12