23.11.2017 Views

java_tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Java<br />

Example<br />

public class Test{<br />

}<br />

public static void main(String args[]){<br />

System.out.println(Character.toLowerCase('c'));<br />

System.out.println(Character.toLowerCase('C'));<br />

}<br />

This will produce the following result:<br />

c<br />

c<br />

Java – toString() Method<br />

Description<br />

This method returns a String object representing the specified character value, that is, a<br />

one-character string.<br />

Syntax<br />

String toString(char ch)<br />

Parameters<br />

Here is the detail of parameters:<br />

<br />

ch -- Primitive character type.<br />

Return Value<br />

<br />

This method returns String object.<br />

124

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!