How to validate overlapping no in java

Posted by anandhinaveen on Stack Overflow See other posts from Stack Overflow or by anandhinaveen
Published on 2010-04-15T13:44:19Z Indexed on 2010/04/15 13:53 UTC
Read the original article Hit count: 131

Filed under:

I Have dynamically render row. WE have fields like FROM TO.

For eg: From     TO
        2        10,
        2        3,
        8        12

It cannot accept this combination row.. That means no number should be overlapping.

For eg: From     TO
        2        10,
        0        1,
        11       12

This combination is allowed.the row may also increased.

I need need to write a validation for this overlapping. Can any 1 help to solve this problem.

© Stack Overflow or respective owner

Related posts about java