This topic contains a solution. Click here to go to the answer

Author Question: Which of the following set of code lines displays the current time in locale sensitive format? (Read 111 times)

jace

  • Hero Member
  • *****
  • Posts: 541

Question 1

Which of the following classes have the getAvailableLocales() method?
◦ NumberFormat
◦ Calendar
◦ Collator
◦ DateFormat

Question 2

Which of the following set of code lines displays the current time in locale sensitive format?
◦ GregorianCalendar gcal = new  GregorianCalendar(new TimeZone("CST")); System.out.println(gcal.toString());
◦ GregorianCalendar gcal = new GregorianCalendar(); DateFormat myFormat = DateFormat.getDateTimeInstance(); myFormat.setTimeZone(TimeZone.getTimeZone("CST")); System.out.println(myFormat.format(gcal.getTime()));
◦ Date d = new Date(); System.out.println(d.toString());
◦ GregorianCalendar gcal = new GregorianCalendar(); System.out.println(gcal.toString());


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by jace on May 6, 2020

raenoj

  • Sr. Member
  • ****
  • Posts: 340
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




jace

  • Member
  • Posts: 541
Reply 2 on: May 6, 2020
:D TYSM


laurnthompson

  • Member
  • Posts: 334
Reply 3 on: Yesterday
Gracias!

 

Did you know?

Warfarin was developed as a consequence of the study of a strange bleeding disorder that suddenly occurred in cattle on the northern prairies of the United States in the early 1900s.

Did you know?

Despite claims by manufacturers, the supplement known as Ginkgo biloba was shown in a study of more than 3,000 participants to be ineffective in reducing development of dementia and Alzheimer’s disease in older people.

Did you know?

Human stomach acid is strong enough to dissolve small pieces of metal such as razor blades or staples.

Did you know?

There can actually be a 25-hour time difference between certain locations in the world. The International Date Line passes between the islands of Samoa and American Samoa. It is not a straight line, but "zig-zags" around various island chains. Therefore, Samoa and nearby islands have one date, while American Samoa and nearby islands are one day behind. Daylight saving time is used in some islands, but not in others—further shifting the hours out of sync with natural time.

Did you know?

The top 10 most important tips that will help you grow old gracefully include (1) quit smoking, (2) keep your weight down, (3) take supplements, (4) skip a meal each day or fast 1 day per week, (5) get a pet, (6) get medical help for chronic pain, (7) walk regularly, (8) reduce arguments, (9) put live plants in your living space, and (10) do some weight training.

For a complete list of videos, visit our video library