Notepad Java Program - Search