mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
17 lines
384 B
Java
17 lines
384 B
Java
// "Replace with 'StandardCharsets.US_ASCII'" "true"
|
|
import java.io.*;
|
|
|
|
class Test {
|
|
void test(String s) {
|
|
byte[] bytes = null;
|
|
try {
|
|
string = s.getBytes("US-<caret>ASCII");
|
|
}
|
|
catch (UnsupportedEncodingException | StackOverflowError exception) {
|
|
exception.printStackTrace();
|
|
}
|
|
if(bytes[0] == 'a') {
|
|
System.out.println("A-a-a!");
|
|
}
|
|
}
|
|
} |