forked from JavaTX/JavaCompilerCore
40 lines
471 B
Java
Executable File
40 lines
471 B
Java
Executable File
public class TestOperatorArithmetic {
|
|
|
|
public m1(i,j) {
|
|
return i+j;
|
|
}
|
|
|
|
public m2(i,java.lang.Double j) {
|
|
return i-j;
|
|
}
|
|
|
|
public m3(java.lang.Integer i,j) {
|
|
return i*j;
|
|
}
|
|
|
|
public java.lang.Double m4(i,j) {
|
|
return i/j;
|
|
}
|
|
|
|
public m5(i,j) {
|
|
return i%j;
|
|
}
|
|
|
|
public m6(i) {
|
|
return -i;
|
|
}
|
|
|
|
public m7 (i,j) {
|
|
i+=j;
|
|
return i;
|
|
}
|
|
|
|
public m8(i, java.lang.Float j) {
|
|
return i/j;
|
|
}
|
|
|
|
/*public java.lang.Long m9(i, j) {
|
|
return i+j;
|
|
}*/
|
|
|
|
} |