![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
yang呜呜
这个作者很懒,什么都没留下…
展开
-
java字符串除法
import java.math.BigDecimal;public class Stringcf { public static void main(String[] args) { String str1 = "1"; String str2 = "4"; //yang //String jieguo = ""; //dou原创 2017-07-03 14:18:56 · 9432 阅读 · 1 评论 -
date转String 并且格式化
public String Dategsh { Date date = new Date(); SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd"); return f.format(date);}原创 2017-07-21 10:32:45 · 1175 阅读 · 0 评论 -
java 生成六位验证码
public String getRandNum(int charCount) { String charValue = ""; for (int i = 0; i char c = (char) (randomInt(0, 10) + '0'); charValue += String.valueOf(c)转载 2017-07-21 11:29:30 · 543 阅读 · 0 评论 -
java保留两位小数
DecimalFormat myformat = new DecimalFormat(); myformat.applyPattern("#.00"); System.out.println(myformat.format(33333.22));//33333.22System.out.println(myformat.format(33333.2));//33333.20Sy转载 2017-07-21 11:36:21 · 228 阅读 · 0 评论 -
格式化为两位小数
import Java.math.BigDecimal;import java.text.DecimalFormat;import java.text.NumberFormat;public class format { double f = 111231.5585; public void m1() { BigDecimal bg = new转载 2017-07-21 11:38:49 · 330 阅读 · 0 评论 -
java常用小方法
http://blog.csdn.net/o9109003234/article/details/27371623转载 2017-07-21 11:47:16 · 241 阅读 · 0 评论 -
spring cxf
beans.xml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.spr原创 2017-11-25 10:10:20 · 168 阅读 · 0 评论 -
cxf client
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework原创 2017-11-25 15:36:47 · 418 阅读 · 0 评论