I want to enter value in console at run-time (during execution), rather than hard code it manually. I have following code:
System.out.println("Open the following URL and grant access to your account:");
System.out.println(requestToken.getAuthorizationURL());
String authURL=requestToken.getAuthorizationURL();
//Generate a pin number from auth url by login to twitter account.
String pinNum=GenratePIN_LoginTwitter.accessTokenForTwitter(authURL);
System.out.print("Enter the PIN(if aviailable) or just hit enter.[PIN]:");
String pin =br.readLine();
Here I want to insert the value of 'pinNum' in console and proceed with the next steps.Please suggest regarding it.