I Need to change String : underbar + lowercase = uppercase.(and the opposite)
my_name -> myName
Is there any library or something to help this out?
upper() Return Value upper() method returns the uppercase string from the given string. It converts all lowercase characters to uppercase.
You can use the CaseFormat
class's LOWER_UNDERSCORE
from google Guava :
CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "my_name")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With