title: How many characters can a Java String have?
body: <p>I'm trying <a href="http://www.spoj.com/problems/PALIN/" rel="noreferrer">The Next Palindrome</a> 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's functions for reversing Strings, but would they allow for a String to be this long?   </p>