Main.java:19: error: no suitable method found for substring(no arguments)
System.out.printf("%" + maxLength + "d", v2, v2.substring()-maxLength);
^
method String.substring(int) is not applicable
(actual and formal argument lists differ in length)
method String.substring(int,int) is not applicable
(actual and formal argument lists differ in length)
1 error