02 2017 档案
摘要:Lambda个人理解就是使用(能接收外部的什么类型)什么类型,返回什么类型 怎么做只是Lambda的写法 比如以下的例子就是 需要一个接收BufferedReader并返回String的Lambda的例子 既能读取一行记录br.ReaderLine();也能读取两行 br.ReaderLine()+
阅读全文
posted @ 2017-02-23 14:57
jims u
摘要://定义一个apple类public class Apple { public Apple(int welght, String color) { this.color = color; this.welght = welght; } private int welght; private Stri
阅读全文
posted @ 2017-02-22 10:30
jims u
摘要:细说Java之util类: http://www.cnblogs.com/tianguook/archive/2012/02/14/2350845.html 线性表,链表的区别 线性表,链表,哈希表是常用的数据结构,在进行Java开发时,JDK已经为我们提供了一系列相应的类来实现基本的数据结构。这些
阅读全文
posted @ 2017-02-14 14:17
jims u
摘要:SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); df.format(activityInfo.getStartTime())
阅读全文
posted @ 2017-02-03 17:14
jims u
摘要:String time = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));System.out.println(time);
阅读全文
posted @ 2017-02-03 17:09
jims u
摘要:/** * * 响应的XML转换成实体 * * @param resultString * @return */private ResponseReturnEntity getResultEntity(String resultString) { Element root = null; Eleme
阅读全文
posted @ 2017-02-03 17:06
jims u
摘要:int a = (int) (Math.random() * (999 - 100 + 1)) + 100;//生成退款流水号String requestSerialId = "HYTK" + memberId + "VIP" + LocalDateTime.now().format(DateTim
阅读全文
posted @ 2017-02-03 17:05
jims u
摘要:/** * 请求退款URL */@Value("${request.returnpayurl}")private String requestReturnpayurl; //发送退款请求String returnString = postByString(requestReturnpayurl, p
阅读全文
posted @ 2017-02-03 17:04
jims u
摘要:/** * get local ip * * @return */private static String localIP() { Enumeration<NetworkInterface> netInterfaces = null; try { netInterfaces = NetworkIn
阅读全文
posted @ 2017-02-03 17:02
jims u
浙公网安备 33010602011771号