Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Android Security Essentials Live Lessons this week in the Android 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.
subject: What is wrong with below code?
Similar Threads
C# Generic Collection - List<object> vs List<string>
[SCJP] Generics questions form SCJP 5 study Guide
Question about Generics in Arrays
SCJP5 Study Guide Q2. Page 611/622 -- Generics and Collections
KB question pg 611