Hi, Can some please help me with this code, I managed to do some changes but still not running on web browser this is the rusult
SecurityException, your security settings have blocked a local application from running, but ist running on eclipse,
<import java.applet.*; import java.awt.*; import java.util.Scanner; import javax.swing.JLabel; import javax.swing.JOptionPane; // I'will use something external to my program public class IT_And_Game_Design_Student extends Applet{ public void init(){ String possibility; // declaring a Options int failed = 0; // declaring 2 as failed Student int passed = 0; // declaring 1 as passed Student for(int i = 1; i<11;++i){ // it will only loop 10 times since i the first student is greater or equal to the 12 Student JOptionPane.showMessageDialog(null, "Display if " +i+ "º STUDENT PASSED (1) OR FAILED (2) and Ben Mondo's final result? "); possibility = JOptionPane.showInputDialog(""); int poss = Integer.parseInt(possibility); // next line if(poss == 1) // when number 1 is pressed from keyboard { passed++; // the student passed } else if(poss == 2) // when number 2 is pressed from keyboard { failed++; // student failed } else { JOptionPane.showMessageDialog(null, "wrong number!!!!!" + "Please Try again, remember you can only type 1 Or 2 Thank you..."); // print the argument i--; } } JOptionPane.showMessageDialog(null,"The number of succesful students in IT and Game Design is : " + passed); // print the argument JOptionPane.showMessageDialog(null,"the number of unsuccesful Students in IT and Game Design is: " + failed);// print the argument if(passed > 0){ JOptionPane.showMessageDialog(null," And Ben Mondo was among the succesful Students, well done Ben");// print the argument } else{ JOptionPane.showMessageDialog(null," And Ben Mondo was not succesful this time"); } } }// Ending the program>