Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

for with two values java

public class forloop {
    public static void main(String[] args) {
        // for loop with two variable i & j
        // i will start with 0 and keep on incrementing till 10
        // j will start with 10 and keep on decrementing till 0
        for (int i = 0, j = 10; i < 10 && j > 0; i++, j--) {
            System.out.println("i = " + i + " :: " + "j = " + j);
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: convert input stream to string java 
Java :: How do you nuke japan 
Java :: what are the hibernate dependencies 
Java :: spigot custom join message 
Java :: random item from arraylist 
Java :: java log base 2 
Java :: know the version of maven 
Java :: change font size java swing 
Java :: spring boot security maven 
Java :: java check if number is even 
Java :: remove double quote java 
Java :: java random boolean 
Java :: java cmd install raspbian 
Java :: stringjoiner stream java 
Java :: print list in java 8 
Java :: java set textview color 
Java :: from string to int android studio 
Java :: The shrinker may have failed to optimize the Java bytecode. To disable the shrinker, pass the `--no-shrink` flag to this command. 
Java :: set fontcolor of jframe java 
Java :: bukkit runnable 
Java :: showinputdialog joptionpane 
Java :: Duplicate class android.support.v4.app. 
Java :: Could not find method compile() 
Java :: java take screenshot 
Java :: jfilechooser file filter 
Java :: java taking console input 
Java :: textarea user select disable java swing 
Java :: java ee service formparam optional 
Java :: repeat password in joi 
Java :: java get last element of list 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =