Created
March 25, 2020 21:28
-
-
Save kaansonmezoz/d22dc90527b0c609d9aeaf634162cf61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private boolean isFriendOf(User user, User loggedUser) { | |
| for (User friend: user.getFriends()) { | |
| if (friend.equals(loggedUser)) { | |
| return true; | |
| } | |
| } | |
| return false; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment