Type not defined in the class

Hi Team,

I have the below error for my program . I have defined the method in the class , even then Iam getting this error

Multiple markers at this line
      - Line breakpoint:SeverityConstantsTest [line: 16] -
       main(String[])
      - Line breakpoint:SeverityConstantsTest [line: 18] -
       main(String[])
      - The method getHoursForFix(int) is undefined for the type
       SeverityUtil

Below is my code

SeverityConstants .java

package Enums;

public class SeverityConstants {
public static final int LOW=0;
public static final int MEDIUM=1;
public static final int HIGH=2;
public static final int URGENT=3;
}

===============================

SeverityUtil.java

package Enums;

public class SeverityUtil {

      public int getHoursForFix(int severity)
      {
            int hrs=0;
            
            switch (severity)
            {
            
            case SeverityConstants.LOW: hrs=24;
                                                      break;
            case SeverityConstants.MEDIUM: hrs=12;
            break;
            case SeverityConstants.HIGH: hrs=6;
            break;
            case SeverityConstants.URGENT: hrs=1;
            break;
            }            
            return hrs;            
      }      
}
=======================================

--SeverityConstantsTest.java
 
package Enums;

import java.io.Console;

public class SeverityConstantsTest {

      public static void main(String[] args) {
            // TODO Auto-generated method stub
            
            int severity=0;
            int respHrs=0;
            
            SeverityUtil sutl = new SeverityUtil();
            
            Console console= System.console();
            String str = console.readLine("Enter the Severity");
            severity=Integer.parseInt(str);
            respHrs=sutl.getHoursForFix(severity);            
            System.out.println(" The no hours for severity" + severity + " is "+ respHrs);
      }
}
sam_2012Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
Try cleaning and compiling again. The code looks OK to me

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.