米字键

博客园 首页 新随笔 联系 订阅 管理

2019年3月19日 #

摘要: public class Homework { public static void main(String[] args) throws ParseException { lower(); 全部调用 upper(); repalce(); repalce1(); trim(); public st 阅读全文
posted @ 2019-03-19 22:02 米字键 阅读(558) 评论(0) 推荐(0) 编辑

摘要: /* boolean isEmpty(): 判断字符串是不是空串, 如果是空的就返回true */ public class Str { public static void main(String[] args) { // 定义空字符串 String s=""; // 判断是否为空 boolean 阅读全文
posted @ 2019-03-19 21:36 米字键 阅读(838) 评论(0) 推荐(0) 编辑

摘要: // char charAt(int index): 返回索引上的字符 public class Char { public static void main(String[] args) { //定义字符串 String s="Holle"; // 定字符串定义字符串的下标 char s1=s.c 阅读全文
posted @ 2019-03-19 20:45 米字键 阅读(520) 评论(0) 推荐(0) 编辑

摘要: import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class DouShaoTian { public static void main(String[] 阅读全文
posted @ 2019-03-19 20:33 米字键 阅读(163) 评论(0) 推荐(0) 编辑