Hey, I am trying to use this program, it is supposed to ask one multiple choice question of the user and get the response. For some reason it will not work for me. I am using Ready to Program by HoltSoft. Please help me.
import java.awt.*;
import java.applet.*;
import java.io.*;
public class Quiz_Show extends Applet
{
public static void main (String args[])
{
InputStreamReader istream = new InputStreamReader (System.in);
BufferedReader bufRead = new BufferedReader (istream);
String First_Answer = "";
int score = 0;
System.out.println ("Welcome to my quiz show.");
System.out.println ("Please enter the letter of the answer for each question.");
System.out.println ("Here is the first question.");
System.out.println ("What is the largest country in the world?");
System.out.println ("A-Canada");
System.out.println ("B-Russia");
System.out.println ("C-USA");
System.out.println ("D-China");
while (First_Answer.equalsIgnoreCase (""))
{
try
{
System.out.println ("Please answer with a, b, c, or d");
First_Answer = bufRead.readLine ();
}
catch (IOException err)
{
System.out.println ("Error reading line");
}
}
if (First_Answer.equals ("b"))
{
System.out.println ("Good job, that is correct!");
score = score + 15;
}
else
{
System.out.println ("Sorry, that answer is incorrect.");
}
}
}
When I try to run it it comes up "Error Message=The specified module could not be found.
Error Code=126"
Thanks in advance for any hep you can provide.