Click here to Skip to main content
15,920,688 members
Home / Discussions / Java
   

Java

 
AnswerRe: Threads and UML Pin
DaveAuld27-Sep-10 9:57
professionalDaveAuld27-Sep-10 9:57 
GeneralRe: Threads and UML Pin
David Skelly27-Sep-10 22:50
David Skelly27-Sep-10 22:50 
GeneralRe: Threads and UML Pin
DaveAuld27-Sep-10 23:58
professionalDaveAuld27-Sep-10 23:58 
AnswerRe: Threads and UML Pin
David Skelly27-Sep-10 22:59
David Skelly27-Sep-10 22:59 
QuestionArrayList Pin
future383927-Sep-10 2:28
future383927-Sep-10 2:28 
AnswerRe: ArrayList Pin
Cedric Moonen27-Sep-10 2:47
Cedric Moonen27-Sep-10 2:47 
GeneralRe: ArrayList Pin
future383927-Sep-10 3:25
future383927-Sep-10 3:25 
GeneralRe: ArrayList Pin
Cedric Moonen27-Sep-10 4:36
Cedric Moonen27-Sep-10 4:36 
I think you are missing some fundamental concepts on object oriented programming. It would help if you read your class book or some tutorial about classes first.


future3839 wrote:
this class shows multiple items.so, do I need to call item or items?


Which class will contain multiple items ? The dataInteraction class or the Item class ? Furthermore, dataInteraction is I guess not a really useful name. What do you want to do with the list of objects ? You probably don't need the dataInteraction class anyway but use the list directly.


future3839 wrote:
the reason I put inside the method is, I wanna call this method in another class to assign data.


If you create the list inside the method, each time the method is called, a new list is created. Furthermore, the method has to return the list (you forgot the return type of the method) otherwise it will be "lost" (you don't have any reference to it anymore so you can't manipulate it).
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

GeneralRe: ArrayList Pin
Richard MacCutchan27-Sep-10 5:41
mveRichard MacCutchan27-Sep-10 5:41 
GeneralRe: ArrayList Pin
Cedric Moonen27-Sep-10 7:44
Cedric Moonen27-Sep-10 7:44 
GeneralRe: ArrayList Pin
Luc Pattyn27-Sep-10 8:44
sitebuilderLuc Pattyn27-Sep-10 8:44 
GeneralRe: ArrayList Pin
David Skelly27-Sep-10 22:47
David Skelly27-Sep-10 22:47 
GeneralRe: ArrayList Pin
Luc Pattyn28-Sep-10 2:14
sitebuilderLuc Pattyn28-Sep-10 2:14 
GeneralRe: ArrayList Pin
David Skelly28-Sep-10 3:16
David Skelly28-Sep-10 3:16 
GeneralRe: ArrayList Pin
Richard MacCutchan27-Sep-10 21:36
mveRichard MacCutchan27-Sep-10 21:36 
GeneralRe: ArrayList Pin
Nagy Vilmos28-Sep-10 1:45
professionalNagy Vilmos28-Sep-10 1:45 
GeneralRe: ArrayList Pin
Richard MacCutchan28-Sep-10 2:18
mveRichard MacCutchan28-Sep-10 2:18 
QuestionHow to implement normal Table control with GEF? Pin
sinron26-Sep-10 21:45
sinron26-Sep-10 21:45 
QuestionHow to refresh JTable of Frame one on close of Frame two Pin
Alok Sharma ji26-Sep-10 21:29
Alok Sharma ji26-Sep-10 21:29 
AnswerRe: How to refresh JTable of Frame one on close of Frame two Pin
David Skelly27-Sep-10 22:40
David Skelly27-Sep-10 22:40 
QuestionDefault form Pin
future383926-Sep-10 17:12
future383926-Sep-10 17:12 
AnswerRe: Default form Pin
David Skelly27-Sep-10 22:38
David Skelly27-Sep-10 22:38 
Questionjava VS javafx Pin
future383926-Sep-10 15:33
future383926-Sep-10 15:33 
AnswerRe: java VS javafx Pin
David Skelly27-Sep-10 22:35
David Skelly27-Sep-10 22:35 
GeneralRe: java VS javafx Pin
RijoPanakkal26-Jul-13 20:52
professionalRijoPanakkal26-Jul-13 20:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.