Click here to Skip to main content
15,902,275 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Basically it's for a shop management "standalone" system that has products and customers,shopkeeper and wholesaler and all that stuff. So I need a Simple Java code (as I am new to the language) that checks the stock limit of a particular product in an 'if condition' and generates warning when the stock deceeds the given limit. For example, if there are 60 sunglasses of RayBan,when the stock reduces to 10 a warning must be generated asking for restocking of sunglasses.
Posted
Comments
Richard MacCutchan 10-Feb-15 11:45am    
Sorry, but this site does not provide code to order, or do your homework. You do the development, and when you come up against a specific problem people will try to help you.

1 solution

You may go with following approach

Use Quartz Scheduler API - This API will help scheduling an event on fixed interval of time and make a call to particular class of your application.

In that Class, you could write a code to check for the required condition and based upon that trigger a warning like mail.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900