who can I read the RUN ?
Hi to all .
I now start learning the java language .
I have this program :
import java.util.*;
class WTime
{
public static void main(String[] arguments)
{
GregorianCalendar now = new GregorianCalendar();
int hour = now.get(Calendar.HOUR_OF_DAY);
if (hour < 12)
System.out.println("Good morning.\n");
else if (hour < 17)
System.out.println("Good afternoon.\n");
else
System.out.println("Good evening.\n");
}
}
If I make the run , the run screen is disable quickly , I can not read it .
I try to put the command that asked the user to enter any thing before end . but all the my tries is wrong .
I need another solution please .