Class Utils
- java.lang.Object
-
- Utils
-
public class Utils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Example usagestatic void
main1()
Make random stringsstatic void
main2()
static int
makeRandom(int max)
Make a random integer in the range 0 ..static java.lang.String
makeString(int length)
Make a random string of the given length.
-
-
-
Method Detail
-
makeRandom
public static int makeRandom(int max)
Make a random integer in the range 0 .. (max-1) inclusive- Parameters:
max
- one larger than that largest number returned- Returns:
- a value in the range 0..(max-1)
-
makeString
public static java.lang.String makeString(int length)
Make a random string of the given length. this PUBLIC method will use one of the private methods- Parameters:
length
- the length of the string to make- Returns:
- a random string of the given length
-
main
public static void main(java.lang.String[] args)
Example usage- Parameters:
args
- (unused but required by main)
-
main2
public static void main2()
-
main1
public static void main1()
Make random strings
-
-