mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-04 19:31:50 +07:00
14 lines
296 B
Plaintext
14 lines
296 B
Plaintext
class Foo {
|
|
private String firstName;
|
|
<spot>private</spot> Foo(String firstName) {
|
|
this.firstName = firstName;
|
|
}
|
|
|
|
static Foo createFoo(String firstName) {
|
|
return new Foo(firstName);
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
Foo joe = <spot>createFoo("Joe")</spot>;
|
|
}
|
|
} |