Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class challenge
- {
- public static void main(String [] args)
- {
- int line=1;
- int space=1;
- int dot=1;
- spaceline(space);
- toplines(line);
- botlines(line);
- }
- public static void spaceline (int space)
- {
- for(space=1; space<=18; space++)
- {
- System.out.print(" ");
- }
- System.out.println("");
- }
- public static void toplines (int line)
- {
- for(line=1; line<=4; line++)
- {
- for(int space=1; space<=(line*-2)+8; space++)
- {
- System.out.print(" ");
- }
- System.out.print("<>");
- for(int dot=1; dot<=(line*4)-4; dot++)
- {
- System.out.print(".");
- }
- System.out.println("<>");
- }
- }
- public static void botlines (int line)
- {
- for(line=1; line<=4; line++)
- {
- for(int space=1; space<=(line*2)-2; space++)
- {
- System.out.print(" ");
- }
- System.out.print("<>");
- for(int dot=1; dot<=(line*-4)+16; dot++)
- {
- System.out.print(".");
- }
- System.out.println("<>");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment