Java String to Int convertStringToInteger(String num)

Here you can find the source of convertStringToInteger(String num)

Description

convert String To Integer

License

Open Source License

Declaration

public static int convertStringToInteger(String num) 

Method Source Code

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

public class Main {
    public static int convertStringToInteger(String num) {
        int val = 0;
        if (num != null) {
            val = Integer.parseInt(num);
        }/*  www  .j av  a2 s.c  om*/
        return val;
    }
}

Related

  1. convertStringToInt(final String str)
  2. convertStringToInt(final String strNumber)
  3. convertStringToInt(String number)
  4. convertStringToInt(String str)
  5. convertStringToInt(String value)
  6. convertStringToInteger(String s)
  7. convertStringToInteger(String s)
  8. convertStringToInteger(String string)
  9. convertStringToInteger(String strParaConvert)