Class NameGenerator


  • public class NameGenerator
    extends java.lang.Object
    Class for generating names of the people in the house
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.List<java.lang.String> names  
    • Constructor Summary

      Constructors 
      Constructor Description
      NameGenerator()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getRandomName()
      Returns a random name from a string list.
      • Methods inherited from class java.lang.Object

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

      • names

        private static final java.util.List<java.lang.String> names
    • Constructor Detail

      • NameGenerator

        public NameGenerator()
    • Method Detail

      • getRandomName

        public static java.lang.String getRandomName()
        Returns a random name from a string list.
        Returns:
        String name of person