Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Java Do While program

PROGRAM:

To show use of Do While.

public class DoWhile {
            public static void main(String args[])
            {
                        int i=1;
                        do
                        {
                                    System.out.println(i);
                                    i++;
                        }
                        while(i<=10);
            }
}

OUTPUT:
1
2
3
4
5
6
7
8
9
10