I\'m trying The Next Palindrome problem from Sphere Online Judge (SPOJ) where I need to find a palindrome for a integer of up to a million digits. I thought about using Java
Have you considered using BigDecimal instead of String to hold your numbers?
BigDecimal
String