Skip to content

Commit

Permalink
Updated the content as per comment from Yunxu
Browse files Browse the repository at this point in the history
Updated the content as per comment from Yunxu
  • Loading branch information
nidhibhammar committed Oct 28, 2021
1 parent 1af889f commit 4dc0b6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ At this point, the `PreparedStatement` has parsed and planned the `INSERT` state
The `AddEmployee()` method prompts the user for an employee ID and name and calls `setObject()` with the values supplied by the user:

```text
stmt.setObject(1,new Integer(c.readLine("ID:"))); stmt.setObject(2, c.readLine("Name:"));
stmt.setObject(1,new Integer(c.readLine("ID:")));
stmt.setObject(2, c.readLine("Name:"));
```

And then asks the PreparedStatement object to execute the statement:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ At this point, the `PreparedStatement` has parsed and planned the `INSERT` state
The `AddEmployee()` method prompts the user for an employee ID and name and calls `setObject()` with the values supplied by the user:

```text
stmt.setObject(1,new Integer(c.readLine("ID:"))); stmt.setObject(2, c.readLine("Name:"));
stmt.setObject(1,new Integer(c.readLine("ID:")));
stmt.setObject(2, c.readLine("Name:"));
```

And then asks the PreparedStatement object to execute the statement:
Expand Down

0 comments on commit 4dc0b6d

Please sign in to comment.