add Java solution to text benchmark