using System.Text; using System.Text.RegularExpressions; namespace 落地页测试代码 { public class Validate { private static Regex RegNumber = new Regex("^[0-9... ...
package cn.lyun.zzj; import java.util.Arrays; public class WrapperTest { private static final String SPACE_SEPARATOR = " "; //不可以放在一个类里面。 public stati ...
分类:
编程语言 时间:
2019-03-21 01:22:30
阅读次数:
308
private static final String IMAGE_TYPE_PROMPT = "文件格式仅支持jpg、png";private static final String IMAGE_FILE_SIZE_PROMPT = "文件格式仅支持jpg、png"; public String ...
分类:
Web程序 时间:
2019-03-20 20:46:47
阅读次数:
293
1、单例模式 饿汉模式 public class Singleton { private static final Singleton INSTANCE = new Singleton(); // Private constructor suppresses // default public co ...
分类:
编程语言 时间:
2019-03-19 16:43:53
阅读次数:
174
public class TestMapping { private static String ES_HOST1 = "127.0.0.1"; //private static String ES_HOST2 = "192.168.10.254"; private static int ES_PO... ...
分类:
移动开发 时间:
2019-03-14 16:36:46
阅读次数:
233
private static List<User> list = new ArrayList<User>();public static void main(String[] args) {list = Arrays.asList(new User(1, "a", 10),new User(4, " ...
分类:
编程语言 时间:
2019-03-14 15:01:19
阅读次数:
1188
1.打开VS2019,创建界面和按钮 2. 代码如下: private void button1_Click(object sender, EventArgs e) { downpc(txttime.Text); } private static void downpc(string time) { ...
分类:
微信 时间:
2019-03-12 18:49:31
阅读次数:
189
算法学习——二分查找 注意点 1. 二分查找的前提是有序的数组 2. 建议使用[start,end)的区间寻找,符合规范 3. 使用的是递归法 递归的人口 递归的出口 private static int find(int[] temp, int start, int end, int x) { i ...
分类:
编程语言 时间:
2019-03-08 20:51:59
阅读次数:
204
private static final String appcode = "bd6033ccd19d4f7eb06af47df27944a2"; // !!! 替换这里填写你自己的AppCode 请在买家中心查看 @RequestMapping("/logisticsDetail")public ...
分类:
其他好文 时间:
2019-03-08 16:28:59
阅读次数:
163
一、懒汉式,线程安全 这虽然是线程安全的,但是效率低。 二、饿汉式,线程安全 public class Singleton{ //类加载时就初始化 private static final Singleton instance = new Singleton(); private Singleton ...
分类:
其他好文 时间:
2019-03-07 00:58:00
阅读次数:
237