Search This Blog

If you like any posts in this blog then click this icon which is present under the post

Thursday, 11 August 2011

Labelled Loops


                Java has a facility to give labels to a block of statements.
The general form is

label : Looping statement

Where,
                label                            -  valid java variable name
                looping statement – for,do,while

Example

                L1 : while(condition)
                {
                                ----------------
                                ---------------
                }

No comments:

Post a Comment

Followers