|
-
Feb 20th, 2012, 08:57 AM
#1
Thread Starter
Lively Member
Technical puzzle
Your application has a object named Company, which has properties as Name, Address & Code. Also, you have an object named Companies containing list (array) of Company. Can you write a code to print out all the properties of all the Company object in the Companies object, separated by *#* string as shown below.
Company1Name*#*Company1Address*#*Company1Code*#* Company2Name*#*Company2Address*#*Company2Code….. *#* Company100Name*#*Company100Address*#*Company100Code
Think of a solution without any loop (for or while) and leverage your language’s feature.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|