android - confusing java: a method calls another method which returns something -


I am working on this and the following code has stumped me:

  Public RequestQue GetRequestQueue () {if (mRequestQueue == faucet) {mRequestQueue = Volley.NewRequestQueue (getApplicationContext ()); } Return mRequestQueue; } Public ImageLoader getImageLoader () {getRequestQueue (); // getRequestQueue returns an object, but we do not have any variable to get it .. How is this possible? If (mImageLoader == faucet) {mImageLoader = new image loader (it. M.E.E.E.UEUUUUU, new LRUBitMapCach ()); } Come back. }   

The problem is that getRequestQueue returns an object, but we do not have any variables to achieve it. How is this possible?

Example: It should not be this way: RequestQuee X = get requestQueue ();

So, what request can we work with, when we did not take it in one variable?

getRequestQueue () , in contrast to its name, actually with side effects One reason is this method that it makes sense to call that method and to abandon the value in return. After the law returns the status of the program will change.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -