I’m a beginner in java and I want to know how LinkedList is used here.
public LinkedList<nameofclass> getsomething(String a, int L)
Here’s the code:
public LinkedList<Save> getBrightness(
String params,
Integer colors,
Integer[] BrightnessValue,
boolean clear)
{
...
LinkedList<Save> equal = new LinkedList<Save>();
Save is a class which is located outside I don’t understand this code
The method
getBrightnessis creating an instance ofLinkedListthat will contain instances of classSave. Presumably later in the code you will find a loop containingwhich will create multiple instances of
Saveand add them to the list. At the end will beThe linked list is being used as a container so that
getBrightnesscan return several values.