×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Cj Castro
Added: May 12, 2021 8:19 PM
Modified: May 12, 2021 8:20 PM
Views: 4012
Tags: else
  1.  // Situation 2: Student is not yet registered
  2.                     else {
  3.                         // Situation 1 : Course is full  // do this as ELSE?
  4.                         if (studentCount == existCourse.getMaxStudent()) {
  5.                             msgL.setForeground(Color.RED);
  6.                             msgL.setText("The course is already full");
  7.                         }
  8.