private static void getInput() {
		rods = new ArrayList<Rod>();
		int index = 0;
		try {
			scanner = new Scanner(System.in);
			System.out.println("Enter total length capacity [int] : ");
			totalLength = scanner.nextInt();
			
			System.out.println("Enter number of rods for price list [int] : ");
			int numberOfRods = scanner.nextInt();
			
			for(int i = 0; i < numberOfRods; i++) {
				System.out.println("Add a new rod (Length[int], Price[double]) : ");
				String rodDetail = scanner.next();
				String[] rodDetailArr = rodDetail.split(",");
				int length = Integer.parseInt(rodDetailArr[0].trim());
				double price = Double.parseDouble(rodDetailArr[1].trim());
				rods.add(new Rod(index++, length, price));
			}
		}
		catch (InputMismatchException e) {
			System.err.println("YOUR INPUT IS NOT WELL FORMATTED. PLEASE CHECK INSTRUCTIONS.");
			System.exit(1);
		}
		catch (NumberFormatException e) {
			System.err.println("YOUR INPUT IS NOT WELL FORMATTED. PLEASE CHECK INSTRUCTIONS.");
			System.exit(1);
		}
		catch (Exception e) {
			// e.printStackTrace();
			System.err.println("YOUR INPUT IS NOT WELL FORMATTED. PLEASE CHECK INSTRUCTIONS.");
			System.exit(1);
		}

	}