This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

getting List from Wired bean  RSS feed

 
Ranch Hand
Posts: 1310
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is a part of my xml file


this my piano class


this is my saxphone class


this is my main class

how can i get the piano or saxophone bean from c variable.is this way correct or not.
I need to check how the list is working on spring?
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should work. What is the problem?
 
sam liya
Ranch Hand
Posts: 1310
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to get Piano or Saxophone object.But ican't get t using this code?
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm still not sure what the problem is--are you saying you're not getting the collection?
 
sam liya
Ranch Hand
Posts: 1310
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am getting the collection.But i can't get the piano object from it?
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean the collection is empty or you don't know how to get each item from the collection?
If you want to get each item from the collection, you can use collection.iterator(), and Iterator#hasNext, Iterator#next methods. You can read JavaDoc for more info.
 
Seriously? That's what you're going with? I prefer this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!