Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File;
- import java.util.*;
- public class Test {
- int score;
- Random rand;
- String name;
- String[] names = new String[5];
- double[] scores = new double[5];
- public Test(){
- Scanner in = new Scanner(System.in);
- System.out.print("Enter your name: ");
- name = in.next();
- System.out.println("History Quiz");
- try{
- Scanner stdin = new Scanner(new File("highScores.txt"));
- }
- catch(Exception e){
- System.out.print("In Test constructor");
- }
- }
- public void compareScore(){
- for(int k = 0; k < scores.length; ++k){
- if(score > scores[k]){
- for(int l = k; l < scores.length; ++l){
- }
- }
- }
- }
- public void giveTest(){
- int numCorrect = 0;
- System.out.println("Select the answer that best fits the question.");
- for(int k = 0; k < 5; ++k){
- int x = rand.nextInt(20)+1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement