运算符与运算

package Base;

public class Demo01 {

public static void main(String[] args) {
	// TODO Auto-generated method stub
	long a=12345678;
	int b=19;
	int a1=10;
	int a2=20;
	System.out.println(a1/(float)a2);//得出的int类型得进行强制转换
	
}

}

posted @ 2025-03-17 17:18  骆驼刺破仙人掌007  阅读(9)  评论(0)    收藏  举报