title: "Can't find symbol" error in the java.math.BigInteger class
body: <p>I'm trying to write code for a function that inputs String and returns its remainder when divided by 7 as an 'int'.
  For some reason I'm getting the following error,</p>
  
  <pre><code>    Main.java:16: error: cannot find symbol
          n=java.math.BigInteger.bg.intValue();
                            ^
      symbol:   variable bg
      location: class BigInteger
      1 error
  </code></pre>
  
  <p>My code is as follows,</p>
  
  <pre><code>    /* package whatever; // don't place package name! */
  
      import java.util.*;
      import java.lang.*;
      import java.io.*;
  
      /* Name of the class has to be "Main" only if the class is public. */
      class Ideone
      {
          int remainderWith7(String num)
          {
              // Your code here
              java.math.BigInteger bg=new java.math.BigInteger(num);
              Integer n=java.math.bg.intValue();
              //int n=java.util.Integer.parseInt(num);
              //hello
              return (int)n%7;
          }
          public static void main (String[] args) throws java.lang.Exception
          {
              // your code goes here
              Ideone id=new Ideone();
              id.remainderWith7("10");
          }
      }
  </code></pre>
  
  <p>Please help.
  Thank You.</p>