Java Deque addAll() MethodThe addAll() method of Java Deque Interface is used to add all the elements in a specified collection at the end of the deque. Specified by:
Syntax:Parameter:The above method consists of only one parameter:
Return:The above method returns true if the given deque is changed. Example 1Test it NowOutput: The marks for student1 : 28 25 26 The marks for student2 : 22 19 20 The total list for the marks : 28 25 26 22 19 20 Example 2Output: Enter the name of Employees for List 1: Sam Ram Priya Urvashi Enter the name of Employees for List 2: Ravi Rita Yashika Lavish The final list for the employees is given as : Sam Ram Priya Urvashi Ravi Rita Yashika Lavish Next TopicJava Deque |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India