how to print a numbers from 1 to 100 with out using control
structures?
Answer Posted / friend
int i = 1;
System.out.println(i++);
System.out.println(i++);
System.out.println(i++);
System.out.println(i++);
System.out.println(i++);
....................
......................
..................
................
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
Can we force garbage collector to run ?
What is the difference between replace and replace all?
What are the types of inner classes (non-static nested class) used in java?
What data structures are used to perform recursion?
Can a constructor be private and how are this() and super() method used with constructor?
can used Protected Class outside Function.?
Write a java program to print fibonacci series?
How to create packages in java?
Explain the importance of thread scheduler in java?
What is stack example?
What is a bufferedreader?
Is char a data type in java?
How do you delete a list in java?
What is the difference between a vector & an array list?
What is the relationship difference the canvas class and the graphics class?