1 Replies - 778 Views - Last Post: 10 December 2012 - 03:21 PM Rate Topic: -----

#1 completelyclueless   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 25-October 12

Writing code with multiple Class Methods and String Arrays

Posted 10 December 2012 - 03:08 PM

So what I am trying to do is create a code that lists music artists names using user input.
It has to have multiple classes so I will have a main class, and a class for each decade of music.
Music.java
six.java
seven.java
eight.java

In these classes I need to create string arrays that contain artist names, and be able to generate the entire list once prompted.

To give a better idea of how the code will run it would go something like:
Choose a decade of music:
70's
Choose a genre of music:
Rock
Choices are: Rolling Stones, Talking Heads, etc.

That's all I need it to do but I'm getting stuck on what to put in the main class "music.java" to get it to read the other classes and furthermore how to write the decade classes.

I understand I don't have much to offer you guys here but any help would be appreciated.

Is This A Good Question/Topic? 0
  • +

Replies To: Writing code with multiple Class Methods and String Arrays

#2 macosxnerd101   User is online

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12742
  • View blog
  • Posts: 45,926
  • Joined: 27-December 08

Re: Writing code with multiple Class Methods and String Arrays

Posted 10 December 2012 - 03:21 PM

Check out some of our Class Design tutorials:
http://www.dreaminco...arallel-arrays/
http://www.dreaminco...e-mc2-tutorial/
http://www.dreaminco...igning-classes/
http://www.dreaminco...ing-classes-ii/
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1