Results 1 to 2 of 2
  1. #1
    nikosv is offline Member
    Join Date
    Dec 2010
    Posts
    8
    Rep Power
    0

    Default java GregorianDates

    Hello I defined this fuction in class Ergazomenos
    Collapse
    public String toString() {
    return "First name is: " + this.onoma +
    " Last name is: " + this.epitheto +
    "Iperoria is " +this.Iperoria + //1, 1970 00:00:00.000 GMT
    "Imerominia proslipsis is " +this.getImerominiaProslipsis()+
    "Imeromonia gensis is " +this.getImerominiaGennisis()+
    "Afm is"+this.afm +
    // "Imerominia apolisis is" +this.imerominiaApolisis.+
    "Vassikos misthos is" +this.vasikosMisthos +
    "Minaies apodoxes ergazoemon einai " +this.minaiesApodoxes()+
    "Taxes ergazomenou einai "+this.tax();

    in main I use gregorian calendar like this:
    Collapse
    gnk1[0]= new GenikosDieuthintis("sakis", "mistoxidis", 15000,
    100, new GregorianCalendar(1100,02,06),new GregorianCalendar(1100,02,06), 441,
    new GregorianCalendar(1100,02,06), 1000, "takis",
    new GregorianCalendar(1100,02,06), new GregorianCalendar(1100,02,06),
    100, 44, 44,
    40);

    but the dates are wrong when I run the program.
    What should I do?

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,802
    Rep Power
    19

    Default

    Use code tags please (that's the # button).
    Also, what's with the &quote;??

    What do you mean by the dates are wrong. How wrong?
    What are you seeing and what do you expect?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •