Docs With Odd Pages
Docs With Odd Pages
id - int
title - String
folderName - String
pages - int
This method will take array of Document objects and return another array with
Document objects which has odd number of pages.
This method should be called from main method and display values of returned
objects as shared in the sample (in ascending
order of id attribute).
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
If above issue is observed, then it is suggested to add one more explicit call to
nextLine() after reading numeric value.