1000==1000? 无花括号的for循环,*.05x3=?
2016-03-07 17:18
302 查看
double num = 1.05;
System.out.println(num * 3);//7.3500000000000005
Integer a = 1000, b = 1000;
System.out.println(a == b);//false
Integer c = 100, d = 100;
System.out.println(c == d);//true
<script type="text/javascript">
window.onload=function(){
fn1();
}
function fn1(age,hei) {
var age;
alert(age);
function age() {
alert('hehe');
}
}
</script>
//输出:
“function age() {
alert('hehe');
}”
int a = 2;
double b = 2.22;
a += b; //对的
a = a + b; //编译出错
for (int i = 0; i < 5; i++)
Integer x = new Integer(i);//会编译出错,因为这句是声明语句,改为执行语句就可以了
System.out.println(num * 3);//7.3500000000000005
Integer a = 1000, b = 1000;
System.out.println(a == b);//false
Integer c = 100, d = 100;
System.out.println(c == d);//true
<script type="text/javascript">
window.onload=function(){
fn1();
}
function fn1(age,hei) {
var age;
alert(age);
function age() {
alert('hehe');
}
}
</script>
//输出:
“function age() {
alert('hehe');
}”
int a = 2;
double b = 2.22;
a += b; //对的
a = a + b; //编译出错
for (int i = 0; i < 5; i++)
Integer x = new Integer(i);//会编译出错,因为这句是声明语句,改为执行语句就可以了
相关文章推荐
- 深入剖析Java中的装箱和拆箱
- thinking between bindService&startService
- batch语言卸载msi安装程序
- 阶乘因式分解(找出数n的阶乘中含有几个素数m)
- android app如何上线发布
- android 设置 永不休眠
- 9个令人震惊的WebGL示例
- python入门(二)
- 剑指offer-调整数组顺序使奇数位于偶数前面
- const关键字区别
- iOS开发中控制屏幕旋转,个别界面强制横屏
- 关于Hadoop_env.sh中的HADOOP_CLASSPATH
- 【转】The content of element type "configuration" must match "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?...
- 路由器扫描的Java源码
- Ext入门学习系列(二)弹出窗体
- Ext入门学习系列(三)复杂自定义窗体
- 初步尝试在Eclipse 中运行LeakCannary展现程序内存溢出
- .pch文件解释
- JSP会话跟踪总结
- 46. Permutations