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


Please Help Members By Posting Answers For Below Questions

Is map ordered in java?

537


How does a cookie work in Servlets?

351


What are heap memory and stack memory and what are memory tables.

511


What is the inheritance?

551


What are voids?

533






What is the purpose of the main method?

545


What is difference between arraylist and list in java?

585


What is jar?

635


In how many ways we can do synchronization in java?

529


Difference between java and javascript

586


How would you use Bubble Sort to sort the number of elements?

584


What are the benefits of operations in java?

493


What is string :: npos?

583


What is java virtual machine? Explain

571


What is the formula to calculate percentage?

535