Thursday, 19 November 2015

Java Tutorial : Java do-while statement


Click here to watch in Youtube :
https://www.youtube.com/watch?v=696TUx09L94&list=UUhwKlOVR041tngjerWxVccw

Click the below Image to Enlarge
Java Tutorial : Java do-while statement 
DoWhileDemo.java
class DoWhileDemo
{
    public static void main(String[] args)
    {
        int count = 1;
        do
        {
            System.out.println("Count is: " + count);
            count++;
        }while (count < 4);
    }
}
Output
Count is: 1
Count is: 2
Count is: 3
Click the below link to download the code:
https://sites.google.com/site/javaee4321/java/ControlFlowDemo-do-while-App.zip?attredirects=0&d=1

Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/ControlFlowDemo-do-while-App

Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/08783475a968761a2cf4b3fc7275842653545b35/BasicJava/ControlFlowDemo-do-while-App/?at=master

See also:

  • All JavaEE Viedos Playlist
  • All JavaEE Viedos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • No comments:

    Post a Comment