simulation_Lab06Version
Class UtilityClass

java.lang.Object
  extended by simulation_Lab06Version.UtilityClass

public class UtilityClass
extends Object


Constructor Summary
UtilityClass()
           
 
Method Summary
static int[] getRandomlyGeneratedArray()
          This method generates an array.
static int getRandomValue(int min, int max)
          This method generates a random integer value from the interval [min, max].
static String getTimestamp()
          This method returns a string that captures the timestamp at the moment of invocation, representing in the format as follows (example given): Wed-Feb-11 15:31:01:225
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtilityClass

public UtilityClass()
Method Detail

getRandomlyGeneratedArray

public static int[] getRandomlyGeneratedArray()
This method generates an array. The size of the array is chosen randomly, but the size will always be between 10 and 20 elements. The elements are chosen randomly, and will always be single-digit positive integers.

Returns:
an array, as specified above

getRandomValue

public static int getRandomValue(int min,
                                 int max)
This method generates a random integer value from the interval [min, max].

Returns:
the value, as specified above

getTimestamp

public static String getTimestamp()
This method returns a string that captures the timestamp at the moment of invocation, representing in the format as follows (example given): Wed-Feb-11 15:31:01:225

Returns:
the value, as specified above