链接数据库 public static void main(String[] args) { //简约方式 try { Connection conn = DriverManager.getConnection("jdbc:mysql:/mysql?user=aa"); Statement st = ...
分类:
数据库 时间:
2021-03-02 12:02:39
阅读次数:
0
讲讲做这个开源项目的感想,讲一讲 Vue3 相关的话题,应该能够帮助到一些朋友,主要有三点吧:1. 如果想做一个开源项目,应该做什么 2.做开源项目其实是一件劳心费神的事情 3.其它一些感想 ...
分类:
其他好文 时间:
2021-03-02 11:51:16
阅读次数:
0
public class demo5 { public static void main(String[] args) { int a = 10; int b = 20; a+=b;//a = a+b a-=b;//a = a-b System.out.println(a); //字符串连接符 Sy ...
分类:
其他好文 时间:
2021-03-02 11:50:18
阅读次数:
0
public static void main(String[] args) { int num1 = 10_0000_0000; int rate = 20; long total = num1 * rate; System.out.println(total);// 输出为-1474836480 ...
分类:
其他好文 时间:
2021-03-01 14:18:24
阅读次数:
0
public class demo4 { //逻辑运算符 public static void main(String[] args) { //与(&&)或(||)非(!) boolean a = true; boolean b = false; System.out.println(a && b) ...
分类:
其他好文 时间:
2021-03-01 14:15:22
阅读次数:
0
Scanner Java.util.Scanner是Java5的新特征,我们可以通过Scanner类来获取用户的输入。 基本语法: Scanner s = new Scanner(System.in); 通过Scanner类的next()和nextLine()方法获取输入的字符串,在读取前我们一般需 ...
分类:
编程语言 时间:
2021-03-01 13:42:30
阅读次数:
0
public class splitTest { public static void main(String[] args) { String a = "@123"; String b = "123@"; String c = "3@@@"; String[] aArr = a.split("@" ...
分类:
其他好文 时间:
2021-03-01 13:34:57
阅读次数:
0
java基本运算符解析(1) 基本加减乘除间运算 public class Demo1 { public static void main(String[] args) { int a = 20; int b = 30; int c = 40; int d = 25; System.out.prin ...
分类:
编程语言 时间:
2021-03-01 13:30:50
阅读次数:
0
方式 抛出异常 有返回值,不抛出异常 阻塞等待 超时等待 添加 移除 检测队首元素 ...
heap导出几种方式: 1、设置启动的JVM参数,当heap溢出时自动生成dump,vm options:-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${目录} 2、通过jmap实时导出dump,这个最好不要在高峰时期使用。命令:jmap -du ...
分类:
其他好文 时间:
2021-03-01 13:22:53
阅读次数:
0