Language?
do you want a GUI application or should the output go to the console?cocoa, objective c.
I sometimes forget there is any other method
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int i;
NSMutableArray *array = [[NSMutableArray alloc]init];
for (i=0;i<10;++i)
[array addObject:[NSString stringWithFormat:@"%d", (i*3)]];
for (id obj in array)
NSLog(@"%@",obj);
[array release];
[pool drain];
return 0;
}
Code:// one way NSLog(@"array: %@", array);