my dog learned polymorphism
The moose likes Java in General and the fly likes What is wrong with below code? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "What is wrong with below code?" Watch "What is wrong with below code?" New topic

What is wrong with below code?

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613

The above code is saving only one description type 10 times in the bmDescription.

Can someone please let me know what is wrong with above code.

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

My guess is that is what is in bmList.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
himanshu.harish agrawal
Ranch Hand

Joined: Oct 18, 2010
Posts: 47

Programmatically, code is absolutely fine and there are no chances of unexpected output until your bmList is having unexpected data.
I agree. Here's the link:
subject: What is wrong with below code?
It's not a secret anymore!