comp.lang.java.help
  Home FAQ Contact Sign in
comp.lang.java.help only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.java.help Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Question about dates in Java         


Author:
Date: Jul 4, 2008 18:53

If I have a string which represents the year and day of the year
i.e. (2005001) is there an easy way to determine the date
i.e. (January 1, 2005). I have done some googling and looked at the API,
but nothing leaps out at me. Even looking atRoedy's site isn't helping
much. I could probably write a conversion routine, but with Java's rich
API, I thought there might be a way to do this without reinventing the
wheel.

Thanks
3 Comments
  Newbie - what is the class Class?         


Author: zalek
Date: Jul 4, 2008 16:03

I am looking on some code where I see the method getClass() is used.
From Java site I read that Class class is "Instances of the class
Class represent classes and interfaces in a running Java application.
As I understand instance of a class is an object - so what a point to
get a Class from an object?

Thanks,

Zalek
5 Comments
  Cannot set Breakpoint on Netbeans 6.1         


Author: Global667
Date: Jul 4, 2008 08:37

Hello,

its a bug or I am blind $) ?

for (int i = 1; i < 20; i++) {
for (int j = 1; j < 20; j++) {
c = new Coor(i, j);
if (!Game.hasLiberties(c)) {
f = 0; /***** BREAKPOINT WHICH DOESNT WORK */
}
if (!Game.hasLiberties(c)) {
g.Board[coorToInt(c)] = "."; /**** SAME LIKE ABOVE BUT WORKS */
} else {
g.Board[coorToInt(c)] = Game.Board[coorToInt(c)];
}
}
}

Hope there is an answer.

Best regards,
Wolf S. Kappesser
6 Comments