Type the programs in NOTEPAD or DOS prompt itself, for Consol Application.
Type in NETBEANS or ECLIPSE for Window Application.
Here after , I am just typing the programs only..to know more about it , refer
Type in NETBEANS or ECLIPSE for Window Application.
Here after , I am just typing the programs only..to know more about it , refer
Introduction to JAVA
before doing any JAVA Programs.
***********************************************************************************************
import java.io.*;
class loop2
{
public static void main(String args[])
{
int i=0;
do
{
System.out.println("Welcome to JAVA");
i++;
}
while(i<=4);
}
}
=========================================================================
Output :
Welcome to JAVA
Welcome to JAVA
Welcome to JAVA
Welcome to JAVA
No comments:
Post a Comment