Tuesday 17 November 2015

Java Tutorial : Java Block


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

Click the below Image to Enlarge
Java Tutorial : Java Block 
BlockDemo.java
class BlockDemo
{
    public static void main(String[] args)
    {
        boolean condition = true;
        if (condition)
        { // begin block 1
            System.out.println("Condition is true.");
        } // end block one
        else
        { // begin block 2
            System.out.println("Condition is false.");
        } // end block 2
    }
}
Output
Condition is true.
Click the below link to download the code:
https://sites.google.com/site/javaee4321/java/BlockDemoApp.zip?attredirects=0&d=1

Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/BlockDemoApp

Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/08783475a968761a2cf4b3fc7275842653545b35/BasicJava/BlockDemoApp/?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