Class Jasic.InputStatement

  • All Implemented Interfaces:
    Jasic.Statement
    Enclosing class:
    Jasic

    public class Jasic.InputStatement
    extends Object
    implements Jasic.Statement
    An "input" statement reads input from the user and stores it in a variable.
    • Constructor Detail

      • InputStatement

        public InputStatement​(String name)
    • Method Detail

      • execute

        public void execute()
        Description copied from interface: Jasic.Statement
        Statements implement this to actually perform whatever behavior the statement causes. "print" statements will display text here, "goto" statements will change the current statement, etc.
        Specified by:
        execute in interface Jasic.Statement