mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 06:05:50 +07:00
GitOrigin-RevId: 3aae5c738d48c38144f6a78c36738121831ae5a5
15 lines
365 B
Java
15 lines
365 B
Java
public class Test {
|
|
public static void main(String[] args) {
|
|
final String s = "dude";
|
|
newMethod(s);
|
|
}
|
|
|
|
private static void newMethod(final String s) {
|
|
Runnable runnable = new Runnable() {
|
|
public void run() {
|
|
System.out.println(s);
|
|
}
|
|
};
|
|
new Thread(runnable).start();
|
|
}
|
|
} |