首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
Java入门
汤姆猫和斯派克
创建于2022-09-04
订阅专栏
入门Java
暂无订阅
共27篇文章
创建于2022-09-04
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
XML文件的数据检索:Xpath(API)
``` package run; import org.dom4j.*; import org.dom4j.io.SAXReader; import org.junit.Test; import ja
Arrays工具类(API)
``` int[] arr = {1,2,3,4,5,6}; Arrays.sort(arr);//sort对数组进行排序 Arrays.toString(arr);//将数组以字符串形式输出 Sys
Collection集合API
``` //Collection是单例集合的祖宗接口,他的功能是全部单例集合都可以继承使用的 //API如下 // Collection list = new ArrayList<>(); // li
Map集合常用API
``` /** Map maps = new HashMap<>(); // maps.put(); 添加元素 maps.put("iPhone13ProMax",1); maps.put("麻辣王子
打印流(API)
``` //字节打印流 PrintStream ps = new PrintStream(new FileOutputStream("F:\JavaProject\Project\src\app.tx
Properties:将键值对信息存入到属性文件中(API)
``` Map map = new HashMap<>(); map.put("dilei","123456"); map.put("wuyanz","654321"); Properties p =
网络编程--网络通信协议(api)
传输层的2个常见协议 1、TCP(Transmission Control Protocol):传输控制协议 2、UDP(User Datagram Protocol):用户数据协议 Tcp协议的特点
反射获取方法对象API
; //终止JVM //计算机认为时间有起源,返回1970年1月1日00:00:00走到此刻的总的毫秒值:时间毫秒值 //据说是为了纪念最伟大的编程语言 C语言 l
Collections工具类(API)
``` public static void main(String[] args) { List list = new ArrayList<>(); Collections.addAll(list,
字符输出流和字符输入流(API)
``` public static void main(String[] args) throws IOException { try( Reader rd = new FileReader("F:\
网络编程(api)
网路编程可以让程序与网络的其他设备的程序进行数据交互 网络通信基本模式 实现网络编程关键的三要素 IP地址:设备在网络中的地址,是唯一的标识 端口:应用程序在设备种唯一的标识 协议:数据在网络中传输的
Dom4j解析XML的元素,文本,属性(API)
 ArrayList arraylist=new ArrayList<>(); arraylist.add("攻城狮"); arraylist
BigDecimal(API)
``` double a = 10.0; double b = 3.0; BigDecimal bigA = BigDecimal.valueOf(a); BigDecimal bigB = BigD
日期类--LocalDate、LocalTime、LocalDateTime(API)
LocalDate、LocalTime、LocalDateTime-----------------
LocalDate、LocalTime、LocalDateTime的计算与判断(API)
``` LocalTime nowTime1 = LocalTime.now(); System.out.println(nowTime1);//当前时间 System.out.println(now
字符集的解码与编码API
``` public static void main(String[] args) throws Exception { String name = "abc我爱你中国"; byte[] bytes
io框架,某某API
``` //文件复制 // IOUtils.copy(new FileInputStream("F:\JavaProject\Project\src\app.txt"), // new FileOut
下一页