I need to pass a String from one method to another method and now I'm a bit clueless.
The String values (callbackURL & donationId) I want to pass are inside this method:
public void postData() {
.
.
.
.
String callbackURL = tokens.nextToken();
String donationId = tokens.nextToken();
}
and I want to pass the values to another method, let's say it's called private examplePayment(). How am I able to perform that?