Java Integer Create toInt(final Object valueRep)

Here you can find the source of toInt(final Object valueRep)

Description

to Int

License

Open Source License

Declaration

public static Integer toInt(final Object valueRep) throws NumberFormatException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static Integer toInt(final Object valueRep) throws NumberFormatException {
        return Integer.parseInt(String.valueOf(valueRep));
    }/*from w w w.  j a va  2 s .co  m*/
}

Related

  1. toInt(final double[] a, final int len)
  2. toInt(final int r, final int g, final int b)
  3. toInt(final long a)
  4. toInt(final long n)
  5. toInt(final Object obj)
  6. toInt(final String s)
  7. toInt(final String str, final int alt)
  8. toInt(final String str, int defaultValue)
  9. toInt(final String string)