The syntax of the for command is
for variable in word ...
do list
done
The words are expanded, and then list is run repeatedly with variable set to each word in turn. You can replace do and done with braces ({ }).
Examples
list=$(ls *.class) for object in $list do system "DSPJVAPGM $object" done