How would i make a java program find and delete all the files in my computer that have the extension: .jar?
I have the command:
find . -type f -name "*.jar" -exec rm -i {} \;
I know how to execute commands, but i don't know how to tell it to execute this command.