摘要: 1.字符串的比较代码 String.equals 1 System.out.println("str1和str2是否相同:"+(str1.equals(str2))); equals在英语中有数量平等相同的意思 字符串判断相等与否不能使用"==" ,否则会出现意外错误影响程序处理。 字符串的判断相等 阅读全文
posted @ 2016-02-29 20:24 宫崎天川 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1 public class maopao { 2 3 public static void main(String[] args) { 4 //冒泡排序 5 int [] a = new int [] {23,43,56,78,111,234,8,9,}; 6 7 System.out.print 阅读全文
posted @ 2016-02-29 11:14 宫崎天川 阅读(813) 评论(0) 推荐(0) 编辑