ToDoHelper.java

関連タイピング
-
src/main/resources
プレイ回数67英語長文294打 -
src/main/resources
プレイ回数83英語長文105打 -
src/main/resources
プレイ回数97英語長文279打 -
src/main/java
プレイ回数82英語長文240打 -
src/main/java
プレイ回数76英語長文771打 -
src/main/resources
プレイ回数98英語長文410打 -
src/main/java
プレイ回数86英語長文187打 -
src/main/resources
プレイ回数92英語長文717打
問題文
(public class ToDoHelper {)
public class ToDoHelper {
(public static ToDo convertToDo(ToDoForm form) {)
public static ToDo convertToDo(ToDoForm form) {
(ToDo todo = new ToDo();)
ToDo todo = new ToDo();
(todo.setId(form.getId());)
todo.setId(form.getId());
(todo.setTodo(form.getTodo());)
todo.setTodo(form.getTodo());
(todo.setDetail(form.getDetail());)
todo.setDetail(form.getDetail());
(return todo;)
return todo;
(})
}
(public static ToDoForm convertToDoForm(ToDo todo) {)
public static ToDoForm convertToDoForm(ToDo todo) {
(ToDoForm form = new ToDoForm();)
ToDoForm form = new ToDoForm();
(form.setId(todo.getId());)
form.setId(todo.getId());
(form.setTodo(todo.getTodo());)
form.setTodo(todo.getTodo());
(form.setDetail(todo.getDetail());)
form.setDetail(todo.getDetail());
(form.setIsNew(false);)
form.setIsNew(false);
(return form;)
return form;
(})
}