Java – String Class and its methods explained with examples