摘要: public class ZiFuChuan { public static void main(String[] args) { ZiFuChuanFangFa f=new ZiFuChuanFangFa(); f.IndexOf(); //1.字符串查找 注意空格在数组中的位置!字符串查找 indexOf(); 找不到就返回 -1 有就返回此元素在该数组中的角标位置 f.ch... 阅读全文
posted @ 2019-03-18 21:35 送外卖的小菜鸟 阅读(1216) 评论(0) 推荐(0) 编辑
摘要: /* * 多线程 有三种实现方式 * 其一 Thread * * 写一个类 * * 1.让他继承 Thread * 2.重写thread中的run方法 * 3.创建子类对象就是在 创建线程! * 3.start();开启线程! 并让线程执行!同时还会告诉JVM去调用 show方法! */public 阅读全文
posted @ 2019-03-18 15:13 送外卖的小菜鸟 阅读(180) 评论(0) 推荐(0) 编辑