I'm a first year CS student and would like some help with some code i'm writting. We are just starting to learn java and this will be the first proper language i've learned, since PHP doesn't really count

so please be gentle.
We wrote the following program.
//This program is called GreatDivisor and it should take two integers and return their greatest common divisor.
class GreatDivisor
{
public static int computeGCD(int a, int b)
{
while (b != 0)
{
int c = a % b;
a = b;
b = c;
}
int gdc = a;
return gdc;
}
public static void main(String[] args)
{
int a = Integer.parseInt(args[0]);
int b = Integer.parseInt(args[1]);
System.out.print("The Greatest Common Divisor For The Specified Number Is ");
System.out.println(computeGCD(a,b));
}
}
However the extension of the question is to convert the Integer stuff to use java.math.BigInteger. Having looked and the Java API
documentation i can't make much sense of how the hell this works. i know i can't use the ordinary operators cos they give me compiler errors which makes sense. But the operators for in the documentation appear to be methods and it won't let me apply these methods. Something about them not being able to applied to static methods.
Heres what i've managed so far, but it doesn't compile.
//This program is called GreatDivisor and it should take two integers and return their greatest common divisor.
import java.math.BigInteger;
class GreatDivisor
{
public static void main(String[] args)
{
BigInteger a = Integer.parseInt(args[0]);
BigInteger b = Integer.parseInt(args[1]);
System.out.print("The Greatest Common Divisor For The Specified Number Is ");
System.out.println(BigInteger.gcd(BigInteger.abs(a ),BigInteger.abs(b)));
}
}
If anyones got a minute to help me out then i would be very greatful.
thanks in advance.