forked from badal74/java-codes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuestion41.java
More file actions
22 lines (16 loc) · 479 Bytes
/
Copy pathQuestion41.java
File metadata and controls
22 lines (16 loc) · 479 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//How to convert all char in string lower case in java Program
import java.util.*;
// Main class
class GFG {
// Main driver method
public static void main(String args[])
{
// Custom input string
String s = "Geeks for Geeks";
// Converting string s to lowercase letter
String s2 = s.toLowerCase();
// Printing the lowercase string corresponding
// to input string
System.out.println(s2);
}
}