I need to assign multiple boolean variables to false in java (As a part of my Android Application)
What is the best way to do that?
Is the following method correct? Does it have any drawbacks/pitfalls?
boolean showDownloadButton, showOpenFileButton, showProgressBar, showErrorMessage, showDownloadWhenReady;
showDownloadButton = showProgressBar = showOpenFileButton = showErrorMessage = showDownloadWhenReady = false;