This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes divide a message into two groups(even and odd groups) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Distributed Java
Bookmark "divide a message into two groups(even and odd groups)" Watch "divide a message into two groups(even and odd groups)" New topic
Author

divide a message into two groups(even and odd groups)

sudharani Savadi
Ranch Hand

Joined: Feb 23, 2011
Posts: 30

Hi buddies,

I have a requirement, in that I need to divide the whole data or message into two groups i.e. odd and even groups such as M1,M2..M2n represents even number of messages and M1,M3....M2n-1 represents odd number of messages so can anybody suggest me in finding out the solution. Thanks in advance.



With Regards
Sudha
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

You need to give more details about your environment.
If it is a messaging system and the queue is ordered, then order of receiving can help you determine the sequence.
However, you should explain more about the intentions of this division (partition)


apigee, a better way to API!
 
GeeCON Prague 2014
 
subject: divide a message into two groups(even and odd groups)