 In the example below, operation A consists of an iteration of zero or more invocations of operation B.An iteration

Selection is similar to a sequence, but with a circle drawn in the top right hand corner of each optional operation.In the example, operation A consists of one and only one of operations B, C or D.

A selection

As an example, here is how a programmer would design and code a run length encoder using JSP.