UserInput error - only at home?
When I was in the Labs at Uni, I created a simple program called Packing.java, nothing too challenging, as we have only just started learning java - code below
publicclass Packing{
//global declarations
staticfinaldouble shift_length = 14700f;
publicstaticvoid main(String[] args){
//local declarations
double number_of_shifts, total_seconds, length_minutes_left, length_hours_left, length_seconds_left, total_mins_worked;
// Prompt to find no. of shifts
UserInput.prompt("Enter the shifts worked");
number_of_shifts = UserInput.readDouble();
//compute and print
total_seconds = number_of_shifts * shift_length;
total_mins_worked = (total_seconds / 60);
length_hours_left = (total_mins_worked) / 60;
length_minutes_left = (total_mins_worked) % 60;
length_seconds_left = ((length_minutes_left * 60) % 60);
System.out.println(number_of_shifts +" Shifts lasts " + (int)total_seconds +" Seconds\n"
+ number_of_shifts +" Shifts lasts " + (int)length_hours_left +" hours " + (int)length_minutes_left +" minutes " + (int)length_seconds_left +" seconds");
}//end of main method
This worked fine, compiled and ran correctly. However, when I moved the java file back to my laptop in my halls, trying to compile and run the program gave the error "cannot find symbol variable UserInput" - what does this mean, and why do I only get it on my laptop and not in the Labs at Uni? All help welcomed, thanks all

