Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes how to get values in an object? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

how to get values in an object?

maggie karve
Ranch Hand

Joined: Dec 29, 2009
Posts: 186

i want all values to come in b1.....???
Prithvi Sehgal
Ranch Hand

Joined: Oct 13, 2009
Posts: 774
Hello Maggie,

I don't think this question is related to SCJP forum. Please move it to Java in General or some other appropriate forum.

Anyhow, to add the objects inside the collection it should be this way



Hope this helps,


Prithvi,
My Blog, Follow me on Twitter,Scjp Tips, When you score low in mocks, Generics,Scjp Notes, JavaStudyGroup
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What isn't working?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Except for bad indentation I see nothing wrong with that code.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Please don't post the same question in multiple forums. I'm locking this one; continue in the other copy.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get values in an object?
 
Similar Threads
accessing values from servlets to jsp
how to load the values in one object?
java.lang.IllegalStateException: Cannot forward after response has been committed
jdbc
Iterator