Class 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 usage
      static void main1()
      Make random strings
      static 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utils

        public Utils()
    • 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