FileDocCategorySizeDatePackage
FizzBuzz2.javaAPI DocExample577Sat Jun 02 02:41:22 BST 2001None

FizzBuzz2.java

// This example is from _Java Examples in a Nutshell_. (http://www.oreilly.com)
// Copyright (c) 1997 by David Flanagan
// This example is provided WITHOUT ANY WARRANTY either expressed or implied.
// You may study, use, modify, and distribute it for non-commercial purposes.
// For any commercial use, see http://www.davidflanagan.com/javaexamples

/**
 * This class is much like the FizzBuzz class, but uses a switch statement
 * instead of repeated if/else statements
 **/
public class FizzBuzz2 {
  public static void main(String[] args) {
    for(int i = 1; i