Add another call to JOptionPane with the text of the message you want shown to the user. Get the response and convert it to a number as you have done already for the stockNumber.
Type: Posts; User: Norm
Add another call to JOptionPane with the text of the message you want shown to the user. Get the response and convert it to a number as you have done already for the stockNumber.