⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 formattest.java

📁 一个java工作流引擎
💻 JAVA
字号:
package org.jbpm.web.formgen;

import java.text.*;

import junit.framework.*;

public class FormatTest extends TestCase {

  
  public void testFormats() throws ParseException {
    DecimalFormat format = new DecimalFormat( "0.#####################");

    System.out.println( format.format( 0.0 ) );
    System.out.println( format.format( 1000 ) );
    System.out.println( format.format( -1000 ) );
    System.out.println( format.format( 0.9237432 ) );
    System.out.println( format.format( 2342323.9237432 ) );

    System.out.println( format.parse( "0.0" ) );
    System.out.println( format.parse( "1000" ) );
    System.out.println( format.parse( "-1000" ) );
    System.out.println( format.parse( "0.9237432" ) );
    System.out.println( format.parse( "2342323.9237432" ) );
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -