|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsmithers.extras.FizzBuzz
public class FizzBuzz
Prints the numbers as said in the game of fizzbuzz, known as bizzbuzz in the US.
| Constructor Summary | |
|---|---|
FizzBuzz()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Plays fizzbuzz. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FizzBuzz()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.lang.Exception
"fizz" and multiples of 7 and
number with a digit 7 with "buzz". "-penhalagen" is given, replaces
multiples of 9 and numbers with a digit 9 with "penhalagen" and
switches "fizz" and "buzz" each time this occurs.
args - the arguments, if any
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||