Give the signatures of each of these methods from Listing 1.5: (a)addOn() (b)add() (c)toString() (d)main() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Give the signatures of each of these methods from Listing 1.5: (a)addOn() (b)add() (c)toString() (d)main()

14th Oct 2020, 7:06 AM
Airah Gonzales
Airah Gonzales - avatar
1 Answer
0
I do not know where we use addOn(). Here are the rest. b) public boolean add(E element) c) public String toString() d) public static void main(String[] args)
14th Oct 2020, 7:51 AM
Avinesh
Avinesh - avatar