Java atoi atoi(final String str, final int def)

Here you can find the source of atoi(final String str, final int def)

Description

atoi

License

Open Source License

Declaration

public static int atoi(final String str, final int def) 

Method Source Code

//package com.java2s;

public class Main {
    public static int atoi(final String str, final int def) {
        try {/* ww w.j  av a  2 s  .c  o  m*/
            return Integer.parseInt(str);
        } catch (final Exception ex) {
            ex.printStackTrace();
        }
        return def;
    }
}

Related

  1. atoi(byte[] s)
  2. atoi(byte[] s, int offset)
  3. atoi(final String s, final int base)
  4. atoi(final String s, final int def)
  5. atoi(Object s)
  6. atoi(String s)
  7. atoi(String s)
  8. atoi(String s)