fork(4) download
  1. import java.util.*;
  2.  
  3. class Main
  4. {
  5. public static String getLine(String bankID, String acctID, String companyName, String month, String day, String year, String seq, String typeCode)
  6. {
  7. return new Formatter().format("%3.3s%12.12s%20.20s%2.2s%2.2s%2.2s%12.12s%2.2s",
  8. bankID, acctID, companyName, month,
  9. day, year, seq, typeCode).toString();
  10. }
  11.  
  12. public static void main(String[] args)
  13. {
  14. String tester = "123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  15. System.out.println(getLine(tester, tester, tester, tester, tester, tester, tester, tester));
  16. }
  17. }
Success #stdin #stdout 0.03s 245632KB
stdin
Standard input is empty
stdout
123123456789ABC123456789ABCDEFGHIJK121212123456789ABC12