![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
^思无邪
这个作者很懒,什么都没留下…
展开
-
java 散列遍历
Map<String,String> map = new HashMap<>(); map.put("name","dj"); 1.foreach遍历 for<Map.Entry<String,String> e : map.entrySet()>; sout(e.getKey() + e.getValue()); 2.foreach遍历...原创 2019-04-19 12:36:05 · 197 阅读 · 0 评论 -
java数据结构
Note: 装箱 存放在集合类里的元素必须都是对象,但是基本数据类型如 int, boolean都不是对象,为了存放这些基本数据类型,需要 把他们封装成类,比如 int 封装成 Integer, boolean 封装成 Boolean ,使得能够把基本数据类型当作对象来使用。 把基本类型用引用类型包装起来,使其具有对象的性质,例如 int 包装成 Integer、...原创 2019-04-19 12:48:07 · 89 阅读 · 0 评论 -
java文件处理
懒得写了,直接贴代码 public static void main(String[] args) throws IOException { // 文件读取 // FileReader fr = new FileReader("D:\\java_projects\\practice\\src\\com\\company\\demo.txt"); // ...原创 2019-04-19 18:29:25 · 778 阅读 · 0 评论 -
java多线程
public class Test implements Runnable{ public void run() { System.out.println("dadadadd"); } public static void main(String[] args) { Test a = new Test(); //a.run...原创 2019-04-19 19:59:33 · 126 阅读 · 0 评论