Given the code format:SimpleDateFormat sdf;Which code statements will display the full text month name?
A. sdf = new SimpleDateFormat ("mm", Locale.UK); System.out.println ( "Result: " + sdf.format(new Date()));
B. sdf = new SimpleDateFormat ("MM", Locale.UK); System.out.println ( "Result: " + sdf.format(new Date()));
C. sdf = new SimpleDateFormat ("MMM", Locale.UK); System.out.println ( "Result: " + sdf.format(new Date()));
D. sdf = new SimpleDateFormat ("MMMM", Locale.UK); System.out.println ( "Result: " + sdf.format(new Date()));
Given the code format:SimpleDateFormat sdf;Which code statements will display the full text month name?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Given the code format:SimpleDateFormat sdf;Which code statements will display the full text month name?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!