/*
 *
 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the proprietary information of Sun Microsystems, Inc.  
 * Use is subject to license terms.
 * 
 */

package util;

import java.text.NumberFormat;
import java.util.*;

public class Currency {

   private Locale locale;
   private double amount;

   public Currency() {
      locale = null;
      amount = 0.0;
   }

   public void setLocale(Locale l) {
      locale = l;
   }

   public void setAmount(double a) {
      amount = a;
   }

   public String getFormat() {
        NumberFormat nf = NumberFormat.getCurrencyInstance(locale);
        return nf.format(amount);
   }
}



