Code example for NumberFormat

Methods: setGroupingUsedsetMinimumIntegerDigits

0
 
public class TestMRFieldSelection extends TestCase {
 
private static NumberFormat idFormat = NumberFormat.getInstance();
  static { 
    idFormat.setMinimumIntegerDigits(4);
    idFormat.setGroupingUsed(false);
  } 
 
  public void testFieldSelection() throws Exception { 
    launch(); 
  } 
  private static Path testDir = new Path(
    System.getProperty("test.build.data", "/tmp"), "field");
   
  public static void launch() throws Exception { 
    Configuration conf = new Configuration();
    FileSystem fs = FileSystem.get(conf);
    int numOfInputLines = 10;
 
Contextual code suggestions in your IDE  Get Codota for Java