[Solved] Java and incrementing strings
You can’t apply the ++ operator to a string, but you can implement this logic yourself. I’d go over the string from its end and handle each character individually until I hit a character that can just be incremented simply: public static String increment(String s) { StringBuilder sb = new StringBuilder(s); boolean done = false; … Read more