java - Object or Array to store this data -
so, if have data this:
site.name = "domain" site.url = "http://www.domain.com" site.color = "red" site.author = "name" and have bunch of different sites, store data in object or array?
looks job object.
class site { string name; string url; string color; string author; site(string name,string url, string color, string author) { this.name=name; this.url=url; this.color=color; this.author=author; } }
Comments
Post a Comment