# static 메서드
class StringUtils:
    @staticmethod
    def toCamelcase(text):
        words = iter(text.split("_"))
        return next(words) + "".join(i.title() for i in words)

    @staticmethod
    def toSnakecase(text):
        letters = ["_" + i.lower() if i.isupper() else i for i in text]
        return "".join(letters).lstrip("_")


print(StringUtils.toCamelcase("last_modified_date"))
print(StringUtils.toSnakecase("lastModifiedDate"))
