don' type file extension after the filename the insertsort program should runand you'll see text display of unsorted and sorted data in some example programs you'll see prompt inviting you to enter inputwhich you type at the keyboard compiling the example programs you can experiment with the example programs by modifying them and then compiling and running the modified versions you can also write your own applications from scratchcompile themand run them to compile java applicationyou use the javac programinvoking the example' java file for exampleto compile the insertsort programyou would go to the insertsort directory and enter :\chap \insertsort>javac insertsort java this time you do need to add the java file extension this command will compile the java file into as many class files as there are classes in the program if there are errors in the source codeyou'll see them displayed on the screen editing the source code many text editors are appropriate for modifying the java source files or writing new ones for exampleyou can invoke an ms-dos editor called edit from the dos command lineand windows includes the notepad editor many commercial text editors are available as well don' use fancy word processorsuch as microsoft wordfor editing source files word processors typically generate output files with strange characters and formatting informationwhich the java interpreter won' understand terminating the example programs you can terminate any running console-mode programincluding any of the example programsby pressing the - key combination (the control key and the key pressed at the same timesome example programs have termination procedure that' mentioned in the textsuch as pressing at the beginning of linebut for the others you must press - multiple class files often several workshop appletsor several example programswill use class files with the same names notehoweverthat these files may not be identical the applet or example program may not work if the wrong class file is used with iteven if the file has the correct name