23.11.2017 Views

java_tutorial

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Java<br />

Example<br />

public class Test {<br />

}<br />

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

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

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

}<br />

This will produce the following result:<br />

false<br />

true<br />

Java – isWhitespace() Method<br />

Description<br />

The method determines whether the specified char value is a white space, which includes<br />

space, tab, or new line.<br />

Syntax<br />

boolean isWhitespace(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 a white space.<br />

119

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

Saved successfully!

Ooh no, something went wrong!