FizzBuzz2
This code is similar to FizzBuzz. It goes about making a similar output by using the switch, which can choose between many different values. The If/Else statements are boolean in nature and can only operate in a true false manner.
As with FizzBuzz, Test the limits of the program.
Below are some links with loads of information that should give you other ideas.
Here is a screenshot of the code:
Right click on the image to choose view image (bigger version)
In the code, be careful to see the differences between the colon: and the Semicolon;
How high can you get this technique to count to before it stops working?
here are some links relating to Switch Statements:
http://www.leepoint.net/notes-java/flow/switch/switch-general.html
http://www.tech-recipes.com/java_programming_tips668.html
Comments (0)
You don't have permission to comment on this page.