Dealing with numbers that are too large for int in Java
<p>So I am trying to parse a string containing a number too large for Int storage. But I need the value of the string because I am dividing it. Can I parse the string into a Long?</p>

<pre><code>n = Long.parseLong(string);
</code></pre>

<p>like that? Or is there a way I can divid the string by a number without having to turn the string into a number? The code I am using is like this:</p>

<pre><code>private static String getFinished(String x, int y){
    int word = Integer.parseInt(x);
    word = word/y;
</code></pre>

<p>And the number I am using is: 1980715126555015951540148577071512651650
But I could potentially be using numbers even longer.</p>