Create a class Newspaper. The method addArticle will recieve the desired article and return true if the page can be added, false if not. The information about each article is displayed in the ascending order by each positionNumber. and here is the UML diagram.
An added note given to us is...8.1.4 The addArticle method will work as the following: if there is at least one array index which is empty (in other words, if there is space for another article in the array), the method will add the article at the correct position, and return true. The correct position will be determined according to the positionNumber (the articles will be ordered in ascending positionNumbers). If all the array indexes contain an article, or one of the articles has the same positionNumber, then the method will not add the article, and return false
hi, i saw your implementation and i think i ve got a similar homework as well ..... and i am new to java and UML... could you please help me ...if possible give me a hint to do the class diagrams for the newspaper project ... thks in advance