posted 17 years ago
I'm practicing methods by re-writing programs from class, but putting every little step into a method. (Clearly not practical, just for the practice of using methods)
But when I try and invoke the Math.random() method while already inside a method, I get the error ".class expected," and I'm not sure why, because I'm still in the same Main class where the Main method is, so...
[ August 02, 2006: Message edited by: Mike Smith ]
[ August 02, 2006: Message edited by: Mike Smith ]