I have no problem getting an access token manually. Till now for developing I was fetching the access token manually but now I need to embed this process in my application as well. So I was wondering how should I make my application written in java to communicate with web browser which ask user to authorize my app, which in turn gives me a code which is then used by me in same http method to get the access token.,
By reading documentation!
Its all there and if you not willing to search, we will not be doing for you. You ask general question you get general answer