ricky gonzalez

Ranch Hand
+ Follow
since Jun 30, 2000
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 ricky gonzalez

Hi, let me join please. My e mail is carbonte@yahoo.com.
18 years ago
I like to be your project partner also! I had been doing servlets for sometimes, but not so much with JSP. I finished an xml parser just a few days ago though. If you can plz e mail me the details at carbonte@yahoo.com.
18 years ago
Hi, somebody please help!!
18 years ago
Hi, I was wondering where to put the jdbc jar for mysql?
Thanks!
Hi, thanks Michael! I am reading your book as of right now!! I guess this is as close as getting your autograph!
18 years ago
Hi, I am trying to implement a simple binary tree class, but I don't know why my add method doesn't work. My TreeNode class is quite simple with only 3 fields, Comparable data, TreeNode lchild, rchild;public class Tree{
TreeNode current, root;
class TreeNode{
Comparable data;
TreeNode lchild, rchild;
TreeNode(TreeNode lc, Comparable d, TreeNode rc){
data=d;
lchild=lc;
rchild=rc;
}
}
/*void add(Comparable o){
if(root==null){
root = new TreeNode(null, o, null);
}
else
add(root, o);
}*/
Tree(){
root=current;
}
public void add(Comparable o){
if(root==null){
root=new TreeNode(null, o, null);
current = root;
return;
}
if(current==null){
current = new TreeNode(null, o, null);
current = root;
return;
}
else{
if(current.data.compareTo(o)>0){
current = current.lchild;
add(o);
}
else{
current = current.rchild;
add(o);
}
}
}
void traversal(TreeNode current){
if(current==null)
return;
else{
traversal(current.rchild);
System.out.println("preorder traversal:"+current.data);
traversal(current.lchild);
}
}
void printLeft(){
if(current==null){
current=root;
return;
}
else{
System.out.println("*.current.data="+current.data+" current.lchild="+current.lchild);
current=current.lchild;
printLeft();
}
}

public static void main(String[] args){
Tree t = new Tree();
for(int i=0; i<Integer.parseInt(args[0]); i++)
t.add(new Integer((int)(100*Math.random())));
t.printLeft();
}
}
18 years ago
Hi, I was thinking more of the physical implementation of a class that overrides the add/remove methods in AbstractCollection. For instance, a queue that goes like a, b, d, e, f, and you wish to "add" a c so that as a whole the queue becomes a, b, c, d, e, f. How do you access the inner container within AbstractCollection to add/remove?
Thanks!
18 years ago
Hi, I am curious as to when is the class loading time. Another words, when is a class considered to be loaded and its static fields initialized?
Thanks!
18 years ago
Hi I am trying to implement a class that inherits from AbstractCollection, the abstract class, but I don't know how to "add" to the collection. There is no actual container like array or vector provided in AbstractCollection class, so how do I implement an "add" or "remove" to a class that extends from AbstractCollection?
Thanks!
18 years ago
In Ch 4 of RHE, it says that any reference of non-final, non-array class type can always to assigned to reference of any interface, and vice versa. Is that true?
Also, an object of the reference type array can be assigned to a interface reference type only if that interface type is Cloneable. But, when an object of an interface reference type is assigned to an array reference type, compiler will signal error. Why is it not compilable vice versa?
Thanks!
Hi, can someone tell me if J2EE can be installed on win95?
Thanks!
Hi, I think some servers and servlet containers automatically invalidate the session. JWS invalidates a session automatically after 30 minutes.
18 years ago
Hi, I was wondering what does the method invalidate() do. Does it makes the session object null, or does it just remove all the content from the session object?
Thanks!
18 years ago
Hi, can someone help me understanding what servlet context is? What does it mean? What does it describe? Where it is at?
Thanks!
18 years ago