上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 1 // 发现资产主键2 @Id3 @GeneratedValue(generator="system-uuid")4 @GenericGenerator(name="system-uuid",strategy="uuid")5 private Long id;G... 阅读全文
posted @ 2015-07-24 15:47 MyCloud 阅读(11764) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 组织时间差 3 * @tags @return 4 * @exception 5 * @author wanghc 6 * @date 2015-7-22 下午6:49:26 7 * @return String 8 */ 9 private String setDateDiffe... 阅读全文
posted @ 2015-07-24 10:05 MyCloud 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 1 package com.dawning.gridview.app.resourcemanagement.service.servicemanagement.discoverresourceutil; 2 3 public enum MissionStatus { 4 5 STATUS_ISWAI 阅读全文
posted @ 2015-07-06 18:28 MyCloud 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1 List listWithDup = new ArrayList();2 listWithDup.add("1");3 listWithDup.add("2");4 listWithDup.add("3");5 listWithDu... 阅读全文
posted @ 2015-06-30 14:44 MyCloud 阅读(2043) 评论(0) 推荐(0) 编辑
摘要: c语言中基本数据类型int 使用%ddouble/float 使用%fchar 使用%c内存地址使用%p查看内存地址:inta;printf("a的地址是:%p\n", &a);&是C语言中的一个地址运算符,可以用来获取变量的地址intage; scanf("%d", &age);scanf的第1个... 阅读全文
posted @ 2015-06-25 09:59 MyCloud 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-06-25 09:48 MyCloud 阅读(114) 评论(0) 推荐(0) 编辑
摘要: public static boolean isIpv4(String... ipstr){ String regIp = "^([1-9]|[1-9]\\d|1\\d{2}|2[0-1]\\d|22[0-3])(\\.(\\d|[1-9]\\d|1\\d{2}|2[0-4]\\d|2... 阅读全文
posted @ 2015-06-24 15:43 MyCloud 阅读(2219) 评论(0) 推荐(0) 编辑
摘要: import java.io.File;import java.io.FileNotFoundException;import java.io.PrintStream;public class IPTest { public static void main(String[] args) { ... 阅读全文
posted @ 2015-06-24 15:13 MyCloud 阅读(3423) 评论(0) 推荐(1) 编辑
摘要: Math.random() 返回一个0到1之间(包括0,不包括1)的随机浮点数;用n乘以这个随机浮点数,可以得到0到n-1之间的随机数;double a = Math.random(); // 0.4921534576132002int b = (int) (Math.random() * 10)... 阅读全文
posted @ 2015-06-24 14:27 MyCloud 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 数组是一种数据结构,用来存储同一类型数据的集合;核心方法在Arrays类中;Arrays.toString(a);打印数组中的所有值;返回一个字符串,数组元素放置到[]中,并使用逗号分隔开;复制数组int[] a ={1,2,5,3,5,6};int[] b = Arrays.copyOf(a, a... 阅读全文
posted @ 2015-06-24 14:06 MyCloud 阅读(133) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页