a) You should learn how to use a PreparedStatement correctly (eg using parameters) b) You can use Double.parseDouble and catch any exceptions that may be thrown - alternatively use a regular...