What does it mean to "insert data into Notepad"? Do you want to create a text file that can be edited in Notepad? While there are ways to use
JDBC to insert data into an Excel file, AFAIK, the same isn't true for text files. But you can use the classes in the java.io package to create and write to text files.