Alright, say you have a string you want to format, for example "this is a string by %s and %s" and this will do the job just fine if i format it for example with "John" and "Abby" but, what if instead, I want to type "Abby" and then "John", I can do it, its just not pretty and will look something like this: "this is a string by %2$s and %1$s" followed by the formatting of "John", "Abby" and it will format it however I want, but the problem with this is its a lot of work (in large files, that are formatted only in runtime with multiple variables) to make sure everything is correct. my question is this, is there a way to have it work in a "prettier" way? for example C#'s formatting is done with "{0}, {1}" which is a million times better than Java's.
I have tried a replacer with regex to replace "{0}" to, for example, "%1$s". if somebody has a solution to this problem it would help me and will be appreciated. thanks in advance