Java Integer Create toInteger(String str)

Here you can find the source of toInteger(String str)

Description

Converts a string to a int .

License

Open Source License

Parameter

Parameter Description
str String to convert

Return

The int value represented by the argument in decimal.

Declaration

public static int toInteger(String str) 

Method Source Code

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

public class Main {
    /**/* w w  w .  j  av a 2  s .c  o m*/
     * Converts a string to a {@code int}.
     * 
     * @param str String to convert
     * @return The {@code int} value represented by the argument in decimal.
     */
    public static int toInteger(String str) {
        return Integer.parseInt(str);
    }
}

Related

  1. toInteger(String s)
  2. toInteger(String s)
  3. toInteger(String s, int defValue)
  4. toInteger(String str)
  5. toInteger(String str)
  6. toInteger(String string)
  7. toInteger(String string, Integer deff)
  8. toInteger(String val)
  9. toInteger(String value)