Is this problem specific for java programming? You did not mention anything about how we can help via java programming