Does Integer.valueOf() in java translate to int.Parse() in C#?
<p>I am trying to learn java from a C# background! I have found some nuances during my journey like C# doesn't have an Integer as reference type it only has int as a primitive type; this lead me to a doubt if this translation would be correct! </p>

<pre><code>  String line ="Numeric string";//Java
  string line = "Numeric string";//C#
  int size;

  size = Integer.valueOf(line, 16).intValue(); //In Java

  size = int.Parse(line,System.Globalization.NumberStyles.Integer);//In C#
</code></pre>
