package com.google.sps.data;

public class Invariants {
  private float minCredits;
  private float maxCredits;

  public Invariants(float minCredits, float maxCredits){
    this.minCredits = minCredits;
    this.maxCredits = maxCredits;
  }

  public float getMinCredits(){
    return this.minCredits;
  }

  public float getMaxCredits(){
    return this.maxCredits;
  }
}
@@ -161,16 +161,17 @@
 Credits)
+ 
 %7B%0A    th
@@ -259,32 +259,33 @@
  getMinCredits()
+ 
 %7B%0A    return thi
@@ -333,16 +333,17 @@
 redits()
+ 
 %7B%0A    re
@@ -369,8 +369,9 @@
 s;%0A  %7D%0A%7D
+%0A

Add newline re: comments and add whitespace before "{" chars