First of all, you need Notepad to just write the code and Java to compile/run.
IMHO, I think if you just do a search on your own you should be able to find lots of tutorials for getting started with Java :)
I recommend you to go through some good tutorials/books so that you get a good understanding of the language.
But just to answer your question, you can go through the below link to create a program in Notepad, compile and run it:
http://www.skylit.com/javamethods/faqs/javaindos.html
You can create simple Java programs using Notepad if you are just getting started or trying things. But it's recommended to use a good IDE like IntelliJ, Eclipse, etc if you are into serious programming as they provide you tons of features.