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 119 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
Wow, this really help


scikid

  • Member
  • Posts: 300
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

Did you know?

Amphetamine poisoning can cause intravascular coagulation, circulatory collapse, rhabdomyolysis, ischemic colitis, acute psychosis, hyperthermia, respiratory distress syndrome, and pericarditis.

Did you know?

The first successful kidney transplant was performed in 1954 and occurred in Boston. A kidney from an identical twin was transplanted into his dying brother's body and was not rejected because it did not appear foreign to his body.

Did you know?

Thyroid conditions may make getting pregnant impossible.

Did you know?

It is difficult to obtain enough calcium without consuming milk or other dairy foods.

Did you know?

As many as 28% of hospitalized patients requiring mechanical ventilators to help them breathe (for more than 48 hours) will develop ventilator-associated pneumonia. Current therapy involves intravenous antibiotics, but new antibiotics that can be inhaled (and more directly treat the infection) are being developed.

For a complete list of videos, visit our video library