')' is expected
Hello everyone,
I'm trying to run this program but I keep getting an error upon compilation: ')' is expected. Can anyone spot the problem ?!
Here is the program:
import java.util.Scanner;
public class Reverse
{
// this application reads a number of seconds from the user and displays it
// in hours, minutes and seconds
public static void main (String[] args)
{
int hours, minutes, seconds;
int totalseconds;
Scanner scan = new Scanner (System.in);
System.out.print ("Enter the total number of seconds ");
totalseconds = scan.nextInt();
hours = totalseconds / 3600;
minutes = (totalseconds % 3600) / 60;
seconds = totalseconds - (3600 * hours) - (60 * minutes);
System.out.print ("The equivalent is" + hours "hour(s), " + minutes "minute(s) and" + seconds + "second(s)" ); // the problem occures here
}
}
I would really appreciate ANY help...
thanks in advance

