Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Project8
- {
- public static void main(String args[])
- {
- System.out.print(" ");
- line();
- System.out.println();
- box();
- line2();
- System.out.println();
- text();
- line();
- }
- public static void line()
- {
- int j=10;
- System.out.print("+");
- for (int dash=1; dash<=j*3; dash++)
- {
- System.out.print("-");
- }
- System.out.print("+");
- }
- public static void box()
- {
- int j=10;
- for (int i=1; i<=j; i++) //line number
- {
- for (int k=1; k<=j-i; k++)//number of spaces over to begin with
- {
- System.out.print(" ");
- }
- System.out.print("/");
- for (int space=1; space<=3*j-3*i; space++)
- {
- System.out.print(" ");
- }
- for (int three=1; three<=3; three++)
- {
- System.out.print("_");
- }
- System.out.print("/");
- for (int two=1; two<=i-1; two++)
- {
- System.out.print("__/");
- }
- for (int slashtwo=1; slashtwo<=i-1; slashtwo++)
- {
- System.out.print("/");
- }
- System.out.println();
- }
- }
- public static void line2()
- {
- int j=10;
- System.out.print("+");
- for (int dash=1; dash<=29; dash++)
- {
- System.out.print("-");
- }
- System.out.print("+");
- for (int slash=1; slash<=j; slash++)
- {
- System.out.print("/");
- }
- }
- public static void text()
- {
- int j=10;
- for (int i=1; i<=5; i++)
- {
- for (int wordstwo=1; wordstwo<=1; wordstwo++)
- {
- System.out.print("| Building Java Programs |");
- }
- for (int slash=1; slash<=12-2*i; slash++)
- {
- System.out.print("/");
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement