[Solved] how to increment value of string variable?
A little bit simpler : public class Count { private static int count = 0; // resets the value to 0 public static void reset() { count = 0; } // updates the value public static String update() { count++; if(count == 1000) count = 1; return String.format(“%03d”, count); } // main() is used for … Read more