pop
index
 
Name pop ()
Description Must be used after a push () statement. Returns turtle to the last pushed state. Removes last pushed state from the stack. No line is drawn in the jump.
Syntax pop();
Parameters
None  
Returns None
Related push()
Example

    Turtle t = new Turtle(this);

    t.push();       //save the current state
    t.right(45);
    t.forward(50);
    t.left(30);
    t.forward(50);
    t.pop();        //return to the previously saved state
    t.forward(100);
    t.drawPath(g);