Why doesn't my variable return the answer?
<p>So I'm trying to construct a program. Everything works but my math portion of the program. I want the time in mins entered to be converted to hours. This should be a decimal number like 30 mins=.5 hrs. I'll try to omit as much code as I can that I don't think is relevant to make it easier to read.</p>

<pre><code>public class StudentReader
{
    private static String studentName= "";
    private static int pages;
    private static int time;
StudentReader(String name,int pagenum, int totalTime)
    {
        studentName=name;
        pages=pagenum;
        time=totalTime;
    }
public double getTotalTimeInHours()
    {
        double total=0;
        total=time / 60;
        return total;

    }
}
</code></pre>

<p>This class is being called by another class:</p>

<pre><code>System.out.println("What is the total amount of time spent reading?: ");
totalTime=scanner.nextInt();
System.out.println(StudentReader.getTotalTime());
</code></pre>
