SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Technology Stocks : All About Sun Microsystems

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Byron Xiao who wrote (15923)4/29/1999 10:19:00 AM
From: David W. Ricker  Read Replies (3) of 64865
 
OT - Dump thy Sun Stock.

I am a programmer doing Y2K remediation on Java apps. Came across
this little jewel this morning. Written a mere three years ago.
Pathetic.

/*
* Gary Cornell and Cay S. Horstmann, Core Java (Book/CD-ROM)
* Published By SunSoft Press/Prentice-Hall
* Copyright (C) 1996 Sun Microsystems Inc.
* All Rights Reserved. ISBN 0-13-565755-5
*
* Permission to use, copy, modify, and distribute this
* software and its documentation for NON-COMMERCIAL purposes
* and without fee is hereby granted provided that this
* copyright notice appears in all copies.
*
*/

/**
* Store dates and perform date arithmetic
* (another Date class, but more useful that
* java.util.Date)
* @version 1.02 13 Jun 1996
* @author Cay Horstmann
*/

package CoreJava;

public class Day implements Cloneable
{ /**
* Constructs today's date
*/

public Day()
{ java.util.Date today = new java.util.Date();
year = today.getYear() + 1900;
month = today.getMonth() + 1;
day = today.getDate();
}

Guess what folks, this won't work come year 2000. Written
three years ago. If this is the kind of work being done
at Sun, I repeat, dump thy Sun stock.
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext