Как уменьшить строку с помощью printf на Java
System.out.printf("%2.2s", "Hi there!");
Good Grouse
System.out.printf("%2.2s", "Hi there!");