HOW TO PRINT A NO IN WORDS USING WHILE LOOP THE NO WILL BE
PRINTED WHEN IT WILL BE IN THE RANGE BETWEEN 1 AND 3?

Answer Posted / jay harkhani

class WhileLoop
{
public static void main(String args[])
{
int i=1;
while(i!=4)
{
System.out.println("NO");
i++;
}
}
}

Is This Answer Correct ?    5 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by ordered and sorted in collections in java?

789


What are the two categories of data types in the java programming language?

729


What are the differences between this and super keyword?

740


Explain what pure virtual function is?

793


What are the characteristics of java?

729


What are the advantages of java?

752


Can a constructor be protected?

785


When will you define a method as static?

796


What is string and example?

781


Can anonymous class have constructor?

780


Why string is a class?

728


How do you declare a string variable?

743


What method is used to specify a container's layout in java programming?

787


What are the different types of constructor?

710


why we use merge option in hybernate pls give a ex snippet

1688