Any way to convert a code block into a lamdba?


   There is code like

threadpool.submit(new Runnable() {
   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.


Please sign in to leave a comment.