return String.valueOf(value);
}
+ public static String toString( int i ) {
+ Integer I = new Integer( i );
+ return I.toString();
+ }
+
public int hashCode() {
return value;
}
return PI;
}
+ // an alias for setPI()
+ public static double PI() {
+ double PI = 3.14159265358979323846;
+ return PI;
+ }
+
public static double fabs(double x) {
if (x < 0) {
return -x;
public static native double acos(double a);
public static native double tan(double a);
public static native double atan(double a);
+ public static native double atan2(double a, double b);
public static native double exp(double a);
public static native double sqrt(double a);
public static native double log(double a);
System.printString("\n");
}
+ public static void print(String s) {
+ System.printString(s);
+ }
+
public static void error() {
System.printString("Error (Use Breakpoint on ___System______error method for more information!)\n");
}
return atan(___a___);
}
+double CALL22(___Math______atan2____D_D, double ___a___, double ___b___, double ___a___, double ___b___) {
+ return atan2(___a___,___b___);
+}
+
double CALL11(___Math______log____D, double ___a___, double ___a___) {
return log(___a___);
}
int x = 3;
int y = x<5 ? 6 : 1000;
int z = x>1 ? y>7 ? 2000 : 8 : 3000;
- System.printString( "x should be 3: "+x+"\n" );
- System.printString( "y should be 6: "+y+"\n" );
- System.printString( "z should be 8: "+z+"\n" );
+ System.out.println( "x should be 3: "+x );
+ System.out.print ( "y should be 6: "+y+"\n" );
+ System.out.println( "z should be 8: "+z );
}
}
\ No newline at end of file