Compare HTML documents using Java To diff two files. With our Java API you can detect the difference even if one character or one Word has been changed....the character level and at the word level. Even if only a single...has been changed, the entire word will be marked as modified....