Package javiergs

Interface Paper


public interface Paper
Represents a paper sheet.
  • Method Summary

    Modifier and Type
    Method
    Description
    Reads the text written on the paper.
    void
    write(String text)
    Writes text on the paper.
  • Method Details

    • write

      void write(String text)
      Writes text on the paper.
      Parameters:
      text - the text to write.
    • read

      String read()
      Reads the text written on the paper.
      Returns:
      the text written on the paper.