Get your own Java server
public class Main {
  public static void main(String[] args) {
    String txt = "Hello\rWorld!";
    System.out.println(txt);
  }
}

              
Hello
World!