<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/** An instance represents one frame of a bowling game */
public class Frame {
    
 
    
    /** Constructor: a one-ball frame (a strike) --not the tenth frame*/
    public Frame() {
       
    }
    
    /** Constructor: a two-ball frame --not the tenth frame */
    public Frame(int ball1, int ball2) {
        
    }
    
    /** Constructor: the tenth frame, with up to three balls.
        ball3 is 0 if only two balls are thrown*/
    public Frame(int ball1, int ball2, int ball3) {
       
    }

    /** = first ball in the frame */
    public int getBall1() {
        return 0;
    }
    
    /** = second ball in the frame */
    public int getBall2() {
        return 0;
    }
    
    /** = third ball in the frame */
    public int getBall3() {
        return 0;
    }
    
    /** = "this is frame 10" */
    public boolean isTenth() {
        return false;
    }
       
    /** = a representation of this frame: the balls thrown, separated
          by commas and enclosed in brackets [ ]. Put a blank after each comma.
          Show only as many balls as are actually thrown.
          Here are examples: [10]  [6, 3]  [6, 4]  [4, 6, 2] [10, 10, 10]*/
    public String toString() {
        
        return "";
    }

    /** = the score for this frame, given the two following frames f1 and f2.
          Precondition: If this is frame 1, ..., 8, f1 and f2 should not be null.
          Precondition: If this is the ninth frame, f2 must be null.
          Precondition: If this is the tenth frame, f1 and f2 must be null*/
    public int score(Frame f1, Frame f2) {
        
       return 0;
    }
    
    
    /** = score card for this frame. This is a 3-character string. Use these
          symbols: "X" for strike, "/" for spare; otherwise, number of balls
          Pad the end with a blank, if necessary.
          Examples: Two balls thrown, say 5 and 2: "52 "
          Example of a spare in any but the tenth frame: "4/ "
          Example of a spare in any but the tenth frame: "X "
          Example of a spare in tenth frame, last ball is 8: "4/8"
          Example of a spare and strike in tenth frame: "4/X"
          Example of a strike and spare in tenth frame: "X9/" */
    public String record() {
        return "";
    }
    
    // = graphics for a tenth frame --see spec on function card
    private String record10() {
        return "";
    }
    
}</pre></body></html>