chang nanny

Greenhorn
+ Follow
since Feb 15, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by chang nanny

Hello,

Please look at the following code,

String x= new String("abc");

how objects are created?

Thanks.
Hello,
"super()" can put in line 4,right?
public class Animal{ //1
String name; //2
Animal(String name){ //3
//4
this.name=name; //5
}

Animal(){
this(makeRandomName());
}

static String makeRandomName(){
return name;
}
}
Thank you.
Hello,
class SSBool{

public static void main(String[] args){
boolean b1 = true;
boolean b2 = false;
boolean b3 = true;
if(b1 & b2 | b2 & b3 | b2){
System.out.println("ok");
}
if(b1 & b2 | b2 & b3 | b2 | b1){
System.out.println("dokey");
}
}
}
output is kdokey
Could someone tell why the reason is "okdokey"?
Thank you.
Hello,
abstract method can't mark as "static".
Could you tell the reason?
Thank you.
Hello,
could someone tell me why
"an abstract method can't marked as synchronized,native,strictfp"?
Thank you.
Hello,
int x = 1;
String sx = (String)x;
The preceding code compile error.
Why can't use "(String)" to cast?
Thank you.
15 years ago
Hello,
Which two statement are true?
1.the compiler creates a default constructor only when there are no other constructor for the class.
2.The default constructor invokes the no-parameter constructor of the superclass.
3.The default constructor initializes the instance variables declared in the class.
Thank you.
Hello,
I have a dynamically form.
there's a text field and a submit button on each form.
as I enter text and press the submit button.
I would like to use javascript to check which form's text field with value.
How should i do?
thank you.
Hello,
Thank you.
But my second combo box option value query from db(server-side).
my question is how should i put data from db into javascript array?
Hello,
Could you give me an example?
Thank you.
Hello,
I have two drop-down menus.
As I select the option form first menu, i query from db according to the option.
And the recordset are second menu's option values.
I use submit() method to reload the page and change the second menu.
Is there any other way to do?
Thank you.
Hello himanshu patel,
Thank you, you help me a lot.
Hello:
I have a select menu and there are four options.
If I chose one option called "others", I would like to create an input text field.
Could you tell me how to do it?
Thank you.