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
What is treeset and treemap in java?
Name few java.lang classes introduced with java 8 ?
Can memory leak in java?
How to make a read-only class in java?
What is the purpose of main function in java?
What are the different collection views provided by maps?
What is method reference?
Write a java program to generate fibonacci series ?
What are the main uses of the super keyword?
Can finally block be used without a catch?
What is the final variable?
What are advantages of using Java?s layout managers than windowing systems?
Does treeset allow null in java?
Can a abstract class be declared final?
Define nashorn in java8.