r/learnjava • • 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 :)

https://github.com/chinmay-sawant/FString-For-Java

2 Upvotes

14 comments sorted by

View all comments

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.