public static void printColumns(List<String> passwords, int termWidth) {

		System.out.println(Messages.getString("PwGenerator.N_SEPARATOR") //$NON-NLS-1$
				);

		for (int i = 0; i < passwords.size(); i++) {
			String password = (String) passwords.get(i);

			int numberOfColumns = termWidth / (password.length() + 1);
			if (numberOfColumns == 0)
				numberOfColumns = 1;

			if (((i % numberOfColumns) == (numberOfColumns - 1))) {

				System.out.print(password
						+ Messages.getString("PwGenerator.NEW_LINE")); //$NON-NLS-1$
			} else {
				System.out.print(password + ' ');
			}
		}
		System.out.println("\n" + Messages.getString("PwGenerator.N_SEPARATOR") //$NON-NLS-1$
		);
	}