Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!

Yatendra Varshney

Greenhorn
+ Follow
since Jan 30, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yatendra Varshney

While connecting with the remote server for debugging, getting error - JVM attached failure. If anyone has idea about this error please help.

Thanks
12 years ago
Thanks Saif to clear picture to me.

- Yatendra
14 years ago
Please tell me if have any solution.

Thanks in advance.

Regrad,
Yatendra
14 years ago
suppose there is a method defined in servlet A and I want to call this method in servlet B.
14 years ago
Hi,

See, your code is running in follwoing manner:
1. Go to first for loop: size of list is 4 and value of i =0.
2. First Attampt: In for loop i < l.size() means 0<4, condition is true go to inside loop and remove "0" from the list and "1" moved to 0th location of the list, now value of list is 3 and i is 1.
Second Attampt: Again go to inside loop and remove "2" because "2" on the 1st position, and then "3" moved to 1th location and then i is 2 and size of list is 2 then condition is false.