')' 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

[1002 byte] By [Galoosh33a] at [2007-11-26 18:43:22]
# 1
System.out.print ("The equivalent is" + hours+ "hour(s), " + minutes + "minute(s) and" + seconds + "second(s)" );
ganesh_renganathana at 2007-7-9 6:17:16 > top of Java-index,Java Essentials,New To Java...
# 2
> ("The equivalent is" + hours "hour(s), ...Ok, you knew to put a "+" character between the first string and the hours variable. Think about what might be missing between the hours variable and the next string.
warnerjaa at 2007-7-9 6:17:16 > top of Java-index,Java Essentials,New To Java...
# 3
Hi,Replace with thisSystem.out.print ("The equivalent is" + hours +"hour(s)"+ minutes+"min(s)" + seconds+"sec(s)" );this should work fine.
sandhi21a at 2007-7-9 6:17:16 > top of Java-index,Java Essentials,New To Java...
# 4
I can't believe I didn't see that...Thanks you so much for your quick replies!! ;-)
Galoosh33a at 2007-7-9 6:17:16 > top of Java-index,Java Essentials,New To Java...