上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 47 下一页
摘要: 1.概述 2.体验lambda public static void main(String[] args) { //匿名内部类启动线程 new Thread(new Runnable() { @Override public void run() { System.out.println("匿名内 阅读全文
posted @ 2020-06-27 16:04 指尖下的世界 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1.网络编程入门 1.1.网络编程概述 1.2网络编程三要素 1.3 IP IP地址常用命令: ipconfig 查看本机IP地址 ping IP地址 检查网络是否连通 特殊IP地址:127.0.0.1:是回送地址,可以表示本机地址,一般用来测试使用 1.4 InetAddress // InetA 阅读全文
posted @ 2020-06-26 21:27 指尖下的世界 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1.进程 2.线程 例如记事本:我们在打开记事本的时候打开页面设置: 上面这种情况说明记事本整个执行流程只有一条执行路径,是单线程程序 再例如QQ: 上面QQ的聊天界面和好友搜索界面有各自的执行路径,说明QQ是多线程程序 3.多线程实现方式 方式1: public class MyThread ex 阅读全文
posted @ 2020-06-25 22:44 指尖下的世界 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 概述 1.Properties作为Map使用 // 创建对象不可使用泛型 Properties properties = new Properties(); // 存储元素 properties.put("张飞","18"); properties.put("关羽","19"); propertie 阅读全文
posted @ 2020-06-25 16:42 指尖下的世界 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1.概述 public class Student implements Serializable {} public class Xuliehua { public static void main(String[] args) throws IOException { ObjectOutputS 阅读全文
posted @ 2020-06-25 12:37 指尖下的世界 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.标准输入流 public final class System public static final InputStream in“标准”输入流。 该流已经打开,准备提供输入数据。 通常,该流对应于键盘输入或由主机环境或用户指定的另一个输入源。 public static final Prin 阅读全文
posted @ 2020-06-24 17:19 指尖下的世界 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1.概述 2.分类 3.字节流 /** * 创建字节输出流对象,下面的的语句一共做了3件事情: * A:调用系统功能,创建了文件 * B:创建了字节输出流对象 * C:让字节输出流对象指向创建好的文件 */ FileOutputStream outputStream = new FileOutput 阅读全文
posted @ 2020-06-21 23:35 指尖下的世界 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1.概述 //构造方法1: File file1 = new File("E://abc/a.txt"); //构造方法2: File file2 = new File("E://abc","a.txt"); //构造方法3: File file = new File("E://abc"); Fil 阅读全文
posted @ 2020-06-21 21:10 指尖下的世界 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1.概述 案例1: public static void main(String[] args) { //不死神兔,求第20个月兔子的对数 //每个月兔子对数:1,1,2,3,5,8,13..... System.out.println(new Digui().f(20));//6765 } pub 阅读全文
posted @ 2020-06-21 21:08 指尖下的世界 阅读(134) 评论(0) 推荐(0) 编辑
摘要: ArrayList<String> strings = new ArrayList<String>(); strings.add("aa"); strings.add("dd"); strings.add("cc"); strings.add("ee"); System.out.println(st 阅读全文
posted @ 2020-06-21 09:11 指尖下的世界 阅读(218) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 47 下一页
/* 看板娘 */ /*炸泡*/ /* 鼠标点击求赞文字特效 */