Created
September 29, 2022 04:13
-
-
Save hoangbits/3aab4d34ad3befd96a334088cee06539 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
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
class Main { | |
public static void main(String[] args) { | |
String str = "gEeks"; | |
System.out.println(str.charAt(0)); // g | |
System.out.println(str.charAt(1)); // E | |
System.out.println(str.charAt(2)); // e | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment