title: public static void main() not working?
body: <p>Here's the code.</p>
  
  <pre><code>    import java.io.*;
  class Time
  {
   int a,b,c,Total;
   Time()
   {
    int hr=0;
    int sec=0;
    int min=0;
   }
   void time(int hr, int min, int sec)
   {
    a=hr;
    b=min;
    c=sec;
   }
   void compute()
   {
    Total=a*3600+b*60+c*1;
  
   }
   void display()
   {
    System.out.println("Number of hours = " +a);
    System.out.println("Number of minutes = " +b);
    System.out.println("Number of seconds = " +c);
    System.out.println("Total number of seconds = " +Total);
   }
   public static void main()throws IOException
   {
    BufferedReader pd=new BufferedReader(new InputStreamReader(System.in));   
    System.out.println("Enter number of hours : ");
    int x=Integer.parseInt(pd.readLine());
    System.out.println("Enter number of minutes : ");
    int y=Integer.parseInt(pd.readLine());
    System.out.println("Enter number of seconds : ");
    int z=Integer.parseInt(pd.readLine());
    Time obj=new Time();
    obj.time(x,y,z);
    obj.compute();
    obj.display();
    System.out.println("Thank you for using our service.");
   }
  }
  </code></pre>
  
  <p>Can someone please tell me why public static void main() is not working? I'm new to coding, so this might be a dumb question.</p>