Created
June 19, 2023 02:31
-
-
Save nk4dev/2113977f00c110bde1fbb91f10b939d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UpperCaseTest { | |
public static void main (String[] args) { | |
// toUpperCaseTest | |
String stunum = ""; | |
String upperStunum = stunum.toUpperCase(); | |
System.out.println(upperStunum); | |
// toLowerCaseTest | |
String myName = ""; | |
String lowerStunum = myName.toLowerCase(); | |
System.out.println(lowerStunum); | |
// splitTest | |
String splitTest = ""; | |
String[] strArr = splitTest.split(","); | |
for (String str : strArr) { | |
System.out.println(str); | |
} | |
// join | |
String[] strArr2 = splitTest.split(","); | |
String joinTest = String.join(" ... ", strArr2); | |
System.out.println(joinTest); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment