Example usage for java.text NumberFormat INTEGER_FIELD

List of usage examples for java.text NumberFormat INTEGER_FIELD

Introduction

In this page you can find the example usage for java.text NumberFormat INTEGER_FIELD.

Prototype

int INTEGER_FIELD

To view the source code for java.text NumberFormat INTEGER_FIELD.

Click Source Link

Document

Field constant used to construct a FieldPosition object.

Usage

From source file:TempConverter3.java

public TempConverter3() {
    super();/*ww  w.  j  a  v  a 2  s.c  om*/
    dff = new DecimalFormat("#0.0");
    fp = new FieldPosition(NumberFormat.INTEGER_FIELD);
}