ืืื ืฉืืืช toLowerCase()?
ืืืชืจืช ืฉืืื
public String toLowerCase()
ืืืขืื ื ืฉืืื
ืื ืื. [ืื ืคืืขื ืืกืืจ ืืืืจ ืืื ืืืืืืื. ืขื ืืืช, ืืฉ ืฆืืจื ืืคืจืืืจ ืืืืกืก ืฉืื ืขืืืจ ืืืื ืคืืกืืง ืืฉื Locale , ืืื ืืืืฅ ืืชืืื ืฉื ืคืืกื ืื.]ืกืื ืืืืจื
ืืืจืืืช ืืืืชืืืช ืงืื ืืช.ืืืืื 1
ืืืื ื ืกืชืื ืขื ืืืืื ืืื ืืืืื ืืืช ืืื ืืืชืจ.public class ToLowerCase {
public static void main(String[] args) {
String myName = "Lubaina Khan";
System.out.println("How do you spell your name? " + myName);
// using toLowerCase() method
System.out.println("May I have a lower case version? " + myName.toLowerCase());
}
}
ืชึฐืคืึผืงึธื
ืืื ืืชื ืืืืืช ืืช ืฉืื? Lubaina Khan ืืื ืืคืฉืจ ืืงืื ืืจืกืช ืืืชืืืช ืงืื ืืช? ืืืืืื ื ืืื
ืืืืื 2
public class ToLowerCase {
public static void main(String[] args) {
String date = java.util.Calendar.getInstance().getTime().toString();
System.out.println("System Date : " + date);
// using toLowerCase() method
System.out.println("[lower case] : " + date.toLowerCase() + "\n");
String paragraph = "This constantly evolving world still needs Java.";
System.out.println("Original Paragraph: " + paragraph);
// using toLowerCase() method
System.out.println("[lower case] : " + paragraph.toLowerCase() + "\n");
String punctuationPara = "Would you like to have some tea, Miss Peterson?";
System.out.println("Punctuation Paragraph: " + punctuationPara);
// using toLowerCase() method
System.out.println("[lower case] : " + punctuationPara.toLowerCase() + "\n");
}
}
ืชึฐืคืึผืงึธื
ืชืืจืื ืืขืจืืช: ืฉืืช ืืืื 24 08:36:01 PKT 2021 [ืืืชืืืช ืงืื ืืช]: ืฉืืช ืืืื 24 08:36:01 pkt 2021 ืคืกืงื ืืงืืจืืช: ืืขืืื ืืืชืคืชื ืื ืืืื ืขืืืื ืืงืืง ื-Java. [ืืืชืืืช ืงืื ืืช]: ืืขืืื ืืื ืฉืืชืคืชื ืื ืืืื ืขืืืื ืฆืจืื ื'ืืืื. ืคืกืงืช ืคืืกืืง: ืืื ืชืจืฆื ืืฉืชืืช ืชื, ืืืก ืคืืืจืกืื? [ืืืชืืืช ืงืื ืืช] : ืืื ืชืจืฆื ืืฉืชืืช ืชื, ืืืจืช ืคืืืจืกืื?
GO TO FULL VERSION