摘要: 返回值 方法 用途 boolean add(E e) 将指定的元素追加到此列表的末尾。 void add(int index, E element) 在此列表中的指定位置插入指定的元素。 boolean addAll(Collection<? extends E> c) 按指定集合的Iterator 阅读全文
posted @ 2022-01-05 22:00 静沐丶暖阳 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 返回值类型 方法 用途 备注 char charAt(int index) 返回 char指定索引处的值。 int compareTo(String anotherString) 按字典顺序比较两个字符串。 值<0:参数字符串在后 值=0:参数字符串与对象字符串相等 值>0:参数字符串在前 Stri 阅读全文
posted @ 2022-01-05 20:58 静沐丶暖阳 阅读(49) 评论(0) 推荐(0) 编辑
摘要: Java数据类型共分为4类8种: 数据类型 封装器类 字节数 范围 默认值 开辟空间 整型 byte Byte 1 -128 ~ 127 0 8位 short Short 2 -32768(-2^15)~32767(2^15 - 1) 0 16位 int Integer 4 -2,147,483,6 阅读全文
posted @ 2022-01-05 20:14 静沐丶暖阳 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 1 import java.io.File; 2 import java.io.FileInputStream; 3 import java.util.ArrayList; 4 import java.util.List; 5 6 import org.apache.poi.hssf.usermod 阅读全文
posted @ 2022-01-05 14:38 静沐丶暖阳 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 1. 引入jar包 <dependency> <groupId>com.auth0</groupId> <artifactId>java-jwt</artifactId> <version>3.4.0</version> </dependency> 2. 实现 1 public class JWTU 阅读全文
posted @ 2022-01-05 13:53 静沐丶暖阳 阅读(1416) 评论(0) 推荐(0) 编辑
摘要: 1 public class AES256Util { 2 3 /** 4 * 密钥, 256位32个字节 5 */ 6 public static final String DEFAULT_SECRET_KEY = "uBdUx82vPHkDKb284d7NkjFoNcKWBuka"; 7 8 p 阅读全文
posted @ 2022-01-05 13:48 静沐丶暖阳 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 开发过程中常用的数据类型: Java Mysql 备注 整型 java.lang.Integer tinyint(m) 1个字节 范围(-128~127) java.lang.Integer smallint(m) 2个字节 范围(-32768~32767) java.lang.Integer me 阅读全文
posted @ 2022-01-05 11:51 静沐丶暖阳 阅读(238) 评论(0) 推荐(0) 编辑