[JAVA]What does it mean to create a collection of a previously made class?

Yozique_Miller

Estimable
Nov 18, 2015
2
0
4,510
Hey there, I have one class, my Course class that takes in user input and stores it in these ArrayLists, for the course title, credit and grade. Now the second part of this assignment is for me to "create collection of course, carry out adding, deleting, sorting,searching, and printing operations." What does this mean? I have no idea what my professor is asking, I have not been able to reach him as this is an online class with a very...vacant discussion board.
 
Sound like you need to enter a few course to populate arraylists.
Then add functionality to "adding, deleting, sorting,searching, and printing operations."
 
You are giving us very vague descriptions of what your code is doing. Post your code on pastebin.com or gist.github.com so that we can see what you're seeing. :)
 


Make another object of class1 inside class2. Then with that object, you can use the methods and variables from class1 inside class2.