tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 
 Java > Core > Character > Is Space

Is Space 

The following example shows how to use Character.isSpaceChar() API.

File Name  :  
com/bethecoder/tutorials/core/character/CharIsSpace.java 
Author  :  Sudhakar KV
Email  :  kvenkatasudhakar@gmail.com
   
package com.bethecoder.tutorials.core.character;

public class CharIsSpace {

  /**
   @param args
   */
  public static void main(String[] args) {
    System.out.println(Character.isSpaceChar(' '));
    System.out.println(Character.isSpaceChar('\n'));
    System.out.println(Character.isSpaceChar('\t'));
    System.out.println(Character.isSpaceChar('A'));
  }

}
   

It gives the following output,
true
false
false
false


                    Print

   



Books Recommendation

 
 
bl  br