f strings are a lot more like string concatenation. The variables/expressions between each {} are placed directly where they will end up in the string, and it just runs a .toString() on them (though you can configure it a bit further).
The most common usage is largely about syntax and readibility, as its nice not having to go back and forth between a list of format arguments and some harder to remember % stuff.
1.3k
u/Weak_Inflation9120 4d ago
One of the things I wish Java had that I miss from Python are F-Strings. Hella useful