No no i am not using two separate methods. Only one method i am using with that end point that is 180 one. In exception i got that message that’s what i mentioned in the above post, after completing of 75 user the rate limit remaining is 105 still, so i tried to call showFriendship() method at that time i found exception message as this
Twitter Exception
429:Returned in API v1.1 when a request cannot be served due to the application's rate limit having been exhausted for the resource. See Rate Limiting in API v1.1.(https://dev.twitter.com/docs/rate-limiting/1.1)
message - Rate limit exceeded
code - 88
Relevant discussions can be found on the Internet at:
http://www.google.co.jp/search?q=9a9caf7a or
http://www.google.co.jp/search?q=bf94ba05
TwitterException{exceptionCode=[9a9caf7a-bf94ba05], statusCode=429, message=Rate limit exceeded, code=88, retryAfter=-1, rateLimitStatus=RateLimitStatusJSONImpl{remaining=0, limit=75, resetTimeInSeconds=1515496325, secondsUntilReset=594}, version=4.0.6}
at twitter4j.HttpClientImpl.handleRequest(HttpClientImpl.java:164)
at twitter4j.HttpClientBase.request(HttpClientBase.java:57)
at twitter4j.HttpClientBase.get(HttpClientBase.java:75)
in this exception message i found the rate limit object limit as 75, usually it should be 180