【Java开源代码栏目提醒】:网学会员,鉴于大家对Java开源代码十分关注,论文会员在此为大家搜集整理了“toLowerCase.java”一文,供大家参考学习!
public class toLowerCase
{
public static void main(String[] args)
{
String str="wAnG"; //定义字符串
String str1=str.toLowerCase();
String str2=str.toUpperCase(); //赋值语句
System.out.println(str1);
System.out.println(str2); //输出结果
}
}