mirror of
https://github.com/github/codeql.git
synced 2026-05-20 22:27:18 +02:00
14 lines
379 B
Java
14 lines
379 B
Java
public static void printAllCharInts(String s) {
|
|
if (s != null) {
|
|
for (int i = 0; i < s.length(); i++) {
|
|
System.out.println(s.charAt(i) + "=" + (int) s.charAt(i));
|
|
}
|
|
}
|
|
}
|
|
public static void printCharacterCodes_Good(String[] strings) {
|
|
if (strings != null) {
|
|
for(String s : strings){
|
|
printAllCharInts(s);
|
|
}
|
|
}
|
|
} |