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
Which class contains a method: cloneable or object?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
What is matcher in java?
Can list have duplicates in java?
What is skeleton and stub?
Can a constructor be protected?
Why we used vector class?
What is the role of garbage collector in java?
What is difference between static variable and global variable?
What are keywords give examples?
How do I run java on windows?
Explain access modifiers in java.
What is the format specifier?
How to do encapsulation in java?
What are exception handling keywords in java?