Kevin Huang

Greenhorn
+ Follow
since Mar 27, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Kevin Huang

YuFei, your java code won't compile. First, method createInstance() should be static; second, local variable STfactory is referenced outside its declaration scope.
19 years ago
replace
System.out.println(df.format(bd));
by
System.out.println(df.format(bd.longValue()));
will get expected string.

I'm suprised that Linux will give different output (since overloading is done at the compile time, not run time). I'm using jdk 1.4 on Windows. Could anyone please try it on Linux using 1.4?
19 years ago
The problem is that df.format(bd) casts bd into double, and the precision is lost.
19 years ago
You do need to implement (override) equals and hashCode method then.
19 years ago
What is the java type (class) of your "data"?
You may need to implement its equals and hashCode methods.
19 years ago
If d is of type Date, then:

DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
String dateString = formatter.format(d);

upper case "MM".
19 years ago
use String's replace(char oldChar, char newChar) method to create the new String, if you are going to replace it by a char.
19 years ago
String sc[]=score.split(",");
for(int i=0;i<sc.length();i++)
{
out.println(sc[i]);
}

Kevin Huang
SCJP,SCWCD,SCBCD
MCP,MCAD,MCSD
19 years ago
Static field is inherited too.
But there will be 2 different copies in the parent and child classes.

Kevin Huang
SCJP, SCWCD, SCBCD
MCP, MCAD, MCSD
19 years ago
From edoc.bea.com, I got:

====
...
The following sections describe alternate ways to start an Administration Server:

Starting an Administration Server from the Windows Start Menu
Starting an Administration Server When the Host Computer Boots
Starting an Administration Server With the java weblogic.Server Command
...
====

Could we start weblogic server with java code?
Something like ServerLoader provided by JBoss?

Thanks in advance.

-Kevin
19 years ago
Hi, Saeed,
I got my SCBCD last Thursday.
How about you?
Good luck!
-Kevin
SCPJ1.4, SCWCD, SCBCD
Hi, Saeed,
I'm in NJ, and preparing for getting SCBCD soon too.
Good luck for us.
Kevin
SCJP, SCWCD