Here you can find the source of convertStringToInteger(String num)
public static int convertStringToInteger(String num)
//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; } }