07 2016 档案

摘要:1:主方法 package com.baidu; import java.text.NumberFormat;import java.util.ArrayList;import java.util.Stack; public class CalculateStack { static private 阅读全文
posted @ 2016-07-18 16:41 Sunray0330 阅读(1121) 评论(0) 推荐(0) 编辑
摘要:1:使用js编码 var value=window.encodeURI(window.encodeURI(strValue)); 2:Java类中解码。 String str=URLDecoder.decode(value,"UTF-8"); 阅读全文
posted @ 2016-07-18 08:37 Sunray0330 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-07-15 14:42 Sunray0330 阅读(108) 评论(0) 推荐(0) 编辑
摘要:Integer douVal=20; double parseDouble = Double.parseDouble(douVal.toString()); System.out.println(parseDouble); 阅读全文
posted @ 2016-07-13 14:52 Sunray0330 阅读(1153) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-07-07 11:51 Sunray0330 阅读(96) 评论(0) 推荐(0) 编辑
摘要:查看mysql版本的四种方法 1:在终端下:mysql -V。 以下是代码片段: [shengting@login ~]$ mysql -V mysql Ver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686) 2:在mysql中:mysql> st 阅读全文
posted @ 2016-07-07 11:45 Sunray0330 阅读(247) 评论(0) 推荐(0) 编辑
摘要:1:正则表达式 public static void main(String[] args) { String str = "123456456456456456"; boolean isNum = str.matches("[0-9]+"); System.out.println(isNum); 阅读全文
posted @ 2016-07-07 11:02 Sunray0330 阅读(462) 评论(0) 推荐(0) 编辑
摘要:public class TestDemo { public static void main(String[] args) { BigDecimal dataValue = new BigDecimal(200); BigDecimal data=new BigDecimal(1); BigDec 阅读全文
posted @ 2016-07-07 08:32 Sunray0330 阅读(296) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示