public static void main(String args[]) { try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { i ...
分类:
编程语言 时间:
2021-05-24 12:36:02
阅读次数:
0
1.java 容器都有哪些? 常用容器的图录: 2.Collection 和 Collections 有什么区别? java.util.Collection 是一个集合接口(集合类的一个顶级接口)。它提供了对集合对象进行基本操作的通用接口方法。Collection接口在Java 类库中有很多具体的实 ...
分类:
编程语言 时间:
2021-05-24 12:26:16
阅读次数:
0
CSV文件读取 javacsv 读取 引入依赖 <!-- https://mvnrepository.com/artifact/net.sourceforge.javacsv/javacsv --> <dependency> <groupId>net.sourceforge.javacsv</gro ...
分类:
其他好文 时间:
2021-05-24 10:39:35
阅读次数:
0
ConfigureAppConfiguration((hostingContext, config) => { config.AddCryptoFile(Path.Combine(AppContext.BaseDirectory, "appsettings.json.crypto"), true); ...
分类:
Web程序 时间:
2021-05-24 10:20:52
阅读次数:
0
服务端 public static void main(String[] args) { ServerSocket serverSocket = null; Socket socket = null; InputStream inputStream = null; ByteArrayOutputSt ...
分类:
编程语言 时间:
2021-05-24 08:23:25
阅读次数:
0
Java零基础学习(Object类) API概述以及Object类的概述 1.API(Application Programming Interface) 应用程序编程接口 2.Java API 就是Java提供给我们使用的类,这些类将底层的实现封装了起来 我们不需要关心这些类是如何实现的,只需要学 ...
分类:
编程语言 时间:
2021-05-24 08:04:10
阅读次数:
0
ThreadLocal 分析 首先我们看一下下面这个程序 public class ThreadLockDemo { //初始tl per对象名是 zs static ThreadLocal<per> tl = new ThreadLocal<per>() { protected per initi ...
分类:
其他好文 时间:
2021-05-24 07:59:20
阅读次数:
0
在项目中遇到读取以json格式存储的配置文件,为了方便操作,将文件内容读取出来并转换为json对象,本文使用的是fastjson import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import org. ...
分类:
编程语言 时间:
2021-05-24 04:37:23
阅读次数:
0
public class ThreadDemo { //1.定义一个静态变量,因为静态变量是线程共享的 public static int count = 0; //2.定义一个自增的方法 public static void add() { try { Thread.sleep(1);//让程序睡 ...
分类:
编程语言 时间:
2021-05-24 02:11:00
阅读次数:
0
func (o *MsSqlUtils) ExecuteSql(cmd string) (err1 error, affected int64) { defer func() { //必须要先声明defer,否则不能捕获到panic异常 if err2 := recover(); err2 != n ...
分类:
编程语言 时间:
2021-05-24 00:20:08
阅读次数:
0