java积累
-
Arrays.asList(args): 将args转为列表的形式输出
-
常犯的错误:经常直接就new新的了。应该用上面的的。
-
new Date()是年月日时分秒。 LocalDate.now()是年月日
-
-
-
-
问题1
java.sql.SQLNonTransientConnectionException: Cannot load connection class because of underlying exception: com.mysql.cj.exceptions.WrongArgumentException: Malformed database URL, failed to parse the connection string near ‘;userUnicode=true&characterEncoding=UTF-8’.
解决方法:
Java如何定义栈?
Stack<Integer> s = new Stack();
栈的方法:
Java如何定义队列
Queue<Integer> q=new LinkedList<>();
IDEA快捷键
Ctrl + Alt + B : 显示实现该类或者接口的类
Ctrl + B:点到某个类时,会直接进入到该类中
Ctrl + Alt + S : 打开设置
Ctrl + O : 重写方法快捷键
复制文件名:Ctrl + Alt + F