#import int main (int argc, const char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSString *favoriteComputer; // favorite computer favoriteComputer = @"iBook"; favoriteComputer = @"MacBook Pro"; int len = [favoriteComputer length]; NSLog(@"%@", favoriteComputer); favoriteComputer = [favoriteComputer uppercaseString]; NSLog(@"%@", favoriteComputer); NSLog(@"The length of the string is %d.", len); NSMutableString *name; // name name = [@"John" mutableCopy]; [name appendString:@" Doe"]; NSLog(@"The full name is %@.", name); NSMutableString *foo = [@"Julia!" mutableCopy]; NSMutableString *bar = foo; NSLog(@"foo points to the string: %@.", foo); NSLog(@"bar points to the string: %@.", bar); NSLog(@"\n"); [foo appendString:@" I am happy"]; NSLog(@"foo points to the string: %@.", foo); NSLog(@"bar points to the string: %@.", bar); [pool release]; return 0; }// end of main