| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

FizzBuzz2

Page history last edited by PBworks 16 years, 6 months ago

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.