You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0efa4b6
Browse filesBrowse the repository at this point in the historyBrowse files
Go &take the little book which is open in the hand
And the voice which I heard from heaven spake unto me again, and said, Go and take the little book which is open in the hand of the angel which standeth upon the sea and upon the earth. (Revelation 10:8)
//And the voice which I heard from heaven spake unto me again, and said, Go and take the little book which is open in the hand of the angel which standeth upon the sea and upon the earth. (Revelation 10:8)
3
+
4
+
package com.javarush.task.task36.task3601;
5
+
6
+
import java.util.List;
7
+
8
+
public class Model {
9
+
10
+
Service service = new Service();
11
+
12
+
public List<String> getStringDataList() {
13
+
return service.getData();
14
+
}
15
+
}
16
+
17
+
/*
18
+
MVC - простая версия
19
+
20
+
В отдельных файлах создай классы Service, Model, View, Controller.
21
+
22
+
Распредели методы из класса Solution по созданным классам учитывая, что должен получиться MVC.
23
+
24
+
Создай нужные поля класса при необходимости.
25
+
26
+
Не добавляй своих других методов.
27
+
28
+
Метод main оставь в классе Solution.
29
+
30
+
31
+
32
+
33
+
34
+
Требования:
35
+
36
+
1. Создай класс Service в отдельном файле.
37
+
38
+
2. Создай класс Model в отдельном файле.
39
+
40
+
3. Создай класс View в отдельном файле.
41
+
42
+
4. Создай класс Controller в отдельном файле.
43
+
44
+
5. Перемести реализацию метода getData в подходящий класс.
45
+
46
+
6. Перемести реализацию метода getStringDataList в подходящий класс. Учти, что метод getData находится не в классе Solution.
47
+
48
+
7. Перемести реализацию метода onDataListShow в подходящий класс. Учти, что метод getStringDataList находится не в классе Solution.
49
+
50
+
8. Перемести реализацию метода fireEventShowData в подходящий класс. Учти, что метод onDataListShow находится не в классе Solution.
51
+
52
+
9. Метод main должен создать объект типа View и вызвать у него подходящий метод. Поведение программы не должно измениться.
0 commit comments