title: My program does not stop even if i have return statement
body: <p>My code doesn't seem to work. After the part where it ask how much are you going to pay it wont continue to the addition solving part. Also it keeps on looping on asking "how much would you like to pay for this semester" </p>
  
  <pre><code>while (true) {
      if (semester.equalsIgnoreCase(First)) {
          System.out.print("\nThe Enrollment fee for this Semester is: " + balance);
          System.out.print("\nChoose your Payment term(Partial/Full): ");
          String term = st.nextLine();
  
          if (term.equalsIgnoreCase(partial)) {
              System.out.print("\nHow much would you like to pay for this semester: ");
              Scanner in = new Scanner(System.in);
              payment = in.nextInt();
  
              balance = balance - payment;
  
              System.out.print("\nYour Balance is: SR" + balance);
              if (balance &gt; payment) {
                  System.out.print("\nYou have remaining balance of: SR" + balance);
              } else if (balance == payment) {
                  System.out.print("\nYou are already paid");
                  return;
              }
          }
      }
  }
  </code></pre>
  
  <p>Also this code goes from <code>if(semester.equalsIgnoreCase(First))</code> to <code>if(semester.equalsIgnoreCase(Third))</code> with the same codes. </p>