Longest Lines in java