摘要: 2.合并处理 阅读全文
posted @ 2017-09-23 13:47 JJLYX 阅读(1070) 评论(0) 推荐(0) 编辑
摘要: 1 public static void main(String[] args){ 2 Scanner scanner = new Scanner(System.in); 3 System.out.println("please enter something:"); 4 String str = scanner.nextLine(); 5 ... 阅读全文
posted @ 2017-09-11 13:45 JJLYX 阅读(385) 评论(1) 推荐(0) 编辑
摘要: System类中的out成员变量是JAVA的标准输出流,out成员变量被定义为final型,无法直接复制,但可以通过setOut方法来设置新的输出流,同理,err和in也可通过setErr()和setIn()来实现重定向功能。 阅读全文
posted @ 2017-09-11 12:04 JJLYX 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1 public static void main(String[] args){ 2 Scanner scanner = new Scanner(System.in); //輸入流扫描器 3 System.out.println("Please enter you tel:"); 4 String line = scanner.nextLine(... 阅读全文
posted @ 2017-09-11 11:50 JJLYX 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 将Map中的参数提取出来,通过Docment封装为XML. 阅读全文
posted @ 2017-09-09 15:37 JJLYX 阅读(679) 评论(0) 推荐(0) 编辑
摘要: /** * @author zyq * 将网络图片进行Base64位编码 * @param imgUrl * */ public static String encodeWebImageToBase64(URL imgUrl){ //传入图片url,将网络图片编码为base64编码 String w 阅读全文
posted @ 2017-09-06 16:16 JJLYX 阅读(861) 评论(0) 推荐(0) 编辑