新建一个java文件 文件后缀为.java Hello.java 编写代码 public class Hello{ public static void main(String[] args){ System.out.print("Hello,world"); } } 编译javac java文件( ...
分类:
其他好文 时间:
2021-06-02 20:48:48
阅读次数:
0
package kuangs.lesson02;import java.io.*;import java.net.ServerSocket;import java.net.Socket;//服务器端public class TcpServerDemo02 { public static void m ...
分类:
Web程序 时间:
2021-06-02 20:24:31
阅读次数:
0
在c++新标准之前通常使用c的函数rand来生成随机数。 现在可以使用下面这种方式: #include <random> #include <ctime> //生成0到9之前的随机整数 static std::default_random_engine e(time(0));//time(0)返回特 ...
分类:
编程语言 时间:
2021-06-02 20:13:41
阅读次数:
0
阿拉伯数字转汉字数字 public static String int2chineseNum(int src) { final String num[] = {"零", "一", "二", "三", "四", "五", "六", "七", "八", "九"}; final String unit[] ...
分类:
其他好文 时间:
2021-06-02 19:53:42
阅读次数:
0
spring: #thymeleaf thymeleaf: cache: false prefix: classpath:/templates/ check-template-location: true suffix: .html encoding: utf-8 mode: HTML #这个是关键 ...
分类:
编程语言 时间:
2021-06-02 19:47:35
阅读次数:
0
public static SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");public static SimpleDateFormat format1 = new SimpleDateFormat( "yyyyMMdd HH:m ...
分类:
编程语言 时间:
2021-06-02 19:42:04
阅读次数:
0
package whale.leetcode.simple; /** * @Author: WhaleFall541 * @Date: 2021/5/31 23:22 */ public class PowerOfFour { public static void main(String[] arg ...
分类:
编程语言 时间:
2021-06-02 19:35:24
阅读次数:
0
package kuangs.lesson1;import java.net.InetAddress;import java.net.UnknownHostException;//测试IPpublic class TestInetAddress { public static void main(S ...
分类:
Web程序 时间:
2021-06-02 19:04:04
阅读次数:
0
/** * 计算barcode最后一位 * @param code 12位的barcode * @return */ public static String padBarcode(String code){ if( null == code || code.length() != 12 ){ th ...
分类:
其他好文 时间:
2021-06-02 18:53:48
阅读次数:
0
1、 runAsync 和 supplyAsync方法 CompletableFuture 提供了四个静态方法来创建一个异步操作。 public static CompletableFuture<Void> runAsync(Runnable runnable) public static Comp ...
分类:
其他好文 时间:
2021-06-02 17:33:34
阅读次数:
0