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

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(…)