blah
Java
code posted
by
ed
created at 29 Apr 11:24, updated at 29 Apr 11:24
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 |
object ThreadsCreation extends App { class MyThread extends Thread { override def run(): Unit = { println("New thread running.") } } val t = new MyThread t.start() t.join() println("New thread joined.") } |
240 Bytes in 8 ms with coderay