-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStringCaseChange.java
More file actions
23 lines (23 loc) · 1.17 KB
/
StringCaseChange.java
File metadata and controls
23 lines (23 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.util.Scanner;
import microUtil.morphCase;
public class StringCaseChange {
private static Scanner scan = new Scanner (System.in);
private static morphCase normalCase;
public static void main (String[] args) {
System.out.print("Enter String : ");
normalCase = new morphCase(scan.nextLine());
System.out.println("toUpperCase : "+ normalCase.toUpperCase());
System.out.println("toLowerCase : "+ normalCase.toLowerCase());
System.out.println("toCamelCase : "+ normalCase.toCamelCase());
System.out.println("toTitleCase : "+ normalCase.toTitleCase());
System.out.println("toConstantCase : "+ normalCase.toConstantCase());
System.out.println("toDotCase : "+ normalCase.toDotCase());
System.out.println("toHeaderCase : "+ normalCase.toHeaderCase());
System.out.println("toParamCase : "+ normalCase.toParamCase());
System.out.println("toPascalCase : "+ normalCase.toPascalCase());
System.out.println("toPathCase : "+ normalCase.toPathCase());
System.out.println("toSnakeCase : "+ normalCase.toSnakeCase());
System.out.println("toPercentCase : "+ normalCase.toPercentCase());
System.out.println("toInvertCase : "+ normalCase.toInvertCase());
}
}