FileDocCategorySizeDatePackage
PalindromeFirst.javaAPI DocExample588Sun Feb 08 21:33:58 GMT 2004None

PalindromeFirst

public class PalindromeFirst extends Object
Find the first integer number that cannot be Palindromified.
author
Ian F. Darwin, http://www.darwinsys.com/
version
$Id: PalindromeFirst.java,v 1.2 2004/02/09 03:33:57 ian Exp $

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)

		int numErrors = 0;
		Palindrome.verbose = false;
		for (int i=0; i<Long.MAX_VALUE; i++) {
			try {
				Palindrome.findPalindrome(i);
			} catch (RuntimeException ex) {
				System.out.println("Caught exception on " + i + ": " + ex);
				numErrors = numErrors + 1;
				if (numErrors > 200)
					return;
			}
		}