Class PE0054

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String[] lines  
    • Constructor Summary

      Constructors 
      Constructor Description
      PE0054()
      A simple constructor to set number and title.
    • Method Summary

      Modifier and Type Method Description
      void prepare()
      Here this problem is prepared by reading all lines of text from given file.
      java.lang.String solve()
      Since all needed logic for comparing two Poker hands is implemented in the class of poker-package, here just the two hands per line have to created and compared.
      • Methods inherited from class java.lang.Object

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

      • lines

        private java.lang.String[] lines
    • Constructor Detail

      • PE0054

        public PE0054()
        A simple constructor to set number and title.
    • Method Detail

      • solve

        public java.lang.String solve()
        Since all needed logic for comparing two Poker hands is implemented in the class of poker-package, here just the two hands per line have to created and compared.
        Returns:
        the number of hands player one wins
        See Also:
        Hand.beats(Hand)