java – Fetching Starred repositories from Github API in Spring

java – Fetching Starred repositories from Github API in Spring

The issue was with the conditional statement. I fixed it by doing this.

    for(String language: languages) {
        int count = 0;
        for(Repository repo: repositories) {
            // Issue is with this conditional statement.
            if(Objects.equals(repo.getLanguage(), language)){
                count++;
            }
        }
        star_counts.add(count);
    }

java – Fetching Starred repositories from Github API in Spring

Leave a Reply

Your email address will not be published. Required fields are marked *