2017年11月21日

摘要: public class TestString { public static void main(String[] args) { // TODO Auto-generated method stub String s1 = "Hello world"; if(!s1.isEmpty()){ Sy 阅读全文
posted @ 2017-11-21 13:42 sunny_2016 阅读(115) 评论(0) 推荐(0)
摘要: public class TestString2 { public static void main(String[] args) { //判断两字符串是否相等 String s1 = "Hello world"; String s2 = "Hello java"; if (s1.equals(s2 阅读全文
posted @ 2017-11-21 13:41 sunny_2016 阅读(93) 评论(0) 推荐(0)
摘要: package com.promote; public class ForDemo { public static void main(String[] args) { // 1到100相加求和 int sum=0; for (int i = 0; i <=100; i++) { sum+=i; } 阅读全文
posted @ 2017-11-21 13:40 sunny_2016 阅读(111) 评论(0) 推荐(0)

导航