How do I draw a switch statement in a graphical design?

user3058983 picture user3058983 · Feb 27, 2014 · Viewed 21.4k times · Source

Does anyone know how to draw a switch statement in a graphical design?

For example:

If statement is a diamond shape

Loops are a square with a circle inside....?


Also is there a technical name for this kind of graphical representation? I have searched the internet and Java graphical designs do not seem to come up at all.

Answer

Aman Agnihotri picture Aman Agnihotri · Feb 27, 2014

Switch Statement Graphical Representation

Here's how a switch statement is represented. A simple Switch Flowchart search on the internet can give you this result.