class="js">function bar() { var array = "a;b;c;".split(";"); for (var i in array) { alert("["+array[i]+"]"); } }
protected function bar(event:FlexEvent):void { var array:Array="a;b;c;".split(";"); for each(var s:String in array){ Alert.show("["+s+"]"); } }
String s="a;b;c;"; for(String s1:s.split(";")){ System.out.println("["+s1+"]"); }