Any way to convert a code block into a lamdba?

Answered

Hello,
   There is code like

threadpool.submit(new Runnable() {
   @Override
   public void
run() {
      //Code to run
   }
}

Any way to to automatically convert it lambda like :
threadPool.submit(() -> {     
//Code to run
}
1 comment
Comment actions Permalink

Alt-Enter, Enter ?

You can also do
Alt-Enter, Right, Run inspection on...
to do a mass change.

0

Please sign in to leave a comment.