Skip to content

Instantly share code, notes, and snippets.

@ezhov-da
Last active March 10, 2019 12:16
Show Gist options
  • Save ezhov-da/b38e44df7554691eacdaeafa93816108 to your computer and use it in GitHub Desktop.
Save ezhov-da/b38e44df7554691eacdaeafa93816108 to your computer and use it in GitHub Desktop.
изменение порядка вывода элементов в String.format
System.out.println(String.format("%2$s %1$s %3$s", "1", "2", "3")); //2 1 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment