The code you provided is a Java program that uses the java.util, java.time, and java.text packages to get the names of the days of the week in a specific locale and print them to the console. Here is a breakdown of the code:
import java.util.*; import java.time.*; import java.text.*; public class Localized_WeekName { public static void main(String []args) { DateFormatSymbols symbols = new DateFormatSymbols(new Locale("de")); String[] day_name = symbols.getWeekdays(); for (String n : day_name) { System.out.println(n); } } }
Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions