question: public void testCompareToDiffSigns1 ( ) { byte aBytes [ ] = { 12 , 56 , 100 , - 2 , - 76 , 89 , 45 , 91 , 3 , - 15 , 35 , 26 , 3 , 91 } ; byte bBytes [ ] = { 10 , 20 , 30 , 40 , 50 , 60 , 70 , 10 , 20 , 30 } ; int aSign = 1 ; int bSign = - 1 ; BigInteger aNumber = new BigInteger ( aSign , aBytes ) ; BigInteger bNumber = new BigInteger ( bSign , bBytes ) ; assertEquals ( 1 , aNumber . compareTo ( bNumber ) ) ; }
target:  compareTo(BigInteger a). Compare two numbers of different signs. The first is positive.