Listing 2.7, ShowCurrentTime.java, gives a program that displays the current time in GMT. Revise the program so

Question:

Listing 2.7, ShowCurrentTime.java, gives a program that displays the current time in GMT. Revise the program so that it prompts the user to enter the time zone offset to GMT and displays the time in the specified time zone. Here is a sample run:

image

Enter the time zone offset to GMT: ?5

The current time is 4:50:34

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: