I was bored, and we needed to print our name on the screen for the Java class that I’m taking so I thought to myself: “What is the most complicated, conveluted, hardest way you could do this?” Well i found out... its this way, mind you we only needed to print our name on the screen and could have been done in one line System.out.println(“+--------------------+\n| |”+“\n| ”+“Jon Martin”+“ |\n”+“| |\n+--------------------+”); .
for (int i = 0; i <= 110; i++) {
if ((i > 23 && i < 44) || (i > 45 && i < 51) || (i > 59 && i < 65) || (i > 67 && i < 88))
System.out.print(“ ”);
if (i == 1 || i == 22 || i == 89 || i == 110)
if (i == 1 || i == 89)
System.out.print(“+”);
else
System.out.print(“+\n”);
else if (i == 23 || i == 44 || i == 45 || i == 66 || i == 67 || i == 88)
if (i == 44 || i == 66 || i == 88)
System.out.print(“|\n”);
else
System.out.print(“|”);
else if (i >= 1 && i <= 22)
System.out.print(“-”);
else if (i >= 89 && i <= 110)
System.out.print(“-”);
else if (i > 50 && i < 61)
if (i == 51)
System.out.print(“Jon Martin”);
}
now thats a very complicated way to write my name! l8r.
..::j0n::..