Hi, just started java course, and will like to get some help here, this program runs in eclipse but not in web browser I dont know how to make it an Applet, I will appreciate if some one can look it and give me a hand, thank you..
<import java.util.Scanner; // I'will use something external to my program public class IT_And_Game_Design_Student { // the name of program public static void main(String args[]){ // declaration of a main method Scanner Students = new Scanner (System.in); // creates a "scanner" that is used to read input data int 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 System.out.println ("Display if " +i+ "º STUDENT PASSED (1) OR FAILED (2) and Ben Mondo's final result? "); possibility = Students.nextInt(); // next line if(possibility == 1) // when number 1 is pressed from keyboard { passed++; // the student passed } else if(possibility == 2) // when number 2 is pressed from keyboard { failed++; // student failed } else { System.out.println("wrong number!!!!!" + "Please Try again, remember you can only type 1 Or 2 Thank you..."); // print the argument i--; } } System.out.println("The number of succesful students in IT and Game Design is : " + passed); // print the argument System.out.println("the number of unsuccesful Students in IT and Game Design is: " + failed); // print the argument if(passed > 0) System.out.println(" And Ben Mondo was among the succesful Students, well done Ben"); // print the argument else System.out.println(" And Ben Mondo was not succesful this time"); } }// Ending the program>