In python, the string has a function called title, which causes a text to be like a title. Does it have such a function in Java? If not, how to do it?
Example: "Hi, my name is goku" .title () - > "Hi, My Name Is Goku"
I need this function because I'm working with people's names, and the person's name has to stay that way.
Another example: freterotilda astrobalda - > Freterotilda Astrobalda