This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
If i have a number, make it a string, and then take a sub string of it i.e int i=423; String iVal=""+i; String subval=iVal.substring(1,2); I now should have a substring with 4 My question is, i am not sure of the syntax used to "parse" something to something else. If I want to parse this substring "subval" to an integer I know I do <i>something</i> like this: int subval=Integer.parseInt(subval); but I am not sure of the exact syntax