Monthly Archive: March 2013
In this tutorial we will discussing about the singleton class in the java based on the singleton pattern. Singleton pattern is a design solution where an application wants to have one and only one instance …
Description: This method has followings variants which depends on the passed parameters. This method returns the string representation of the passed argument. valueOf(boolean b): Returns the string representation of the boolean argument. valueOf(char c) : …
Description: This method returns a copy of the string, with leading and trailing whitespace omitted. Syntax: Here is the syntax of this method: public String trim() Parameters: Here is the detail of parameters: NA Return …
Description: This method has two variants. First variant converts all of the characters in this String to upper case using the rules of the given Locale. This is equivalent to calling toUpperCase(Locale.getDefault()). Second variant take …
Description: This method returns itself a string Syntax: Here is the syntax of this method: public String toString() Parameters: Here is the detail of parameters: NA Return Value: This method returns the string itself. Example: …
Description: This method has two variants. First variant converts all of the characters in this String to lower case using the rules of the given Locale. This is equivalent to calling toLowerCase(Locale.getDefault()). Second variant take …
Description: This method converts this string to a new character array. Syntax: Here is the syntax of this method: public char toCharArray() Parameters: Here is the detail of parameters: NA Return Value: It returns a …