摘要:
示例 String json = "{\"resultCode\":\"SUCCESS\",\"resultDesc\":\"SUCCESS\",\"userProfile\":{\"userId\":\"901228507\",\"registTime\":\"20180622161442\",\ 阅读全文
摘要:
代码如下:获取13位时间戳 private static void test14() { System.out.println(System.currentTimeMillis()); System.out.println(Calendar.getInstance().getTimeInMillis 阅读全文
摘要:
代码如下 String[] words = new String[]{"Hello","World"}; List<String[]> a = Arrays.stream(words) .map(word -> word.split("")) .distinct() .collect(toList( 阅读全文
摘要:
代码如下 //设备总数 List<String> strList = devices.stream().map(Device::getDevice_id).collect(Collectors.toList()); //将Object数组转换为String数组 String[] strByte = 阅读全文
摘要:
Double d = Double.parseDouble(object.toString());//转intint intBalance = d==null ? 0 : d.intValue();//转doubleDouble d = Double.parseDouble(object.toStr 阅读全文