Roger Zhao

Ranch Hand
+ Follow
since Aug 05, 2003
Merit badge: grant badges
For More
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 Roger Zhao

Hi,all:
I jst read the article "Wireless Game Development –Now and Future" by
Bill Day. About On-device Debugging topic,it says

TIPS verride the toString() method to print debugging information".

.
Who can give me some advice or experience about Overiding toString() on J2ME debugging?
Thanks.
20 years ago
I got it! Thanks lasse!
Step 1)Add the following text lines to "mime.types" file in folder "conf" of Apache install folder.
application/java-archive jar
text/vnd.sun.j2me.app-descriptor jad
Step 2) Restart Apache server.
Step 3) Modify "MIDlet-Jar-URL:" field of ur jad file to:
"<A href="http://***/">http://***/</A>Myjar.jar",
*** is ur domain address or ur ip address.
Step 4) OK, u can input the address in mobile phone. Then download ur program for a try~!
[ December 16, 2003: Message edited by: Roger Zhao ]
20 years ago
Hi, all:
I wanna set a wap server on win2K with apache tomcat. Anybody has experience about it or give me some advice?
Relative resouces are also helpful!

Thanks.
[ December 14, 2003: Message edited by: Roger Zhao ]
20 years ago
My hoster ask to me write a socket one for test! The puzzle is still on as what I said in the last post.
MIDlet Client:


Server Application:


Thanks!
[ December 09, 2003: Message edited by: Roger Zhao ]
20 years ago
Lasse, thanks for your advice. It works, but there is a puzzle I met now. The speed of the commnunication is lower and lower instead of the stable value. So I can not get the data correctly. What's the matter?
[ December 09, 2003: Message edited by: Roger Zhao ]
20 years ago
How to implements a server application. The client can read the data continously, and it is easy to calculate the speed in the communication between the C/S.
On server, how to output a large message file or ensure the continuous data in the stream, thanks!!!
20 years ago
If use Http communication, I should write my own http server application,right? Where can I get some resource or examples about it.

What about the socket connection instead? Can I use implement it with socket connection?
[ December 06, 2003: Message edited by: Roger Zhao ]
20 years ago
Lasse, What do you think is the better choice for the large enough message here? A array with large amount elements?
Thanks in advanced.
Roger
20 years ago
Hi all,
I wanna test the bandwidth when the cell phone and the server are in commnunication. I am jst write a program to test it. But I don't know much about its constructure.
Your advice will be helpful~Thanks a lot!
Roger
[ December 05, 2003: Message edited by: Roger Zhao ]
20 years ago
Hi,all:
How can I find some useful link about the guide or HOWTO for XML spy?
Thanks a lot!
Roger
[ September 10, 2003: Message edited by: Roger Zhao ]
Hi,all

If input the following code into line 3, the run() method also excutes successfully!

Here, the thread did not start to run without calling start(). So what is the fact? Is there anything different from the codes here:


Thanks in advanced,
Roger
[ September 09, 2003: Message edited by: Roger Zhao ]
Hi,all:
I took the scjp1.4 exam and passed with score 93% this morning. Really a little nervous when I put down the button for score reporting .
Thanks for all javaranchers, especially for the bartenders here, you keep the warm hearts to solve every problems all the time.
Javaranch.com is really a wonderful treasure garden for Java fans.
For me, I am jst a Java greenhorn, there is a long way to go, to go ............
Thanks,
Roger
[ September 08, 2003: Message edited by: Roger Zhao ]
20 years ago
Hi,all:

what is the output?
javajavaC is right!
My Question is method textString. When v call this method at L14, method variable text is the copy of textString. text and textString point to the same one object �java� who was created on L11. But when implement the L3, this only affects the text's pointed to not textString. ???
If L11 changes to
I can understand all above, but now I can't!
Thanks in advanced,
Roger
Hi,all
Which statement is true?
A. Programs will not run out of memory.
B. Objects that will never again be used are eligible for garbage collection.
C. Objects that are referred to by other objects will never be garbage collected.
D. Objects that can be reached from a live thread will never be garbage collected.
E. Objects are garbage collected immediately after the system recognizes they are
eligible.
What is the answer? CD?
Special wanna more info about B,C and D?
Thanks
Roger
So,what is the right answer for the question above?