Does anyone know the Java equivalent of the C# format of:
String.format("{0:D9}", Result);
Here what it does: http://www.java2s.com/Code/CSharp/Data-Types/doublenumberformat0C0D90E0F30N0X0x.htm
This little problem is killin’ me…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as I understand the documentation
D9means “format as a decimal number with at least 9 digits, left-padding with 0 if necessary).The equivalent in Java format Strings would be
%09d:This prints