r/learnjava • u/chinmay06 • Jul 06 '22
F string For Java
Hello Everyone,
I Have created F string for java using reflection api.
Kindly check the below utility.
All contributions will help.
Thanks :)
2
Upvotes
r/learnjava • u/chinmay06 • Jul 06 '22
Hello Everyone,
I Have created F string for java using reflection api.
Kindly check the below utility.
All contributions will help.
Thanks :)
2
u/istarian Jul 06 '22
You might want to use regex patten matching for getFString method. That way you can just match on something like [a-zA-Z]* for alphabetic characters.
It’s also relatively easy to use String.replace(…)