実験課題6
Exercise 6(課題6) See the section 3.7.1. "Cohesion". Show the modified source code to increase the cohesion of intersectAndPrint method in exercise 5 by separating intersect method and print method and its execution result as a screenshot.
1,3,5,0,0
(3.7.1.節をよく読み、課題5で作成したintersectAndPrintメソッドを機能的凝集度に照らし合わせて凝集度を高めなさい。intersectメソッドとprintメソッドに分割して実行するプログラムを新たに作成し、ソースコードを示しなさい。また実行結果をスクリーンショットで示しなさい。)