org.moyoman.util.igo
Class Uti

java.lang.Object
  |
  +--org.moyoman.util.igo.Uti

public class Uti
extends Object

a utility class


Constructor Summary
Uti()
           
 
Method Summary
static String dateTime(String type)
          Get date-time.
static int random(int index)
          get random number.
static void sleep(int t)
          time delay.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Uti

public Uti()
Method Detail

random

public static int random(int index)
get random number.

Parameters:
index - Limit of the random number. Return a number from 0 to (index - 1).

sleep

public static void sleep(int t)
time delay.

Parameters:
t - Time to delay.(msec)

dateTime

public static String dateTime(String type)
Get date-time.

Parameters:
type - The type of the format of output.
Returns:
date-time follow the format.