Follow these steps to check if the iterator has more
items:
- Add the existing it variable to the While
true figure.
- Click the Java... icon
on the palette. The Select a Java Visual Snippet window
opens.
- In the Specify a type (? = any character, * = any String) field,
type java.util.Iterator.
- Click Iterator.
- Click java.util - WSInstallDir/runtimes/bi_v6_stub/java/jre/lib/core.jar.
- Click hasNext().
- Click OK.
- Add the hasNext activity to the While
true figure.
- Click the Expression icon
on the palette.
- Add the expression to the While true figure
and label it hasMoreSymbols.
- Connect the it figure to the hasNext figure.
- Connect the hasNext figure to the hasMoreSymbols figure.