Created
June 12, 2014 19:20
-
-
Save meyerzinn/de03f88099ea36b9c735 to your computer and use it in GitHub Desktop.
String Functions
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
package jcamp; | |
import java.util.Arrays; | |
public class StringFunctions { | |
public static void main(String[] args) { | |
String str = new String("Hello!"); | |
char[] chars = str.toCharArray(); | |
System.out.println("Original: " + str); | |
str = str.toLowerCase(); | |
System.out.println("toLowerCase(): " + str); | |
str = str.toUpperCase(); | |
System.out.println("toUpperCase(): " + str); | |
System.out.println("toCharArray(): " + Arrays.toString(chars)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment