As Richard has commented, it's just character, spaces, character - so use a loop to print "repetitive" lines.
For example, to print this line:
/ \
You could use this code:
System.out.print("/");
for (int i = 0; i < 6; i++)
System.out.print(" ");
System.out.println("\\");