So I'm trying to write a program that will eventually become more than this small test of stddraw but I wanted to change the window's name to the woah variable. Currently My code looks like this:
public class Circles {
public static void main (final String[] args) {
String woah = "woah";
// StdDraw.setTitle(woah);
StdDraw.setScale(-2, +2);
StdDraw.enableDoubleBuffering();
for (double t = 0.0; true; t += 0.02) {
double x = Math.sin(t);
double y = Math.cos(t);
StdDraw.clear();
StdDraw.filledCircle(x, y, 0.05);
StdDraw.filledCircle(-x, -y, 0.05);
StdDraw.show();
StdDraw.pause(20);
}
}
}
It runs fine without the commented line out but when its added back in the compiler gives:
Circles.java:9: error: cannot find symbol
StdDraw.setTitle(woah);
^
symbol: method setTitle(String)
location: class StdDraw
1 error
I've also tried to mess up the format a bit but to no avail, can someone find why this specifically is not working? Thanks