request to help


request to help

how to write the program for the following details in java Employee Information System

An organization maintains the following data about each employee.

Employee Class


int Employee ID

String Name

Date dateOfBirth

Date dateOfJoining


Date checkDate(String dt) - Validate date entered by the user

setDateOfBirth(Date dob) - set valid date of birth

setDateOfBirth(Date doj) - set valid date of joining

print() - prints (system.out.println) the details of the employee


Prompt the user to enter dob and doj. Check if the date entered by the user is valid or not.

If invalid date is entered, then display an appropriate error message and ask the user to enter again.

If valid date is entered, then set the member variables of the employee object with the employee id (auto -increment, assigning 1 to first employee during every execution) and date details. Invoke function print() of the employee object to print employee details.

User may enter date in any of the following three formats:

10 November 1994
View Answers


Related Tutorials/Questions & Answers:
request to help
request to help   how to write the program for the following details in java Employee Information System An organization maintains the following data about each employee. Employee Class Fields: int Employee ID String Name
help  pls help me to get the code of a java program a program to perform different shapes in a menu using javaapplet
help  i need help with this code. write a java code for a method named addSevenToKthElement that takes an integer array, and an integer k as its arguments and returns the kth element plus 7. any help would be greatly
HELP  I need this code to open in a new web browser. but no matter what i do it wont please help?? Directive 055 Storage Requirements for the Upstream Petroleum Industry
Help...  Write a class that displays your first name vertically down the screen ?? where each letter uses up to 5 rows by 5 columns of a character input by you with a blank line between each letter
Help   i have a html file.. i have take input and store in database .. Tell me the steps to perform.. i have xampp it includes mysql,tomacat,apache. and how display the data from datbase .. please explain
Help!  thanks for ur code, I'd like to ask a question: after press "c" or "C", timer starts and after every delay ms, it'll print "This line is printed only once." or just print once. I'm writting a timer but it seems to perform
based on the percentage of cheating. please help me
help!!!!!!!!!!!!!!!!!!  import java.awt.; import java.sql.*; import javax.swing.*; import java.awt.event.* public class NewJFrame extends javax.swing.JFrame { JTextField1
How to send the request and get the request?
How to send the request and get the request?  how to send a request to a JSP file in another domain in the same server and get the request done i.e how to include JSP file of one domain to another doamin JSP within in the same
Regular Expression Help Help HELP!!!!
Regular Expression Help Help HELP!!!!  HI all I am very new to java... could help me to give a solution of how to retrieve the name and email add... the quotes ""07001", "MR Harish Ram","M.RHarish @"" Help is greatly
request this program
request this program  if three text box value in my program i want to check the three input boxes values and display greatest two values
Help me
Help me  HI I am using Tomcat6.0 this is the problem i got wen i run...; protected void doGet(HttpServletRequest request, HttpServletResponse response...("/login.jsp").forward(request,response); response.sendRedirect("/Simple
Help me
Help me  Hi, LWUIT is working in eclipse j2me for Symbian OS
ModuleNotFoundError: No module named 'request'
ModuleNotFoundError: No module named 'request'  Hi, My Python... 'request' How to remove the ModuleNotFoundError: No module named 'request... to install padas library. You can install request python with following command
request processing in servlets
request processing in servlets  how request processing is done in servlets and jsp   Please visit the following links: JSP Tutorials Servlet Tutorials Here, you will find several examples of processing request
help me
help me  HI. Please help me for doing project. i want to send control from one jsp page to 2 jsp pages... is it possible? if possible how to do
Configure Js request in Web.xml
Configure Js request in Web.xml  Hi all, I have 1 basic doubt,suppose i have 2 jsp,1 servlet,1 web.xml file.i need to redirect 1 page via servlet with help of web.xml file.Here just i need to redirect to
help me
help me  how to print from a-z, A-Z with exact order using for loop? Thanks for all concern
Help Me
Help Me  What is the source code for Sample example for Mortgage Calculator in J2ME language for developing Symbian
jsp request in struts1
jsp request in struts1  how the request for a JSp is processed in Struts1?Any JsP page in the end a servlet only.where is the URL pattern for this servlet
Help me
Help me  HI I am using Tomcat6.0 this is the problem i got wen i run... doGet(HttpServletRequest request, HttpServletResponse response) throws...;/login.jsp").forward(request,response); response.sendRedirect(&
Timeseries help
Timeseries help  hey....... can u plz help me in time series code. Can u provide a tie series code that is using the method Time series. I have seen... of Barchart???? plz help
help me
help me  i have done as u directed but nothing happens gud to me..... . i am using netbeans is that matter at all help me and take me out from trouble where to store jfree api to use it for j2ee based project
help me
help me  MY GLASSFISH SERVER NOT START PROPERLY help me warning shows DPL5404:Specification-Version for the optional package [ GNUJAXP ] in the jarfile [ C:\Program Files\Java\jdk1.7.0_02\jre\lib\ext\gnujaxp.jar
help me
help me  please send me the java code to count the number of similar words in given string and replace that word with new one
help me
help me  Hi I'm loges. I'm doing my final year project now, I have some problem in my project and i need some help on it. NowI'm doing a site... button, and nationality I'm using dropdown list. Please help me. your kindness
help me..
help me..   what are the component needed by grid computing, cloud computing and ubiquitous computing? discuss about the security of above computing. difference between that 3 computing
Help me
Help me  plz i want code of program to add real numbers and magic numbers in java example this input :- 5+3i-2+3i output:- 3+6i
Help in Struts2
Help in Struts2  Hi, in struts 2 how to get the values from db and show in jsp page using display tag or iterator tag thanks in advance
help pleas? -_-
help pleas? -_-  Write a Java program that reads from the user an integer N followed by N integers. The program then prints the product of odd integers, and, the sum of even integers