上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
摘要: package com.xx.common.core.utils.geography; import com.alibaba.fastjson2.JSON; import com.xx.common.core.baseweb.domain.Point; import java.util.Arrays 阅读全文
posted @ 2022-11-10 17:08 xiexie0812 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 使用JNA框架比用原来JNI要方便多了,对于DLL不需要额外的包装,直接就能够使用: 1.JNA框架 a. 定义:JNA(Java Native Access)框架是一个开源的Java框架,是SUN公司主导开发的,建立在经典的JNI的基础之上的一个框架 b. 作用:JNA提供一组Java工具类用于在 阅读全文
posted @ 2022-11-10 17:03 xiexie0812 阅读(934) 评论(0) 推荐(0) 编辑
摘要: 1. 引入maven <!--读取图片元数据--> <dependency> <groupId>com.drewnoakes</groupId> <artifactId>metadata-extractor</artifactId> <version>2.6.2</version> </depend 阅读全文
posted @ 2022-11-10 16:57 xiexie0812 阅读(523) 评论(0) 推荐(1) 编辑
摘要: public class Test { public static void main(String[] args) { int[] arr = new int[]{1, 2, 3, 4, 5, 6}; printArr(arr); arr = deleteFirst(arr); printArr( 阅读全文
posted @ 2022-11-10 16:50 xiexie0812 阅读(1475) 评论(0) 推荐(0) 编辑
摘要: 使用说明使用时,要留意Object数组中值的顺序,需要与目标实体类中构造方法的形参的顺序保持一致,防止出现赋值错误的情况。 工具类代码 /** * 数据类型转换工具类 * @author xupeng */ public class DataConvertUtil { /** * Object[] 阅读全文
posted @ 2022-11-04 17:36 xiexie0812 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 调用接口,首先得去注册一个账号,(它只能获取当天的数据,没有百度API的功能强大) 官网参考:http://www.yytianqi.com/api.html package com.common.filo; import java.io.BufferedReader; import java.io 阅读全文
posted @ 2022-10-18 11:57 xiexie0812 阅读(540) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/manmanblogs/p/16067065.html 阅读全文
posted @ 2022-10-17 16:41 xiexie0812 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 一、随机查询一条数据 SELECT * FROM `table` AS t1 JOIN ( SELECT ROUND(RAND() * ((SELECT MAX(id) FROM `table`)-(SELECT MIN(id) FROM `table`))+(SELECT MIN(id) FROM 阅读全文
posted @ 2022-10-11 17:32 xiexie0812 阅读(554) 评论(0) 推荐(0) 编辑
摘要: /** * 画缺陷框的图片文件 * @param file {@link File} * @param polygon 缺陷框 * @return 带缺陷的文件 * @throws IOException IO异常 */ public static File drawLine(File file, 阅读全文
posted @ 2022-10-09 09:09 xiexie0812 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 代码: import javax.swing.*; import java.awt.*; public class Main { public static void main(String[] args) { JFrame frame=new JFrame(); mypanel panel=new 阅读全文
posted @ 2022-10-08 18:29 xiexie0812 阅读(329) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页