How to populate an array with another variable in Obj-C

Following the discussion on string interpolation on Obj-C (Objective-C equivalent of Swift "\(variable)"), I am looking at the way to do something like the following in Obj-C. Thanks!

let hotel = "Hilton"
var roomNumberArray = ["\(hotel)01", "\(hotel)02", "\(hotel)03", "\(hotel)04", "\(hotel)05", "\(hotel)06", "\(hotel)07", "\(hotel)08", "\(hotel)09", "\(hotel)10"]


#objective-c #arrays

5 Likes1.55 GEEK