You can use Collection#iterator
:
Iterator<JRadioButton> it1 = category.iterator();
Iterator<Integer> it2 = cats_ids.iterator();
while (it1.hasNext() && it2.hasNext()) {
...
}
More Related Contents:
- Handler as a method parameter
- Simple way to repeat a string
- How can I pad an integer with zeros on the left?
- Regexp Java for password validation
- How to decrypt file in Java encrypted with openssl command using AES?
- Why is it not possible to extend annotations in Java?
- Java 8 lambdas, Function.identity() or t->t
- Java 7 language features with Android
- NoClassDefFoundError on Maven dependency
- How to calculate the intersection of two sets? [duplicate]
- Safe String to BigDecimal conversion
- How to avoid constructor code redundancy in Java?
- Java Ordered Map
- Using GSON to parse a JSON array
- Android Studio – No JVM Installation found
- Rounding a double to turn it into an int (java)
- tomcat server fails to start the server and application in STS [duplicate]
- How to validate a JTextField?
- Using streams to convert a list of objects into a string obtained from the toString method
- How to get the current logged in user object from spring security?
- Converting a Java collection into a Scala collection
- how to get the base url from jsp request object?
- Multiple dex files define /BuildConfig, can’t find the cause:
- CryptoJS AES encryption and Java AES decryption
- Best way of handling entities inheritance in Spring Data JPA
- How to convert a string to a HashMap? [duplicate]
- clearing or set null to objects in java
- Android: java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.String java.lang.Object.toString()’ on a null object reference
- How to get Java Version from batch script?
- Disable multiple date ranges jDateChooser