Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

what is whitespace in java

/* Here is the definition of Whitespace, per https://docs.oracle.com/javase/7/docs/api/java/lang/Character.html#isWhitespace(char) 
Determines if the specified character is white space according to Java. A character is a Java whitespace character if and only if it satisfies one of the following criteria:
It is a Unicode space character (SPACE_SEPARATOR, LINE_SEPARATOR, or PARAGRAPH_SEPARATOR) but is not also a non-breaking space ('u00A0', 'u2007', 'u202F').
It is '	', U+0009 HORIZONTAL TABULATION.
It is '
', U+000A LINE FEED.
It is 'u000B', U+000B VERTICAL TABULATION.
It is 'f', U+000C FORM FEED.
It is '
', U+000D CARRIAGE RETURN.
It is 'u001C', U+001C FILE SEPARATOR.
It is 'u001D', U+001D GROUP SEPARATOR.
It is 'u001E', U+001E RECORD SEPARATOR.
It is 'u001F', U+001F UNIT SEPARATOR.
*/

System.out.println(Character.isWhitespace('
')); // This returns true
Comment

PREVIOUS NEXT
Code Example
Java :: java check if property exists in class 
Java :: Java JTextArea text size 
Java :: reverse java 
Java :: fibonacci series in java 
Java :: JFrame frame = new JFrame (); 
Java :: list of string to string array in java 
Java :: how to get input of local date type java 
Java :: File Appender log4j2.properties spring 
Java :: remove duplicates from string in java 
Java :: java all characters in alphabet order simpler 
Java :: Employee Java. 
Java :: window in java swing 
Java :: java pointer 
Java :: what are abstract methods in java 
Java :: how to convert string to int in java 
Java :: get imei android programmatically android 10 
Java :: use of randomAccessfile() in java 
Java :: java create arraylist with size 
Java :: FlutterSound.java uses or overrides a deprecated API. 
Java :: java checked exception 
Java :: android handler clear message queue 
Java :: android get device hieght 
Java :: framboise bleue ou mure 
Java :: minecraft detect specific item in chest with custom name 
Java :: java require non null 
Java :: android studio Toast usage 
Java :: using a SnackBar on androidstudio 
Java :: javafx list view does not update 
Java :: for loop condition java 
Java :: JFrame change outline 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =