Java字符类isLowerCase()方法与示例
字符类isLowerCase()方法 (Character class isLowerCase() method)
isLowerCase() method is available in java.lang package.
isLowerCase()方法在java.lang包中可用。
isLowerCase() method is used to check whether the given char value is lowercase or not.
isLowerCase()方法用于检查给定的char值是否为小写。
isLowerCase() method does not throw an exception at the time of checking the given char value is lowercase or not.
在检查给定的char值是否为小写时, isLowerCase()方法不会引发异常。
Syntax:
句法:
public boolean isLowerCase (Char value);
Parameter(s):
参数:
Char value – represents the char value to be checked.
字符值 –表示要检查的字符值。
Return value:
返回值:
The return type of this method is boolean, it returns a boolean value based on the following cases,
此方法的返回类型为boolean ,它基于以下情况返回布尔值:
It returns true, if the given char value is lowercase.
如果给定的char值为小写,则返回true 。
It returns false, if the given char value is not in lowercase.
如果给定的char值不是小写,则返回false 。
Example:
例:
// Java program to demonstrate the example
// of boolean isLowerCase (Char value) method of Character class
public class IsLowerCaseOfCharacterClass {public static void main(String[] args) {// It returns false because the passing character is
// not in LowerCase
boolean result1 = Character.isLowerCase('P');
// It returns true because the passing character is
// in LowerCase
boolean result2 = Character.isLowerCase('p');
// Display values of result1 , result2
System.out.println("Character.isLowerCase('P'): " + result1);
System.out.println("Character.isLowerCase('p'): " + result2);
}
}
Output
输出量
Character.isLowerCase('P'): false
Character.isLowerCase('p'): true
翻译自: https://www.includehelp.com/java/character-class-islowercase-method-with-example.aspx
Java字符类isLowerCase()方法与示例相关推荐
- java字符类型的返回值,Java字符类isWhitespace()方法及示例
Character 类isWhitespace()法isWhitespace()方法在java.lang包中可用. isWhitespace()方法用于检查给定的char值是否为空格,但是它包含空格中 ...
- java annotation class,Java Class类 isAnnotation()方法及示例
Class类isAnnotation()方法isAnnotation()方法在java.lang包中可用. isAnnotation()方法用于检查此Class对象是否表示注释类型. isAnnota ...
- java日历类add方法_Java日历computeTime()方法及示例
java日历类add方法 日历类computeTime()方法 (Calendar Class computeTime() method) computeTime() method is availa ...
- java日历类add方法_Java日历computeFields()方法及示例
java日历类add方法 日历类的computeFields()方法 (Calendar Class computeFields() method) computeFields() method is ...
- java日历类add方法_Java日历setFirstDayOfWeek()方法与示例
java日历类add方法 日历类setFirstDayOfWeek()方法 (Calendar Class setFirstDayOfWeek() method) setFirstDayOfWeek( ...
- java日历类add方法_Java日历setMinimalDaysInFirstWeek()方法与示例
java日历类add方法 日历类setMinimalDaysInFirstWeek()方法 (Calendar Class setMinimalDaysInFirstWeek() method) se ...
- Java——String类的方法
Java--String类的方法 String str1 = "abc" 与String str2 = new String("abc")有什么区别? 字符串常 ...
- java散列法的运用实例,Java HashMap compute() 使用方法及示例
Java HashMap compute() 使用方法及示例 Java HashMap compute()方法计算一个新值,并将其与哈希映射中的指定键相关联. compute()方法的语法为: has ...
- java播放声音类和一个简单示例
java播放声音类和一个简单示例 播放声音的类 复制代码 代码如下: import java.io.File; import java.io.IOException; import javax.so ...
最新文章
- Python笔记-相关性分析(连续变量和分类变量)
- 深度学习(五十二)变分贝叶斯自编码器(下)
- easyui结合java,Spring+SpringMVC+MyBatis+easyUI整合基础篇(二)牛刀小试
- 资源---2020考研---英语网站---资料3(考研英语,英语学习。宣言:自从用了这个英语网站,七大姑八大姨开始担心他家孩子比不过我了~~~~~~~~~FT中文网)
- 计算机网络职业生涯规划1000字,计算机专业职业生涯规划1000字
- css3线性渐变怎么写,CSS3线性渐变指南
- 清华计算机自主招生试题,2018清华大学自主招生试题.pdf
- unity 如何开发手机App
- python3+selenium3+IE自动化遇IE11下载弹窗遇阻
- 最好用的 6 款 Vue 实时消息提示通知(Message/Notification)组件推荐与测评
- 计算机教育中缺失的一课 - MIT - L5 - 命令行环境
- 高通新 CEO 上任,高调放话对标苹果 M1!
- be going to用法口诀
- 服务注册中心之Eureka简介及原理
- Google 天气预报 API
- 怎么手工解决DRA中的failure?
- 黑马程序员--黑马程序员CEO方立勋致全体员工和同学们的公开信
- APP实现接收蓝牙数据并动态绘图
- n个a和m个b的排列
- vim编辑器常用命令介绍
热门文章
- as400和java的区别_文件传输协议和AS400
- oracle高水位线
- Consider defining a bean of type ‘java.lang.String‘ in your configuration
- MySQL Cluster 群集安装环境介绍
- MIP 与 AMP 合作进展(3月7日)
- C# Collection was modified;enumeration operation may not execute
- 一张图理解JS的原型(prototype、_proto_、constructor的三角关系)
- Spark 独立部署模式
- http缓存机制之304状态码
- iOS开发-自定义UIAlterView(iOS 7)