Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Writing code with multiple Class Methods and String Arrays

$
0
0
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.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>