forked from jvm-coder/Java_Programs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathString to LowerCase.java
More file actions
32 lines (24 loc) · 838 Bytes
/
String to LowerCase.java
File metadata and controls
32 lines (24 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Initial template for Java
import java.util.*;
import java.io.*;
class GFG {
public static void main(String args[]) throws IOException {
BufferedReader read =
new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter no of words you want to check");
int t = Integer.parseInt(read.readLine());
while (t-- > 0) {
System.out.println("Enter Word to conver to lowercase");
String S = read.readLine();
Solution ob = new Solution();
System.out.println(ob.toLower(S));
}
}
}// } Driver Code Ends
// User function template for Java
class Solution {
static String toLower(String S) {
String S1=S.toLowerCase();
return S1;
}
}