You need a loop and move the initialization of the variables outside of the loop.
int count = 0, count1 = 0, count2 = 0, count3 = 0, count4 = 0;
do {
...
} while(...);
More Related Contents:
- read line using java & maped filterd data [closed]
- select and delete a record without the information of primary key [closed]
- Does a finally block always get executed in Java?
- How to execute IN() SQL queries with Spring’s JDBCTemplate effectively?
- Simple popup java form with at least two fields
- Sort a Map by values
- How to create a generic array in Java?
- What operations in Java are considered atomic?
- Preemptive Basic authentication with Apache HttpClient 4
- How can I replace non-printable Unicode characters in Java?
- Stand-alone Java code formatter/beautifier/pretty printer? [closed]
- Shortcut “or-assignment” (|=) operator in Java
- Streaming large result sets with MySQL
- JFreeChart with selectable domain axis and zoom
- StringBuilder/StringBuffer vs. “+” Operator
- Spring 4 – addResourceHandlers not resolving the static resources
- How can I read an HttpServletReponses output stream?
- debug jdk source can’t watch variable what it is
- Why is the finalize() method in java.lang.Object “protected”?
- How to execute Python script from Java (via command line)?
- What if main method is inside “non public class” of java file?
- Fill fields in webview automatically
- Getting StaleElementReferenceException while trying print the link names
- Java execute a command with a space in the pathname
- How can I prevent gson from converting integers to doubles
- SLF4J – Logback: How to configure loggers in runtime?
- is meta http-equiv value cache control is not supported?
- java.net.UnknownHostException on Docker
- Create Index File(TOC) for merged pdf using itext library in java
- Error:Could not initialize class com.android.sdklib.repositoryv2.AndroidSdkHandler