This is a sample code of a Virus and Anti Virus implemented in Java Language.
Screenshot of a spawned screen
This Virus spawns multiple screens just like this (10 default screens)
Antivirus lets you choose the path to scan the files
Then it shows you the files that contains viruses and give you the ability to delete them with a buttom, it also lists what harmfull orders they contain