FileDocCategorySizeDatePackage
FormatPlurals.javaAPI DocExample427Fri Apr 20 21:16:32 BST 2001None

FormatPlurals

public class FormatPlurals extends Object
Format a plural correctly, by hand.
author
Ian F. Darwin, ian@darwinsys.com
version
$Id: FormatPlurals.java,v 1.5 2001/04/21 00:16:33 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"));