Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1.  
  2. import java.util.Scanner;
  3.  
  4. public class Main {
  5.     public static void main(String[] args) {
  6.  
  7.  
  8.         Scanner input = new Scanner(System.in);
  9.         Generator Tree = new Generator();
  10.  
  11.         System.out.println("Lines of tree: ");
  12.        
  13.         try
  14.         {
  15.             x = input.nextInt();
  16.         }
  17.         catch (InputMismatchException e)
  18.         {
  19.             e.printStackTrace();
  20.         }
  21.         Tree.setRows(x);
  22.  
  23.         Tree.printTree();
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement