Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- Generator Tree = new Generator();
- System.out.println("Lines of tree: ");
- try
- {
- x = input.nextInt();
- }
- catch (InputMismatchException e)
- {
- e.printStackTrace();
- }
- Tree.setRows(x);
- Tree.printTree();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement