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
Give reasons supporting that string is immutable.
What is difference between call by value and call by reference?
What is the scope or life time of instance variables?
What is a subsequence of a string?
What are the different ways to handle exceptions?
What is the list interface in java programming?
Is java an ide?
Is arraylist sorted in java?
What is method overloading and method overriding?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
How do you call a reference in java?
What are untrusted applets?
Explain different ways of creating a thread. Which one would you prefer and why?
What is treemap in java?
What are exception handling keywords in java?