FileDocCategorySizeDatePackage
PalindromeFirst.javaAPI DocExample580Sun Jan 27 13:14:38 GMT 2002None

PalindromeFirst

public class PalindromeFirst extends Object
Find the first integer number that cannot be Palindromified.
author
Ian F. Darwin, ian@darwinsys.com
version
$Id: PalindromeFirst.java,v 1.1 2002/01/27 18:14:39 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;
			}
		}