Home Answers Viewqa Java-Beginners request to help

 
 


seemasultana
request to help
0 Answer(s)      a year and 5 months ago
Posted in : Java Beginners

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

Date dateOfBirth

Date dateOfJoining

Methods:

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

Algotithm:

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
10/11/1994
10-NOV-1994
View Answers









Related Pages:
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
Problem in request object
Problem in request object  I have created a form where I have file... is not processing while the rest of the data is being processed.Please Help me out...=null; String description=null; String path1=null; out.println(request); path1
Problem in request Object
Problem in request Object  I have created a form where I have file input along with other inputs. I am using jsp to process the inputs. File input is not processing while the rest of the data is being processed.Please Help me out
ServletFileUpload request getInputStream - JSP-Servlet
ServletFileUpload request getInputStream  Hi All, I want multiple...(HttpServletRequest request, HttpServletResponse response) throws... = ServletFileUpload.isMultipartContent(request); if (!isMultipart) { } else { InputStreamReader
getHeader() Method Of The Request Object
getHeader() Method Of The Request Object  ... illustration about the getHeader() method of the request object. Here, you will learn.... Through the help of the section you will get the complete information about
Spring Handling Form Request
Spring Handling form Request By help of this tutorial we are going explain.... This annotation specify the request URL. It first matches the request URL is the request URL is equal to the mapping RequestMapping URL then it returns
compre request dispatcher and send redirectmethod - Framework
compre request dispatcher and send redirectmethod  compre request dispatcher and send redirectmethod  Hi I am sending a link where u...://www.roseindia.net/help/java/s/forward-vs-redirect.shtml thanks
Passing classid or name in request using Jquery
Passing classid or name in request using Jquery  Hi, I am new to JQuery.I have a servlet that I am calling using jquery.I have some parameters like... with parameter so that I save my file with that name. Can some body help me as I am
How to get country locale from a http request
to implement business logic. Can anyone help me out to get this done. any help
pie chart flex and sum from hql request
to define when i use the shut.plz help me
forwarding request to a jsp when user clicks on back button in ie
forwarding request to a jsp when user clicks on back button in ie  Hi... we forward request to a jsp page whenever user clicks on back button?. If it is possible, please help me in resolving this problem. Thanks & Regards, Suresh
Help me
Help me  HI I am using Tomcat6.0 this is the problem i got wen i run... serialVersionUID = 1L; protected void doGet(HttpServletRequest request...("/login.jsp").forward(request,response); response.sendRedirect("/Simple/jsp
Help me
Help me  HI I am using Tomcat6.0 this is the problem i got wen i run...;p>protected void doGet(HttpServletRequest request, HttpServletResponse...;)){ // getServletContext().getRequestDispatcher("/login.jsp").forward(request,response
forwarding request to a jsp from a filter and displaying image in that jsp
forwarding request to a jsp from a filter and displaying image in that jsp ... And i am forwarding request...").forward(request, response); Above line is forwarding the request to login.jsp
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
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
Request[/searchMenu] does not contain handler parameter named 'function'. This may be caused by whitespace in the label text. - Subversion
Request[/searchMenu] does not contain handler parameter named 'function... struts DispatchAction class .i am facing error like Request[/searchMenu] does... help me inthis regard
open source help desk
for help desk management in both commercial and Open Source worlds. Request...Open Source Help Desk Open Source Help Desk Software As my help desk... of the major open source help desk software offerings. I?m not doing
help me in solving this error
help me in solving this error  Hello, i have installed tomcat 6.0, i... void doGet(HttpServletRequest request, HttpServletResponse response) throws...")){ // getServletContext().getRequestDispatcher("/login.jsp").forward(request
Java and JSP help
the following 1. The date and time of each request. You may decide on the display format of the date and time yourself. 2. The text of each request (i.e. the actual question asked by the user). 3. The status of the request (either â??pendingâ
Java and JSP help
the following 1. The date and time of each request. You may decide on the display format of the date and time yourself. 2. The text of each request (i.e. the actual question asked by the user). 3. The status of the request (either â??pendingâ
Java and JSP help
the following 1. The date and time of each request. You may decide on the display format of the date and time yourself. 2. The text of each request (i.e. the actual question asked by the user). 3. The status of the request (either â??pendingâ
Java and JSP help
the following 1. The date and time of each request. You may decide on the display format of the date and time yourself. 2. The text of each request (i.e. the actual question asked by the user). 3. The status of the request (either â??pendingâ
Java and JSP help
the following 1. The date and time of each request. You may decide on the display format of the date and time yourself. 2. The text of each request (i.e. the actual question asked by the user). 3. The status of the request (either â??pendingâ
Java and JSP help
the following 1. The date and time of each request. You may decide on the display format of the date and time yourself. 2. The text of each request (i.e. the actual question asked by the user). 3. The status of the request (either â??pendingâ
Java and JSP help
the following 1. The date and time of each request. You may decide on the display format of the date and time yourself. 2. The text of each request (i.e. the actual question asked by the user). 3. The status of the request (either â??pendingâ
Java and JSP help
the following 1. The date and time of each request. You may decide on the display format of the date and time yourself. 2. The text of each request (i.e. the actual question asked by the user). 3. The status of the request (either â??pendingâ
Java and JSP help
the following 1. The date and time of each request. You may decide on the display format of the date and time yourself. 2. The text of each request (i.e. the actual question asked by the user). 3. The status of the request (either â??pendingâ
Java and JSP help
the following 1. The date and time of each request. You may decide on the display format of the date and time yourself. 2. The text of each request (i.e. the actual question asked by the user). 3. The status of the request (either â??pendingâ
Java and JSP help
the following 1. The date and time of each request. You may decide on the display format of the date and time yourself. 2. The text of each request (i.e. the actual question asked by the user). 3. The status of the request (either â??pendingâ
Java and JSP help
the following 1. The date and time of each request. You may decide on the display format of the date and time yourself. 2. The text of each request (i.e. the actual question asked by the user). 3. The status of the request (either â??pendingâ
Java and JSP help
the following 1. The date and time of each request. You may decide on the display format of the date and time yourself. 2. The text of each request (i.e. the actual question asked by the user). 3. The status of the request (either â??pendingâ
jsp help - JSP-Servlet
Request") return } var url= "select.jsp"; url += "?val=" +str
urgent help needed!!!!
....please help me.... 1)state.jsp: <%@page import="java.sql.*"%>..."); } if (xmlHttp==null){ alert("Browser does not support XMLHTTP Request... not support XMLHTTP Request") return; } var url="state.jsp
urgent help needed!!!!
access country and state....please help me.... 1)state.jsp: <%@page import... Request") return; } var url="city.jsp"; url...("Browser does not support XMLHTTP Request") return; } var url
help
help   how i can send a pitcture on url in java
Logic error? HELP PLEASE! :(
Logic error? HELP PLEASE! :(  Hello Guys! i have a huge problem. What... HttpServlet#doGet(HttpServletRequest request, HttpServletResponse * response) */ protected void doGet(HttpServletRequest request
need help...................please
need help...................please  I have a problem in my JSP Coding... on this area. Please help me. By the way, I'm using access Database and JSP coding... ("Browser does not support HTTP Request") return } var url="getvalue.jsp" url
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
help  pls help me to get the code of a java program a program to perform different shapes in a menu using javaapplet
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
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
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
JSP Request Object
JSP Request Object  JSP Request Object ?   request object... an HTTP request. The request object is used to take the value from the client?s web browser and pass it to the server. This is performed using an HTTP request
Help...
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!
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
Help
Help  Hi; Can anyone help me to solve this errors. I use J2ME(wirlesee Toolkit 2.5.2. for CLDC Project "SlideImageMIDlet" loaded Project settings saved Building "SlideImageMIDlet" C:\Documents and Settings\???? ?????\j2mewtk
help
to the user) please tell me how could i design that. Please help me asap Thanks a lot
request object - JSP-Servlet
request object  What is Difference Between request.getHeader("x-forwarded-for") and request.getServerName() pls give me reply as soon as possible
The $_Request Function
The $_Request Function The contents of both $_GET, $_POST, and $_COOKIE are contained by the PHP built-in $_REQUEST function. $_REQUEST Method is used...;?php echo $_REQUEST["name"]; ?><br /> Address :<?php echo