ToDoHelper.java

背景
投稿者投稿者jumokuいいね0お気に入り登録
プレイ回数57難易度(3.2) 398打 英語 英字 長文モードのみ
src/main/java
com.example.webapp.helper

関連タイピング

問題文

ふりがな非表示 ふりがな表示

(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;

(})

}