Professional Documents
Culture Documents
id - int
title - String
folderName - String
pages - int
This method will take array of Document objects and return another document object
which will be combinition of all objects in array.
This method should be called from main method and display values of returned object
as shared in the sample.
Before calling this method, use Scanner object to read values for four Document
objects referring attributes in the above sequence.�
Input:
1
resume
personal
50
2
question1
exams
55
3
question2
exams
45
4
India
misc
40
Output:
5
resume#question1#question2#India
personal@exams@exams@misc
190
If above issue is observed, then it is suggested to add one more explicit call to
nextLine() after reading numeric value.
"