If the user choose a class from the one's listed in LabCourse (BIO, CIS...) it should give the total plus lab charge (50), but my code is always executing total as 0 and printing the "This class don't have lab" message
What could the problem be?
CollegeCourse.java
public class CollegeCourse
{
String name;
int num;
int crd;
double fee;
double total;
public CollegeCourse(String n)
  {
  name =n;
  }
public double computetotal(double fee, int crd)
    {
          fee = fee * crd;
          System.out.println("Total is $" + fee);
          this.fee=fee;
          return fee;
    }
public String getname()
  {
       return name;
  }
public int getnum()
  {
       return num;
  }
public int getcrd()
  {
       return crd;
  }
    // public double getfee()
  // {
  //       return fee;
  // }
}
LabCourse.java
public class LabCourse extends CollegeCourse
{
 double total=0;
public LabCourse(String name, double fee)
{
  super(name);
}
public void computetotal(String name)
{
   super.computetotal(fee, crd);
   if((name == "BIO") || (name == "CHM") || (name == "CIS") || (name =="PHY"))
   {
      total = fee+ 50;
      System.out.println("Total with lab is: " + total);
   }
   else 
      System.out.println("This class don't have Lab");
}
}
UseCourse.java
import javax.swing.*;
import java.util.*;
import java.util.Scanner;
public class UseCourse
{
  public static void main(String args[]) throws Exception
  {
   String name;
   int num;
   int crd;
   double fee;
   Scanner inputDevice = new Scanner(System.in);
   System.out.print("Enter Department name: ");
   name = inputDevice.next();
   System.out.print("Enter Course number: ");
   num= inputDevice.nextInt();
   System.out.print("Enter Credit hours: ");
   crd = inputDevice.nextInt();
   System.out.print("Enter fee: ");
   fee = inputDevice.nextDouble();
   System.out.print("\n\n"); 
   CollegeCourse course = new CollegeCourse(name);
   course.computetotal(fee, crd);
   LabCourse full = new LabCourse(name, fee);
   full.computetotal(name);
   }
 } 
 
     
     
    