wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes find middle element of linkedlist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "find middle element of linkedlist" Watch "find middle element of linkedlist" New topic
Author

find middle element of linkedlist

sivakondalu dokku
Greenhorn

Joined: Jan 17, 2012
Posts: 5
Welcome Coderanch


please suggest me, how to insert objects into LinkedList and Find middle element ?









ThankQ
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321




hope it helps.

Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38463
    
  23
But why?
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2249
    
  47
If there's an even number of elements then there isn't a middle element.
 
 
subject: find middle element of linkedlist