out.print("\nError: Hi "+name+", The price you entered must be more than the current price of the security. Note that the current price of " +symbol+ " is "+currentPrice+"\nPlease re-enter your price to bid : ");
out.flush();
}
if(price.equals("quit"))
connectionSocket.close();
}catch(NumberFormatExceptione){
out.print("\nError You entered an invalid value for price. Exiting the Auction server ....Try again");
out.flush();
connectionSocket.close();
}
out.print("\nOk "+name+",Your price accepted. Please enter 'confirm' and press enter to comfim bidding. Or enter 'quit' and press enter to quit bidding.\n");