mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
14 lines
295 B
Java
14 lines
295 B
Java
class Test {
|
|
void test(String s) {
|
|
final String x;
|
|
if (s == null) {
|
|
x = "";
|
|
} else {
|
|
String temp = s.trim();
|
|
x = temp.substring(1);
|
|
}
|
|
final String y = x.replace("foo", "bar");
|
|
System.out.println(x);
|
|
}
|
|
}
|