convert string into int or double?
<pre><code>import java.util.Scanner;

public class test1{
    public static void main(String[] args) {

       java.io.File test2 = new java.io.File("test3.txt");

       try
       {
           Scanner input = new Scanner(test2);
           while (input.hasNext()){
              String num = input.nextLine();
              System.out.println(num);
           }
       }  catch (Exception e){
        System.out.println("could not find file");
       }
    }
}  
</code></pre>

<p>I was trying to figure out a way to convert a string into a int. i was inputing a string that looks like 0000100001000010000001100000</p>
