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 :)
1
u/istarian Jul 06 '22 edited Jul 06 '22
https://dzone.com/articles/java-string-formatting
https://docs.oracle.com/javase/8/docs/api/java/util/Formatter.html
If you want to convert a class instance to a String, then implement/use the toString method.