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 109 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
Great answer, keep it coming :)


fatboyy09

  • Member
  • Posts: 358
Reply 3 on: Yesterday
Wow, this really help

 

Did you know?

Stroke kills people from all ethnic backgrounds, but the people at highest risk for fatal strokes are: black men, black women, Asian men, white men, and white women.

Did you know?

Calcitonin is a naturally occurring hormone. In women who are at least 5 years beyond menopause, it slows bone loss and increases spinal bone density.

Did you know?

Dogs have been used in studies to detect various cancers in human subjects. They have been trained to sniff breath samples from humans that were collected by having them breathe into special tubes. These people included 55 lung cancer patients, 31 breast cancer patients, and 83 cancer-free patients. The dogs detected 54 of the 55 lung cancer patients as having cancer, detected 28 of the 31 breast cancer patients, and gave only three false-positive results (detecting cancer in people who didn't have it).

Did you know?

Drying your hands with a paper towel will reduce the bacterial count on your hands by 45–60%.

Did you know?

Hyperthyroidism leads to an increased rate of metabolism and affects about 1% of women but only 0.1% of men. For most people, this increased metabolic rate causes the thyroid gland to become enlarged (known as a goiter).

For a complete list of videos, visit our video library