Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #5607

Re: Needs help in editing

Date 2011-06-24 00:35 +0200
From Aéris <aeris@imirhil.fr>
Newsgroups comp.lang.java.programmer
Subject Re: Needs help in editing
References <1021f122-3898-4fc9-93ed-ac1aa9403b82@q15g2000yqk.googlegroups.com>
Message-ID <4e03bfb7$0$23665$426a34cc@news.free.fr> (permalink)
Organization Guest of ProXad - France

Show all headers | View raw


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 23/06/2011 20:25, Eric a écrit :
> 1) Create a Date type birth data instance field in the Employee class,
> not a String

org.joda.time.DateTime from Joda-time library

> 2) Enlarge the constructors for the Employee class and subclasses to
> pass the int month, int day, and int year of the birth date as input
> by the user to PayrollSystemTest to the subclass constructor, and then
> to the Employee class constructor

What the usefulness ?
Datetime can be parsed directly from text like 2011-06-24 (ISO format or
other) and constructors *must* take Datetime in parameter, not
month/day/year.
Ultimately, make a DateFactory or use Joda-time API to convert fields to
datetime.

> 3) Input from the user for the 5 specific employees and then comment
> out the hardcoding for the 4 employees in the original code

public enum EmployeeType {
	SALARIED, HOURLY, COMMISSION, SALARY_BASED_COMMISSION
}

And please :
— Learn Java, all those questions are very very basic…
— Don't post so many and so ugly craps code…

- -- 
Aeris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOA7+yAAoJEK8zQvxDY4P9aIwH/0V6g8aXD2n6LBIYSQdUg97n
+NY/pWEdOdxaKSX1ScQIlxHWBiX0Eg5/3KNaX5Q8VbS8fFAqYMt6UZRGKREBsAN/
r5dWxgYvK7/ZHDInKg3q8mEqWI+P+YpH1nB2sNlW0dHf3JjvRqPg3qWwrYC3gwkc
kQtDqZaJugVfAlz+tHm9N9YPyFTHuT0b3ZBUB9BI1PjdfHHzn1NR0n/FJULSL/SH
pwwPM+QPzDwQeH9+sv847J4iIjH9nW4VwFp85yh4J9pV0iDw59/8DgCZvTGnIpJp
dwlmIJFMorMqiVB+uQ+ACaAZ3Mpusk3tddI3/S9iaV3dTvFSKq6Lb1E1h3tCQG0=
=sQpY
-----END PGP SIGNATURE-----

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Needs help in editing Eric <ehtisham@gmail.com> - 2011-06-23 11:25 -0700
  Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-24 00:35 +0200
    Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-24 00:39 +0200
      Re: Needs help in editing lewbloch <lewbloch@gmail.com> - 2011-06-24 08:42 -0700
        Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-24 21:28 +0200
          Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 13:30 -0400
            Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-26 21:49 +0200
              Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 16:32 -0400
              Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 16:35 -0400
  Re: Needs help in editing rossum <rossum48@coldmail.com> - 2011-06-23 23:42 +0100
  Re: Needs help in editing William Colls <william.colls@rogers.com> - 2011-06-23 22:40 -0400
    Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 13:40 -0400
  Re: Needs help in editing Roedy Green <see_website@mindprod.com.invalid> - 2011-06-27 20:05 -0700
  Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-28 00:09 -0400

csiph-web