Package javiergs

Class Genius

java.lang.Object
javiergs.Genius

public class Genius extends Object
A genius that can think, write and read.
  • Constructor Details

    • Genius

      public Genius()
  • Method Details

    • think

      public String think()
      Thinks.
      Returns:
      a message indicating that the genius is thinking.
    • write

      public void write(Paper paper, String text)
      Writes text on a paper.
      Parameters:
      paper - the paper where the text will be written.
      text - the text to write.
    • read

      public String read(Paper paper)
      Reads text from a paper.
      Parameters:
      paper - the paper to read.
      Returns:
      the text read from the paper.