public static double getAtomicWeight(Atom currentAtom) {

		double atomWeight = 0;
		String atomType = Character.toString(currentAtom.getAtomType()
				.charAt(0));
		String[] atomTypeArray = { "H", "N", "C", "O", "S" };
		double[] atomWeightArray = { 1.00794, 14.0067, 12.0107, 15.9994, 32.065 };

		for (int i = 0; i < atomTypeArray.length; ++i) {
			if (atomType.equals(atomTypeArray[i])) {
				atomWeight = atomWeightArray[i];
			}
		}
		return atomWeight;
	}