![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
文章平均质量分 50
烟锁着秦楼
你应该是一场梦,我应该是一阵风。
展开
-
微信JS-SDK集成-JAVA
微信JS-SDK集成-JAVA原创 2022-06-20 17:32:15 · 314 阅读 · 3 评论 -
springboot 国际化 i18n , 后端提示
springboot 国际化 i18n , 后端提示文章目录springboot 国际化 i18n , 后端提示前言一、pandas是什么?二、使用步骤1.引入库2.读入数据总结前言i18n(其来源是英文单词 internationalization的首末字符i和n,18为中间的字符数)是“国际化”的简称。提示:以下是本篇文章正文内容,下面案例可供参考一、pandas是什么?示例:pandas 是基于NumPy 的一种工具,该工具是为了解决数据分析任务而创建的。二、使用步骤1.引入库原创 2022-04-18 17:22:14 · 1066 阅读 · 11 评论 -
Java生成不重复数组
public static Integer[] randoms(int size) { Integer[] numbers = new Integer[7]; for (int i = 0; i < 7;) { int max = size, min = 1; int number = (int) (Math.r...原创 2019-12-10 10:10:42 · 668 阅读 · 0 评论 -
Java后端小程序发送模板消息
TemplateData@Getter@Setterpublic class TemplateData { /** * 依次排下去 */ private String value;}WxMssVo@Datapublic class WxMssVo {/*** 用户openid/private String touser;/** 模版...原创 2019-09-23 14:21:00 · 330 阅读 · 0 评论 -
List集合去掉重复元素
去除重复元素 HashSet h = new HashSet(holidaysList); holidaysList.clear(); holidaysList.addAll(h);以实体类的某个字段去重jdk1.8holidaysList = holidaysList.stream().collect(Collecto...原创 2019-05-07 19:09:15 · 606 阅读 · 0 评论 -
返回类
public class R extends HashMap<String, Object> { private static final long serialVersionUID = 1L; public R() { put("code", 0); put("msg", "success"); put("timestamp",""+System.currentT...原创 2019-04-22 14:29:17 · 773 阅读 · 0 评论 -
java判断100之内的质数
质数就是只能被1和自身整除的数。 int j; for(int i = 2; i <= 100; i++){ j = 2; while (i%j != 0){ j++; if(j==i){ System.out.print(...原创 2019-02-09 20:48:16 · 1559 阅读 · 2 评论 -
递归算法和打印乘法口诀表
/** * 递归算法 * @param i * @return */ static int Recursion(int i) { if (0 == i) return (1); else i = i * Recursion(i-1); return...原创 2019-02-09 20:08:43 · 629 阅读 · 0 评论 -
去除重复元素
int[] attr = {1,2,2,3}; List<Integer> list = new ArrayList<Integer>(); for (int i : attr) { if (!list.contains(i)) { list.add(i); }...原创 2019-02-16 12:34:08 · 160 阅读 · 0 评论 -
实现个线程加减
package PACKAGE_NAME;public class Test { public static void main(String[] args) { thread factory = new thread(); T1 t1 = new T1(factory); T2 t2 = new T2(factory); ...原创 2019-02-07 22:21:29 · 161 阅读 · 0 评论 -
单例模式
public class SingletonDemo1 { private static SingletonDemo1 INSTANCE; private SingletonDemo1(){} public static SingletonDemo1 getInstance(){ if(INSTANCE==null){ INSTA...原创 2019-02-07 22:16:24 · 90 阅读 · 0 评论 -
复制指定文件到指定目录并修改文件后缀
import java.io.*;public class copy { /** * 复制文件的方法 * @param file * @param newFile * @throws IOException */ public static void copyFile(File file, File newFile) throw...原创 2019-02-07 22:14:53 · 353 阅读 · 0 评论 -
冒泡排序
public static void main(String[] args) { int[] arr={7,3,8,2,9,1,5}; System.out.println("排序前数组为:"); for(int num:arr){ System.out.print(num+" "); } for(int i=0;i<arr.lengt...原创 2019-02-07 22:06:46 · 90 阅读 · 0 评论