public static void main(String[] args){
		//most # of digits is 6 aka /100,000
		int largest = 0;
		//multiply all 3 digit numbers togeather, and test them if they are a palindrome, then compare the palindrome numbers
		for(int i = 100; i<=999; i++){
			for(int j = 100; j<= 999; j++){
				int mynum = i*j;
				if(isPal(mynum)){	
					if(mynum > largest){	//largest palindrome
						largest = mynum;
					}
				}
			}
		}
		
		System.out.println(largest);	//answer
		return;
	}