--- a/src/java.sql/share/classes/java/sql/PreparedStatement.java Fri Jul 26 17:15:17 2019 +0000
+++ b/src/java.sql/share/classes/java/sql/PreparedStatement.java Fri Jul 26 15:06:22 2019 -0400
@@ -47,12 +47,13 @@
* <P>
* In the following example of setting a parameter, <code>con</code> represents
* an active connection:
- * <PRE>
+ * <pre>{@code
+ * BigDecimal sal = new BigDecimal("153833.00");
* PreparedStatement pstmt = con.prepareStatement("UPDATE EMPLOYEES
* SET SALARY = ? WHERE ID = ?");
- * pstmt.setBigDecimal(1, 153833.00)
- * pstmt.setInt(2, 110592)
- * </PRE>
+ * pstmt.setBigDecimal(1, sal);
+ * pstmt.setInt(2, 110592);
+ * }</pre>
*
* @see Connection#prepareStatement
* @see ResultSet