3:06 pm - Sunday September 26, 2860

Currency in java example program for getCurrencyCode()

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044

/**
program : Currency in java example program for getCurrencyCode()
author  :  "candid"
date    : 29.10.12
*/
//java code
import java.util.Currency;
public class CurrencyDemo {
public static void main(String[] args) {
Currency curr = Currency.getInstance("INR");
String curCode = curr.getCurrencyCode();
System.out.println("Currency code is :" + curCode);
}
}

//Output

Currency code is :INR

BACK

Filed in: Z-A All Java Codes

Comments are closed.