deleted 20 characters in body
Source Link
Addison Crump
  • 11k
  • 1
  • 38
  • 86

Java 8, 158158 118 bytes

This is just a start, but hey, FGITWFTW.

void x(String n)->{intString o="";int z=n.lastIndexOf("-"),i=z;for(;i-->0;System.out.println(">0;o+="/")\n")for(int y=i;y-->0;)System.out.print(">0;o+=" ");System.out.print(n;return o+n.substring(z+2));}

Call with new <program name>().x(<box>);Expects input as a string, returns the box.

Java, 158 bytes

This is just a start, but hey, FGITWFTW.

void x(String n){int z=n.lastIndexOf("-"),i=z;for(;i-->0;System.out.println("/"))for(int y=i;y-->0;)System.out.print(" ");System.out.print(n.substring(z+2));}

Call with new <program name>().x(<box>);.

Java 8, 158 118 bytes

This is just a start, but hey, FGITWFTW.

n->{String o="";int z=n.lastIndexOf("-"),i=z;for(;i-->0;o+="/\n")for(int y=i;y-->0;o+=" ");return o+n.substring(z+2);}

Expects input as a string, returns the box.

Source Link
Addison Crump
  • 11k
  • 1
  • 38
  • 86

Java, 158 bytes

This is just a start, but hey, FGITWFTW.

void x(String n){int z=n.lastIndexOf("-"),i=z;for(;i-->0;System.out.println("/"))for(int y=i;y-->0;)System.out.print(" ");System.out.print(n.substring(z+2));}

Call with new <program name>().x(<box>);.