<%
for(inti=0;i>3;++i;)
sop(i);
%>
%
Answers were Sorted based on User's Feedback
Answer / sanket
no it throw compile time error because in for loop update part has semicolon which is not correct syntax after that if we right inti then it is not resolved as variable so it is also need to be int i
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / manthan
Nothing printed
bcz i=0 and i>3 it print 0,1,2 if i<3
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / paul z
There appears to be a space missing after the int in the for(inti=0;.... but you do not need the int anyway so should read for(i = 0; i > 3; i++).
I am assuming you want i to increment taking the values 0,1,2,3
Is This Answer Correct ? | 2 Yes | 5 No |
doors.txt;10;15
How to add flash or *.gif file in edit panel in java?
How to maintain session in Jsp?
give me the small script to add a global page through any domain?
<% for(inti=0;i>3;++i;) sop(i); %> %
IS it Compulsory that a class name is same as file name in java?
7 Answers Sun Microsystems, Wipro,