mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 10:51:06 +07:00
13 lines
266 B
Java
13 lines
266 B
Java
// "Replace with new Thread(() -> {…})" "false"
|
|
public class Main {
|
|
public void testThread() {
|
|
new <caret>Thread() {
|
|
int x = 5;
|
|
|
|
@Override
|
|
public void run() {
|
|
System.out.println("Hello from thread! "+x);
|
|
}
|
|
}.start();
|
|
}
|
|
} |