java
1 2package model; 3import dao.FollowDAO; 4 5public class FollowLogic { 6 7 8 9 public void execute(int userId, int followId){ 10 FollowDAO dao = new FollowDAO(); 11 dao.follow(userId, followId); 12 } 13 14 public int execute(int userId){ //エラーになる 15 FollowDAO dao = new FollowDAO(); 16 int followCount = dao.getFollowCount(userId); 17 return followCount; 18 } 19 20 public int execute(int userId){ //エラーになる 21 FollowDAO dao = new FollowDAO(); 22 int followerCount = dao.getFollowerCount(userId); 23 return followerCount; 24 } 25 26}
このエラーは名前を変える他に、何か対策はありますか??
classを作ればよいのでしょうか?
回答3件
あなたの回答
tips
プレビュー