Here is my code:
public class Project1mrybak3
{
public static void main (String[] args)
{
System.out.println("Begin Java Exection");
System.out.println("");
// put your Java Program here
//choose picture
String picfile = FileChooser.pickAFile();
Picture pic = new Picture(picfile);
//Create turtle 1
Turtle t1 = new Turtle (pic);
t1.setPenWidth(10);
//Create turtle 2
Turtle t2 = new Turtle (pic);
flower(t1,200);
//show picture
pic.show();
System.out.println("");
System.out.println("End Java Exection");
}//end of main class
public static void flower (Turtle tparam, int x )
{
tparam.forward(x);
}
public static void flowers ()
{
flower(t1,15);
}
} // end of Template class
So as you can tell, it doesn't make much sense but I have just started writing it. My question is, for the last method "flowers", when i try to run it, it says that it cannot find the symbol variable t1.
Can I not put methods inside of methods?
Ultimately my goal is to create about 4 methods to draw parts of the flower, then put them all inside of one method, then inside my main code, I can call that method with turtle t1 and some x variable.
Thank you for any help and your time! Long live the Tek!