Writing code with multiple Class Methods and String Arrays

Writing code with multiple Class Methods and String Arrays

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.

View Answers

Ads









Related Tutorials/Questions & Answers:
Writing code with multiple Class Methods and String Arrays
Writing code with multiple Class Methods and String Arrays  So what I... input. It has to have multiple classes so I will have a main class, and a class... In these classes I need to create string arrays that contain artist names, and be able
Writing code with multiple Class Methods and String Arrays
Writing code with multiple Class Methods and String Arrays  So what I... input. It has to have multiple classes so I will have a main class, and a class... In these classes I need to create string arrays that contain artist names, and be able
Advertisements
Can I have multiple main() methods in the same class?
Can I have multiple main() methods in the same class?  Hi, Can I have multiple main() methods in the same class?   Hi, No, We cann't use multiple main() method within the same class. If we do this then the program
Arrays, loops and string handling
Arrays, loops and string handling  How would i go about in creating a program to mark and grade a set of multiple choice test results... correct answers using JOptionPane dialog box and store the entire answer as on string
how to use StringTokenizer to retrieve the class name, attributes name and methods name from the Java Source Code
one problem which is retrieve the Class Name, Attributes Name and Methods Names...how to use StringTokenizer to retrieve the class name, attributes name and methods name from the Java Source Code  hi, I have done a program whereby
what is class methods in objective c
what is class methods in objective c  What is class methods in objective c? Explain the class method of objective c with the help of an example
what is class methods in objective c
what is class methods in objective c  What is class methods in objective c? Explain the class method of objective c with the help of an example
(ii) String and String Buffer Class
(ii) String and String Buffer Class  difference between String and String Buffer Class
(ii) String and String Buffer Class
String and String Buffer Class  differences between : String and String Buffer Class
Determine if string is in class
and a Car class. The string is the name of the car, which i have multiple in my linked.... import java.util.*; class Car { private String name; private int price...; } } public class CarsList { public static void main(String args
(ii) String and String Buffer Class
String and String Buffer Class  difference between String and String Buffer Class... between String and StringBuffer 1) String object is immutable
Class AsyncEvent important methods
In this section, you will learn about the important methods of AsyncEvent Class
reading multiple files from a directory and writing them into a single file
reading multiple files from a directory and writing them into a single file   i have done the following code but the every time i write to the single...; public class reader { static String inpath = "C:\\Users\\ndayala\\asc
arrays
arrays  using arrays in methods   Java use arrays in methods import java.util.*; class ArrayExample{ public static int getMaxValue...]; } } return minValue; } public static void main(String[] args
String Functions In Java
; Note : Many methods in String class are overloaded. Here we have not discussed all methods of String class. To read all methods of String class please refer... about how to use methods of String class in Java. In this example I
String Class implementation in API
String Class implementation in API  Hi all, I was confused ,when am looking into java String class single argument constructor into that we... we send String as argument for String class
String tokenizer class
String tokenizer class  Hai... What is string tokenizer class? & what's its purpose
String tokenizer class
String tokenizer class  Hai... What is string tokenizer class? & what's its purpose
String tokenizer class
String tokenizer class  Hai... What is string tokenizer class? & what's its purpose
Passing Arrays In Jsp Methods
Passing Arrays In Jsp Methods   ... data type. It is one of  the simplest data structures. Arrays holds equally... starts from 0. Some arrays can be multidimensional. One and two- dimensional
write a program to demonstrate wrapper class and its methods......
write a program to demonstrate wrapper class and its methods......  write a program to demonstrate wrapper class and its methods
variables and methods declared in abstract class is abstract or not
variables and methods declared in abstract class is abstract or not  variables and methods declared in abstract class is abstract
Abstract class,Abstract methods and classes
to implement the methods inherited from the abstract class (base class... Abstract methods and classes     ... is used with methods and classes.  Abstract Method An abstract method one
Object Class Methods in Java
We are going to discus about Object Class Methods in Java... or indirectly. There are many methods defined in java.lang.Object class...(), wait(), etc Java object class methods are:- finalize() clone() equals
Getting Methods Information of a class
Getting Methods Information of a class   ... to retrieve information of all methods of a class (that included in the program... by using different methods on that method object. Here is the example code
String Arrays Java
String Arrays Java          String array cannot hold numbers or vice- versa. Jsp arrays can only store the type of data specified at the time of declaring
code for abstract class
code for abstract class  code for abstract class
arrays
arrays  public class Country{ string countryName; string location... of 10 country objects called mycountry using the Country class. b.Assuming that the getter and setter methods are already defined in the Country class, write
how to use string of one class into another Class
how to use string of one class into another Class  I created textField(JTextField t1=new JTextField();(it is in ClassA. The input of this textField i.e t1.getText() is to be used in different(another Class say in ClassB. How can
AwizardController class code
AwizardController class code  Hi deepak, Thank you for responding me for this answer.I want AwzardController class code, can you please post
Arrays
array Hers's my code public class Rebel { public static void main(String... called Rebel.java; 2.Create two arrays. One of them must store integer numbers... of a string and not the actual word i.e -> words[1] = "1"; 4.Swap the numbers
code for multiplication of matrix in java using methods
code for multiplication of matrix in java using methods  code for multiplication of matrix in java using methods
Can a abstract class be defined without any abstract methods?
Can a abstract class be defined without any abstract methods?   hi, Can a abstract class be defined without any abstract methods? thanks
What's the proper way to test a class with private methods using JUnit?
What's the proper way to test a class with private methods using JUnit?  What's the proper way to test a class with private methods using JUnit
arrays
word appears in the passage.   The given code accepts the string text from the user and display distinct words in ascending order. The code also displays the frequency of each word. import java.util.*; public class
arrays
word appears in the passage.   The given code accepts the string text from the user and display distinct words in ascending order. The code also displays the frequency of each word. import java.util.*; public class
arrays
word appears in the passage.   The given code accepts the string text from the user and display distinct words in ascending order. The code also displays the frequency of each word. import java.util.*; public class
Arrays
Arrays   Hi I need help with the following exercises. Exercise 1: Write a Java application in which the user is prompted for the total number... initialize an array with 10 String values. Randomly select a value from the array
methods
methods  PrintStream class has two formatting methods,what
methods
methods  PrintStream class has two formatting methods,what
methods
methods  PrintStream class has two formatting methods,what
Arrays
Arrays  Create a program to mark and grade a set of multiple choice... the entire answer as one string in one variable.There are no spaces between... and a symbol(letter grade).Calculate the average number of correct answers for the class
c++ new, delete, string class
c++ new, delete, string class  Write one program containing all these string exercises. Read a string from the user into a string named string1... contained in string1: Exercise 1 Good morning Create a new string named string2
how to pass a string from one class to another
how to pass a string from one class to another  hi all, Good morning. I am trying to develop a coding pass a string from one class and declare in other class. the string which i need to pass is the data from an file and i want
can we use scanner class,class , object and methods to get output without using constructor ????
can we use scanner class,class , object and methods to get output without using constructor ????  im getting error here..i hav used scanner class for the input at the run time ..and created the object to call the methods...why
arrays
class ,create an array {4,34,5,3,6,8,1} remove 3 and 5th element and shift... will helpful for you. The sample code given below is for removing the elements from the given list of array. public class JavaRemoveArrayElementExample
arrays
Store a table with students and information (name, ID, password, crypted password, etc) in a multi-dimensional array "stud"  Arrays and Strings: Store a table with students and information (name, ID, password, crypted password
String equalsIgnoreCase(String Str)
class. We are going to use equalsIgnoreCase(String Str) method of String class in Java. The description of the code is given below for the usage... String equalsIgnoreCase(String Str)   
arrays
arrays  Write a program to print details of all the months with number of days in a year (Leap or Non Leap year) using array of objects Integer and String
Comparing Arrays
class. Arrays.equals(): Above method compares two arrays. Arrays is the class of the java.util.*; package. This class and it's methods are used for manipulating arrays. Here is the code of the program: import 

Ads