package operator; public class Demo01 { public static void main(String[] args) { //二元运算符 int a =10; int b =20; int c =25; int d =25; System.out.println(a + b); System.out.println(a - b); System.out.println(a * b); System.out.println(a / (double)b);//加一个double强行转换 } }