码迷,mamicode.com
首页 > 编程语言 > 详细

算法第一章

时间:2017-11-08 17:41:36      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:false   ber   har   closed   div   src   system   hid   nbsp   

1. System.out.println(true && false || true && true);

技术分享
true   

// false||true
// &&优先级高于||
答案

2. System.out.println(1 + 2 + "3");

技术分享
33     //数字转化为字符串
答案

3.    a. System.out.println(‘b‘);
  b. System.out.println(‘b‘ + ‘c‘);
  c. System.out.println((char) (‘a‘ + 4));

技术分享
b
197   //b的ASCII码为98,c的为99。记住a是97
e    
答案

 

算法第一章

标签:false   ber   har   closed   div   src   system   hid   nbsp   

原文地址:http://www.cnblogs.com/kkkky/p/7804476.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!