php    php100   android
當前位置:首頁 » Java基礎 »

Java - isLowerCase() Method 評論   編輯

Description:

The method determines whether the specified char value is lowercase.

Syntax:

boolean isLowerCase(char ch)

Parameters:

Here is the detail of parameters:

  • ch -- Primitive character type

Return Value:

  • This method Returns true if passed character is really an lowercase.

Example:

public class Test{

   public static void main(String args[]){
      System.out.println(Character.isLowerCase('c'));
      System.out.println(Character.isLowerCase('C'));
      System.out.println(Character.isLowerCase('\n'));
      System.out.println(Character.isLowerCase('\t'));
   }
}

This produces following result:

true
false
false
false

貢獻/合作者

正在開放中...
 

評論(0條)

  • 還冇有評論!