Merge remote-tracking branch 'origin/active_mq' into active_mq

# Conflicts:
#	.idea/compiler.xml
#	README.md
This commit is contained in:
YuCheng Hu 2024-04-23 20:26:48 -04:00
commit 32d95f8632
No known key found for this signature in database
GPG Key ID: 942395299055675C
57 changed files with 87 additions and 120 deletions

View File

@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-11-2/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-11-2/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-11/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-11/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-8-2/src/main/java" charset="UTF-8" />

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2022 wiki-us
Copyright (c) 2024 iSharkFly
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -5,11 +5,10 @@
<br>提供 iSharkFly.Com 项目中使用的代码
</p>
Java 代码使用的是 JDK 11
Java 代码使用的是 JDK 17
你可以通过单击下面连接后访问我们网站,并且访问我们提供的最新有关 Java 的开发资料。
* [概述](https://www.cwiki.us/pages/viewpage.action?pageId=37492282)
* [社区和讨论](https://www.isharkfly.com/c/computer-program/java/15)
# 联系方式
@ -38,21 +37,21 @@ Java 代码使用的是 JDK 11。
![](https://cdn.ossez.com/img/cwikius/cwikus-qr-toutiao.png)
## 知乎
请关注我们的知乎https://www.zhihu.com/people/huyuchengus
## 快速导航
在下面的表格中,我们列出了一些比较有用的 CWIKIUS 相关软件开发使用教程的导航,欢迎访问下面的链接获得更多的内容和参与讨论
| 网站名称 | URL | NOTE |
|----------------|--------------------------------------------------------|----------------------------|
| OSSEZ 社区 | [www.ossez.com](https://www.ossez.com/) | 开放社区,欢迎注册参与讨论 |
| WIKI 维基 | [www.cwiki.us](https://www.cwiki.us/) | 使用 Confluence 部署的 WIKI 知识库 |
| DOCS.OSSEZ.COM | [https://docs.ossez.com/#/](https://docs.ossez.com/#/) | 本手册的编译版本将会部署在这个链接上 |
| CN 博客 | [http://www.cwikius.cn/](http://www.cwikius.cn/) | CWIKIUS.CN 一个有独立思考和温度的清新站 |
##
| 网站名称 | URL | NOTE |
|--------------------|----------------------------------------------------------------|----------------------------|
| 鲨鱼君-社区 | [www.isharkfly.com](https://www.isharkfly.com/) | 开放社区,欢迎注册参与讨论 |
| WIKI 维基 | [www.cwiki.us](https://www.cwiki.us/) | 使用 Confluence 部署的 WIKI 知识库 |
| DOCS.ISHARKFLY.COM | [https://docs.iSharkfly.com/#/](https://docs.isharkfly.com/#/) | 本手册的编译版本将会部署在这个链接上 |
| CN 博客 | [http://www.cwikius.cn/](http://www.cwikius.cn/) | CWIKIUS.CN 一个有独立思考和温度的清新站 |
## Java 基本类型
| 基本类型 | 大小 | 包装器类型 |
|---------|-------|-----------|

View File

@ -7,7 +7,7 @@
<version>0.1.0-SNAPSHOT</version>
<name>core-java-11</name>
<packaging>jar</packaging>
<url>http://maven.apache.org</url>
<url>https://maven.apache.org</url>
<parent>
<groupId>com.ossez.core-java-modules</groupId>

View File

@ -3,15 +3,15 @@
本模块中包含有关 Java 字符串String有关的文章。
### 相关文章
- [Java 使用 char[] Array 还是 String 存储字符串密码](https://www.ossez.com/t/java-char-array-string/14015)
- [Java 9 中的字符串String压缩](https://www.ossez.com/t/java-9-string/14024)
- [Java 使用 char[] Array 还是 String 存储字符串密码](https://www.isharkfly.com/t/java-char-array-string/14015)
- [Java 9 中的字符串String压缩](https://www.isharkfly.com/t/java-9-string/14024)
- [String Not Empty Test Assertions in Java](https://www.baeldung.com/java-assert-string-not-empty)
- [String Performance Hints](https://www.baeldung.com/java-string-performance)
- [Java Localization Formatting Messages](https://www.baeldung.com/java-localization-messages-formatting)
- [Java Generate Random String](https://www.baeldung.com/java-random-string)
- [Java String Interview Questions and Answers](https://www.baeldung.com/java-string-interview-questions)
- [Java 多行字符串](https://www.ossez.com/t/java/14049)
- [Java 中的 String Pool 简介](https://www.ossez.com/t/java-string-pool/14017)
- [Java “constant string too long” 编译错误](https://www.ossez.com/t/java-constant-string-too-long/14048)
- [Java 对象如何安全的 toString](https://www.ossez.com/t/java-tostring/14000)
- [编程常用的几种字符编码](https://www.ossez.com/t/topic/14022)
- [Java 多行字符串](https://www.isharkfly.com/t/java/14049)
- [Java 中的 String Pool 简介](https://www.isharkfly.com/t/java-string-pool/14017)
- [Java “constant string too long” 编译错误](https://www.isharkfly.com/t/java-constant-string-too-long/14048)
- [Java 对象如何安全的 toString](https://www.isharkfly.com/t/java-tostring/14000)
- [编程常用的几种字符编码](https://www.isharkfly.com/t/topic/14022)

View File

@ -19,7 +19,7 @@
<module>core-java-8</module>
<module>core-java-8-2</module>
<module>core-java-11</module>
<!-- <module>core-java-11-2</module>-->
<module>core-java-11-2</module>
<module>core-java-annotations</module>
<module>core-java-collections</module>
<module>core-java-collections-2</module>

View File

@ -1,13 +1,4 @@
package com.ossez.toolkits.codebank;
import java.util.Properties;
import java.util.concurrent.ExecutorService;
import com.google.gdata.data.docs.Size;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.GnuParser;
import org.apache.commons.cli.Options;
package com.isharkfly.toolkits.codebank;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.algorithm.objplusclass;
package com.isharkfly.toolkits.codebank.algorithm.objplusclass;
/**
*

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.algorithm.overview;
package com.isharkfly.toolkits.codebank.algorithm.overview;
/**
* Java Tutorial

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.algorithm.overview;
package com.isharkfly.toolkits.codebank.algorithm.overview;
/**
* Java Tutorial

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.interview;
package com.isharkfly.toolkits.codebank.common.interview;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.interview;
package com.isharkfly.toolkits.codebank.common.interview;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.interview;
package com.isharkfly.toolkits.codebank.common.interview;
import java.io.BufferedReader;
import java.io.InputStreamReader;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.model;
package com.isharkfly.toolkits.codebank.common.model;
/**
*

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.model;
package com.isharkfly.toolkits.codebank.common.model;
/**
*

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.model.entity;
package com.isharkfly.toolkits.codebank.common.model.entity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.model.entity;
package com.isharkfly.toolkits.codebank.common.model.entity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,10 +1,9 @@
package com.ossez.toolkits.codebank.common.model.request;
package com.isharkfly.toolkits.codebank.common.model.request;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.io.Serializable;
import java.util.Objects;
/**

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.model.response;
package com.isharkfly.toolkits.codebank.common.model.response;
import java.io.Serializable;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.model.response;
package com.isharkfly.toolkits.codebank.common.model.response;
import java.io.Serializable;
import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.ossez.lang.tutorial.usecases;
package com.isharkfly.toolkits.codebank.common.usecase;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,6 +1,6 @@
package com.ossez.toolkits.codebank.common.utils;
package com.isharkfly.toolkits.codebank.common.utils;
import com.ossez.toolkits.codebank.common.model.TreeNode;
import com.isharkfly.toolkits.codebank.common.model.TreeNode;
import java.util.ArrayList;

View File

@ -1,6 +1,5 @@
package com.ossez.toolkits.codebank.tests;
package com.isharkfly.toolkits.codebank.tests;
import junit.framework.TestCase;
import org.junit.Test;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests;
package com.isharkfly.toolkits.codebank.tests;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests;
package com.isharkfly.toolkits.codebank.tests;
import java.util.ArrayList;
import java.util.Arrays;
@ -7,7 +7,7 @@ import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.ossez.toolkits.codebank.common.model.ListNode;
import com.isharkfly.toolkits.codebank.common.model.ListNode;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests;
package com.isharkfly.toolkits.codebank.tests;
import org.junit.Test;
import org.slf4j.Logger;

View File

@ -1,10 +1,10 @@
package com.ossez.toolkits.codebank.tests;
package com.isharkfly.toolkits.codebank.tests;
import java.util.ArrayList;
import java.util.List;
import com.ossez.toolkits.codebank.common.model.TreeNode;
import com.ossez.toolkits.codebank.common.utils.TreeUtils;
import com.isharkfly.toolkits.codebank.common.model.TreeNode;
import com.isharkfly.toolkits.codebank.common.utils.TreeUtils;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,5 +1,6 @@
package com.ossez.lang.tutorial.tests;
package com.isharkfly.toolkits.codebank.tests;
import junit.framework.TestCase;
import org.junit.Test;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
@ -7,26 +8,6 @@ import org.junit.jupiter.api.TestInstance;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import junit.framework.TestCase;
/**
* Object of VariableOssez
*
* @author YuCheng
*
*/
class OssezVariable {
int s1, s2;
static int s3;
OssezVariable(int x, int y, int z) {
s1 = x;
s2 = y;
s3 = z;
}
}
/**
*
* @author YuCheng

View File

@ -1,11 +1,10 @@
package com.ossez.toolkits.codebank.tests.algorithm;
package com.isharkfly.toolkits.codebank.tests.algorithm;
import junit.framework.TestCase;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.Array;
import java.util.*;
import java.util.stream.Collectors;

View File

@ -1,6 +1,5 @@
package com.ossez.toolkits.codebank.tests.algorithm;
package com.isharkfly.toolkits.codebank.tests.algorithm;
import org.apache.commons.lang3.math.NumberUtils;
import org.apache.commons.math3.primes.Primes;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests.algorithm;
package com.isharkfly.toolkits.codebank.tests.algorithm;
import org.junit.Test;
import org.slf4j.Logger;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests.algorithm;
package com.isharkfly.toolkits.codebank.tests.algorithm;
import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.Test;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests.codility;
package com.isharkfly.toolkits.codebank.tests.codility;
import org.junit.Test;
import org.slf4j.Logger;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests.interview;
package com.isharkfly.toolkits.codebank.tests.interview;
import java.util.ArrayList;
import java.util.Arrays;

View File

@ -1,6 +1,6 @@
package com.ossez.toolkits.codebank.tests.interview;
package com.isharkfly.toolkits.codebank.tests.interview;
import com.ossez.toolkits.codebank.common.model.request.TopicRequest;
import com.isharkfly.toolkits.codebank.common.model.request.TopicRequest;
import org.apache.commons.lang3.StringUtils;
import org.junit.Test;
import org.slf4j.Logger;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests.interview;
package com.isharkfly.toolkits.codebank.tests.interview;
import static org.junit.Assert.assertEquals;
@ -7,8 +7,8 @@ import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ossez.toolkits.codebank.common.interview.KayakCountUpDown;
import com.ossez.toolkits.codebank.common.interview.KayakRobotMovement;
import com.isharkfly.toolkits.codebank.common.interview.KayakCountUpDown;
import com.isharkfly.toolkits.codebank.common.interview.KayakRobotMovement;
/**
*

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests.interview;
package com.isharkfly.toolkits.codebank.tests.interview;
import org.junit.Test;
import org.slf4j.Logger;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests.interview;
package com.isharkfly.toolkits.codebank.tests.interview;
import java.io.File;
import java.nio.charset.StandardCharsets;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests.interview;
package com.isharkfly.toolkits.codebank.tests.interview;
import org.junit.Test;
import org.slf4j.Logger;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests.interview;
package com.isharkfly.toolkits.codebank.tests.interview;
import java.util.ArrayList;
import java.util.Arrays;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests.interview;
package com.isharkfly.toolkits.codebank.tests.interview;
import java.util.HashMap;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests.interview;
package com.isharkfly.toolkits.codebank.tests.interview;
import java.math.BigDecimal;
import java.util.ArrayList;

View File

@ -1,11 +1,9 @@
package com.ossez.toolkits.codebank.tests.leetcode;
package com.isharkfly.toolkits.codebank.tests.leetcode;
import com.ossez.toolkits.codebank.common.model.TreeNode;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.Locale;
import java.util.Map;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.tests.lintcode;
package com.isharkfly.toolkits.codebank.tests.lintcode;
import java.util.ArrayList;
@ -6,7 +6,7 @@ import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ossez.toolkits.codebank.common.model.TreeNode;
import com.isharkfly.toolkits.codebank.common.model.TreeNode;
/**
* <p>

View File

@ -1,6 +1,6 @@
package com.ossez.toolkits.codebank.tests.lintcode;
package com.isharkfly.toolkits.codebank.tests.lintcode;
import com.ossez.toolkits.codebank.tests.EmptyQuickTest;
import com.isharkfly.toolkits.codebank.tests.EmptyQuickTest;
import org.apache.commons.math3.util.FastMath;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;

View File

@ -1,4 +1,4 @@
package com.ossez.lang.tutorial.tests.lintcode;
package com.isharkfly.toolkits.codebank.tests.lintcode;
import java.util.ArrayList;
import java.util.LinkedList;
@ -9,7 +9,7 @@ import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ossez.toolkits.codebank.common.model.TreeNode;
import com.isharkfly.toolkits.codebank.common.model.TreeNode;
/**
* <p>

View File

@ -1,10 +1,10 @@
package com.ossez.lang.tutorial.tests.lintcode;
package com.isharkfly.toolkits.codebank.tests.lintcode;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ossez.toolkits.codebank.common.model.ListNode;
import com.isharkfly.toolkits.codebank.common.model.ListNode;
/**
* <p>

View File

@ -1,10 +1,10 @@
package com.ossez.lang.tutorial.tests.lintcode;
package com.isharkfly.toolkits.codebank.tests.lintcode;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ossez.toolkits.codebank.common.model.ListNode;
import com.isharkfly.toolkits.codebank.common.model.ListNode;
/**
* <p>

View File

@ -1,4 +1,4 @@
package com.ossez.lang.tutorial.tests.lintcode;
package com.isharkfly.toolkits.codebank.tests.lintcode;
import java.util.ArrayList;
import java.util.HashMap;

View File

@ -1,4 +1,4 @@
package com.ossez.lang.tutorial.tests.lintcode;
package com.isharkfly.toolkits.codebank.tests.lintcode;
import org.junit.Test;
import org.slf4j.Logger;

View File

@ -1,4 +1,4 @@
package com.ossez.lang.tutorial.tests.lintcode;
package com.isharkfly.toolkits.codebank.tests.lintcode;
import org.junit.Test;
import org.slf4j.Logger;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.model.entity;
package com.isharkfly.toolkits.codebank.common.model.entity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.model.entity;
package com.isharkfly.toolkits.codebank.common.model.entity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.model.request;
package com.isharkfly.toolkits.codebank.common.model.request;
import java.io.Serializable;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.model.response;
package com.isharkfly.toolkits.codebank.common.model.response;
import java.io.Serializable;

View File

@ -1,4 +1,4 @@
package com.ossez.toolkits.codebank.common.model.response;
package com.isharkfly.toolkits.codebank.common.model.response;
import java.io.Serializable;
import java.util.Date;

View File

@ -1,8 +1,8 @@
package com.ossez.toolkits.codebank.tests;
package com.isharkfly.toolkits.codebank.tests;
import com.google.gson.Gson;
import com.ossez.toolkits.codebank.common.model.entity.BBSOssezForumPost;
import com.ossez.toolkits.codebank.common.model.request.TopicRequest;
import com.isharkfly.toolkits.codebank.common.model.entity.BBSOssezForumPost;
import com.isharkfly.toolkits.codebank.common.model.request.TopicRequest;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;