public static void main(String[] args) {
		/**
		 *  
		 */
		ArrayList<Oak> list3 = new ArrayList<Oak>();
		/**
		 *    
		 */
		Oak object = new Oak();
		while (true) {
			/**
			 * 
			 */
			WorkWithOak.getMenu();
			/**
			 *   
			 */
			Scanner scan = new Scanner(System.in);
			System.out.println("Input menu");
			int input = scan.nextInt();
			switch (input) {

			case 1: {
				WorkWithOak.addOak(list3);
				break;
			}
			case 2: {
				WorkWithOak.showOaks(list3);
				break;
			}
			case 3: {
				WorkWithOak.editOak(list3);
				break;
			}
			case 4: {
				WorkWithOak.removeOak(list3);
				break;

			}
			case 5: {
				Collections.sort(list3, object);
				break;
			}
			case 6: {
				WorkWithFileOaks.writeFileOaks(list3);
				break;
			}
			case 7: {
				WorkWithFileOaks.readFileOaks(list3);
				break;
			}
			case 8: {
				return;
			}
			default: {
				System.out.println("Error! Input again");
			}
			}

		}

	}