if for and while loop java code example
Example: do while loop java
package com.journaldev.javadowhileloop;
public class JavaDoWhileLoop {
public static void main(String[] args) {
int i = 5;
do {
System.out.println(i);
i++;
package com.journaldev.javadowhileloop;
public class JavaDoWhileLoop {
public static void main(String[] args) {
int i = 5;
do {
System.out.println(i);
i++;