您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Extend Index

Extend Page # 3

Code listings

Listing of WhileExample.java

class WhileExample

{

public static void main( String args[] )

{

int counter;

counter = 0;

while( counter < 5 )

{

System.out.println( counter );

counter = counter + 1;

}

}

}

Back to top

 basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg