I have created a program in java. Now my problem here is that I can't figure out how to display the time in mins.
For example I have 197 mins
The output is suspose to be
You worked 3 hours and 17 mins.
Now I got the 3 hours part but I can't seem to figure out how to show the mins. Its like my program has done the math but hasn't displayed the remainder
public class time
public static void main(String args)
int timeInMinutes = 197;
JOptionPane.showMessageDialog(null, "If you work " + timeInMinutes + " minutes. ");
(null, "You have worked " + timeInMinutes/60 + " hours. ");