Tag: file
-
How to move a file/folder to trash/Recyclebin in Java?
Let’s say you want to move a file or a folder to the recycle bin using java and not delete it permanently. How can you do it? Starting Java 9 , you can do it using a single line of code: Here is a demo: I created a file under C:/files location using the below…