25.02.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 />

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

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

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

}<br />

}<br />

System.out.println(Character.isWhitespace('\n'));<br />

System.out.println(Character.isWhitespace('\t'));<br />

This will produce the following result:<br />

false<br />

true<br />

true<br />

true<br />

Java – isUpperCase() Method<br />

Description<br />

This method determines whether the specified char value is uppercase.<br />

Syntax<br />

boolean isUpperCase(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 true, if the passed character is really an uppercase.<br />

120

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

Saved successfully!

Ooh no, something went wrong!