I just wondering is it possible to use one array as a parameter instead of a few parameters at printf()?
Say like:
String[] strArr = {"Name","Address", "Mobile"};
//text = () -> strArr.getNext();
System.out.printf("%1$s %1$10s %1$10s", text);
I have feeling it should be possible.