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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -