Total not adding up
问题 I'm working on a classwork in high school comp sci class and i have come across this problem. the total is not adding. can someone tell me why? import javax.swing.*; public class TimeSheets { public static void main(String[] args) { String loc; String[] day = new String[7]; String time1; String time2; int location; double total = 0; int num = 1; int x = 0; int y = 0; double clock1 = 0; double clock2 = 0; double hour; loc = JOptionPane.showInputDialog(null, "Enter your Work Location");