FileDocCategorySizeDatePackage
FormatPluralsChoice.javaAPI DocExample667Sat Mar 06 16:52:32 GMT 2004None

FormatPluralsChoice

public class FormatPluralsChoice extends FormatPlurals
Format a plural correctly, using a ChoiceFormat.
author
Ian F. Darwin, http://www.darwinsys.com/
version
$Id: FormatPluralsChoice.java,v 1.5 2004/03/06 22:52:32 ian Exp $

Fields Summary
static double[]
limits
static String[]
formats
static ChoiceFormat
myFormat
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)

		report(0);
		report(1);
		report(2);
	
public static voidreport(int n)
report -- using conditional operator


	      
	     
		System.out.println("We used " + n + " " + myFormat.format(n));