mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
22 lines
533 B
Java
22 lines
533 B
Java
class Test {
|
|
|
|
void test(String[] args) {
|
|
String x = "one";
|
|
String y = "two";
|
|
String sample = "sample string";
|
|
extracted(args[0], sample);
|
|
System.out.println();
|
|
extracted(args[1], sample);
|
|
System.out.println();
|
|
extracted("one", sample);
|
|
extracted("two", sample);
|
|
}
|
|
|
|
private void extracted(String args, String sample) {
|
|
checkString(args, sample);
|
|
}
|
|
|
|
boolean checkString(String one, String two) {
|
|
return one.equals(two);
|
|
}
|
|
} |