I'm New to java, and have been trying out different things in learning, but recently I ran into this error
error: cannot find symbol
I've searched for answers on google but I still am not able to fully grasp the problem and it's solution. Maybe more experienced people here can help me out.
This is the code that I've been trying to run:
public class simple
{
public static void main(String arg[])
{
BigInteger largeValue= new BigInteger(Integer.MAX_VALUE +1);
for( int i=0; i < 4 ; i++)
{
System.out.println(largeValue);
largeValue = largeValue.add(BigInteger.ONE);
}
}
}
This is the error that I'm getting:
simple.java:5: error: cannot find symbol
BigInteger largeValue= new BigInteger(Integer.MAX_VALUE +1);
^
symbol: class BigInteger
location: class simple
simple.java:5: error: cannot find symbol
BigInteger largeValue= new BigInteger(Integer.MAX_VALUE +1);
^
symbol: class BigInteger
location: class simple
simple.java:9: error: cannot find symbol
largeValue = largeValue.add(BigInteger.ONE);
^
symbol: variable BigInteger
location: class simple
3 errors