FileDocCategorySizeDatePackage
FormatPlurals.javaAPI DocExample435Sun Feb 08 21:33:56 GMT 2004None

FormatPlurals

public class FormatPlurals extends Object
Format a plural correctly, by hand.
author
Ian F. Darwin, http://www.darwinsys.com/
version
$Id: FormatPlurals.java,v 1.6 2004/02/09 03:33:56 ian Exp $

Fields Summary
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 + " item" + (n==1?"":"s"));