Whether your tail is up or down, you have the ability to leave a dot at your current position. To leave a dot all you have to do is call bob.dot().
Turtle bob = new Turtle();
bob.forward(20);
bob.dot();
bob.forward(40);
bob.dot();
bob.forward(60);
bob.dot();
bob.forward(80);
bob.dot();