Here you can find the source of toInteger(String str)
Parameter | Description |
---|---|
str | String to convert |
public static int toInteger(String str)
//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); } }