Java Number Format formatInt(String number)

Here you can find the source of formatInt(String number)

Description

format Int

License

Apache License

Declaration

public static int formatInt(String number) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int formatInt(String number) {
        try {// w w  w . ja va 2  s  .  c  o  m
            return new Integer(number);
        } catch (Exception e) {
        }
        return -1;
    }
}

Related

  1. formatCardNumber(String cardNumber)
  2. formatCCNumber(String f, String s)
  3. formatCsv(final Number number)
  4. formatFolioNumber(Integer folioNum, String folioMod)
  5. formatFromCurrentPageIndex(int nbItemsPerPage, int totalNumberOfItems, int indexOfCurrentPage)
  6. FormatIntNoWithZero(int pNumber, int tolLen)
  7. formatLineNumber(String lineNumber)
  8. formatMs(long number)
  9. formatNationalNumber(String nationalNumber)