These three lines:
g.drawString(
String s = "The Gators Rule";
String s2 = s.toUpperCase();
System.out.println(s2); 20, 30 );
Look like the victim of a bad cut and paste. The first line is only part of a valid statement; the middle line is a complete valid statement, while the last line is a valid statement follows by what looks like the missing part of the first line.
Now, if this much isn't obvious to you, then it sounds like you have some pretty basic larnin' to do. Do you understand methods, method calls, arguments, stuff like that? If not, then that's where we've got to start.