2-Wirte what you want to print with java syntext 3-Open cmd and go to that directory in which your file is present ...