change txt to java