SHARE
TWEET

Untitled

a guest Feb 16th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package question2;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Quiz {
  6.     private int numQuestions;
  7.     private String title;
  8.     private FillInTheBlank[] quiz = new FillInTheBlank[5];
  9.     Scanner scr = new Scanner(System.in);
  10.    
  11.     public Quiz() {
  12.         quiz[0] = null;
  13.         quiz[1] = null;
  14.         quiz[2] = null;
  15.         quiz[3] = null;
  16.         quiz[4] = null;
  17.         System.out.println("Enter a title: ");
  18.         title = scr.nextLine();
  19.     }
  20.    
  21.     public Quiz(int numQuestions, String title) {
  22.        
  23.     }
  24.    
  25.     public Quiz(Quiz in) {
  26.        
  27.     }
  28.    
  29.     public void setTitle(String title) {
  30.        
  31.     }
  32.    
  33.     public void setQuestion(int index, FillInTheBlank questionIn) {
  34.        
  35.     }
  36.    
  37.     public String getTitle() {return title;}
  38.     public FillInTheBlank getQuestion(int index) {return ;}
  39.    
  40.     public void printText() {
  41.         for(int i = 0; i < quiz.length; i++) {
  42.             if(quiz[i] == null) {
  43.                 break;
  44.             }
  45.             if(i == 5) {
  46.                 return "
  47.             }
  48.         }
  49.     }
  50.    
  51.     public void printAnswers() {
  52.        
  53.     }
  54.    
  55.     public String toString() {
  56.         return title;
  57.        
  58.     }
  59.    
  60.    
  61.  
  62. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top