import java.util.Arrays;
class Example
{
System.
out.
println("strings = " + Arrays.
toString(strings
)); // Obviously, in the normal case, a constructor actually does something
// with the parameters...
}
static Example create
(String...
strings) { return new Example(strings);
}
public static void main
(String[] args
) {
Example e = Example.create("a", "b", "c");
}
}
aW1wb3J0IGphdmEudXRpbC5BcnJheXM7CgpjbGFzcyBFeGFtcGxlCnsKICAgIEV4YW1wbGUoU3RyaW5nLi4uIHN0cmluZ3MpIHsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oInN0cmluZ3MgPSAiICsgQXJyYXlzLnRvU3RyaW5nKHN0cmluZ3MpKTsKICAgICAgICAvLyBPYnZpb3VzbHksIGluIHRoZSBub3JtYWwgY2FzZSwgYSBjb25zdHJ1Y3RvciBhY3R1YWxseSBkb2VzIHNvbWV0aGluZwogICAgICAgIC8vIHdpdGggdGhlIHBhcmFtZXRlcnMuLi4KICAgIH0KCiAgICBzdGF0aWMgRXhhbXBsZSBjcmVhdGUoU3RyaW5nLi4uIHN0cmluZ3MpIHsKICAgICAgICByZXR1cm4gbmV3IEV4YW1wbGUoc3RyaW5ncyk7CiAgICB9CgogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykKICAgIHsKICAgICAgICBFeGFtcGxlIGUgPSBFeGFtcGxlLmNyZWF0ZSgiYSIsICJiIiwgImMiKTsKICAgIH0KfQ==