mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
18 lines
465 B
Java
18 lines
465 B
Java
class Test {
|
|
|
|
void test(String[] args) {
|
|
String x = "one";
|
|
String y = "two";
|
|
String sample = "sample string";
|
|
<selection>checkString(args[0], sample);</selection>
|
|
System.out.println();
|
|
checkString(args[1], sample);
|
|
System.out.println();
|
|
checkString("one", sample);
|
|
checkString("two", sample);
|
|
}
|
|
|
|
boolean checkString(String one, String two) {
|
|
return one.equals(two);
|
|
}
|
|
} |