You have chosen to sponsor your bid up to a maximum amount of .
CPU reads program from File
File TokenizerDemo.java ([url removed, login to view] KB)
File FileReaderDemo.java ([url removed, login to view] KB)
File [url removed, login to view] ([url removed, login to view] KB)
Modify the CPU program so that it reads its program from a file, and places the program in its memory array then executes the program.
1 Prompt the user for a file name (your program's program, JOptionPane is a good choice)
2 Load the file into memory.
3 Execute the program that was just loaded in your Virtual Machine.
A demo program that uses Java's Tokenizer class to "parse" a string is attached.