
hello my name kiemtheng i'm come from Cambodia, i would to write java programming to calculate a name of year for each birthday in Chinese but i dont know how to do.

import java.util.*;
import java.text.*;
public class FormatDate{
public static void main(String[] args) {
Locale locale=Locale.FRANCE;
Date today = new Date();
System.out.println("Date format in "+ locale.getDisplayName()+ " = " + SimpleDateFormat.getDateInstance(SimpleDateFormat.LONG, locale).format(today).toUpperCase());
}
}

no , what is not the one i need , i'd this result out put . Enter day of birth: 02 Enter month of birth: 10 Enter year of birth: 2011
Your Birth Date is 2/10/2011 = Sunday - OCTOBER - Rabbit Year.

no , what is not the one i need , i'd this result out put . Enter day of birth: 02 Enter month of birth: 10 Enter year of birth: 2011
Your Birth Date is 2/10/2011 = Sunday - OCTOBER - Rabbit Year.

no , what is not the one i need , i'd this result out put . Enter day of birth: 02 Enter month of birth: 10 Enter year of birth: 2011
Your Birth Date is 2/10/2011 = Sunday - OCTOBER - Rabbit Year.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.