Create the Service, Model, View, and Controller classes in separate files.
Move the Solution class's methods to the created classes in accordance with how MVC should work.
Create the required fields in the classes as needed.
Don't add any other methods of your own.
16
任務
Java Collections, 等級 6, 課堂 4
上鎖
Refactoring MVC
Move a few methods into the required classes to get the MVC pattern. If necessary, make changes in the main method
that reflect the changes you've made. The program's behavior must not change.
Do NOT change class, method, or field names.