public ArrayList<Object> selectPath() {
		if (paths.size() == 0) {
			System.out.println("Path not found.");
		} else {
			if (paths.size() == 1) {
				System.out.println("One path founded.");
				printPaths();
				return paths.get(0);
			} else {
				Scanner scanner = new Scanner(System.in);
				boolean val = true;
				String opt = "";
				int selected = 0;
				System.out.println("Several paths founded, select one: ");
				printPaths();

				do {
					val = true;
					System.out.println("Write the number of path: ");

					opt = scanner.nextLine();

					if (Util.isInteger(opt)) {
						selected = Integer.parseInt(opt);

						if (selected < 1 || selected > paths.size()) {
							System.err.println("Out range number. Try again.");
							val = false;
						}
					} else {
						System.err
								.println("The number isn't a integer. Try again.");
						val = false;
					}
				} while (!val);

				scanner.close();
				return paths.get(selected - 1);
			}
		}

		return null;
	}