For some reason the robot code will not use the most updated version of java's Math lib. instead use this import for trig and other stuff : import com.sun.squawk.util.*; and then use the regular java.util.Math for the rest....if you tried to do stuff in Netbeans you should have already ran into this problem. Also, in the code create packages for each class so the compiler knows where to find them. use these for the packages : edu.wpi.first.wpilibj.templates.
and the class name is MathUtils instead of Math (note this is for what's not in the Math class. If the function can be found in the java 1.3 Math class then use it from their, if not use MathUtils.)
For some reason the robot code will not use the most updated version of java's Math lib. instead use this import for trig and other stuff : import com.sun.squawk.util.*; and then use the regular java.util.Math for the rest....if you tried to do stuff in Netbeans you should have already ran into this problem. Also, in the code create packages for each class so the compiler knows where to find them. use these for the packages : edu.wpi.first.wpilibj.templates.
and the class name is MathUtils instead of Math (note this is for what's not in the Math class. If the function can be found in the java 1.3 Math class then use it from their, if not use MathUtils.)