mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
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();
|
|
}
|
|
} |