Michael Lloyd Lee

Greenhorn
+ Follow
since Sep 07, 2005
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 Michael Lloyd Lee

Apps written in 1.4 will work out the box in 1.5.
14 years ago
I think the problem you are having is down to you trying to change the string, you can not. It is immutablem you have to create a new string, and assign it.
i.e.

Note: My regex is untested, it might work.
14 years ago
String is immutable. And so replaceAll does not effect the current string, but returns a new one.
Try
14 years ago
Use JDICs org.jdesktop.jdic.desktop.Desktop.open(java.io.File) and Desktop.browse(java.net.URL url) are what you are after.
14 years ago
What is wrong with using a shutdown hook?

Should your application really care if the system is being shut down, or just your application is being shutdown?
[ October 14, 2005: Message edited by: Michael Lloyd Lee ]
14 years ago
How are you encrypting/decrypting the data? (which encryption method are you using?)
Does said method support streaming?
14 years ago
My Sendo M570 (RIP*) did (excluding keyboard size), and Vodafone UK does.

I've had reports of my J2ME VNC application working on a Blackberry. Newer Nokia phones support raw sockets. And the Moto Razr V3.
Most new devices supports RAW sockets, and 100K jar files.

*It had a breif incounter with the floor. *sob* What to buy next.
14 years ago
I'm sorry, but I really do not understand your question.

Are you after sheet music? (If so your'll also need to learn the basics on how to read sheet music, not a quick task).
14 years ago
not without JNI or upgrading to 1.5.
14 years ago
Java is pass by value (refrences are passed by value).
Combined with String which is imunable (unchangable) gives you the result you are seeing.

http://www.javaranch.com/campfire/StoryCups.jsp / http://www.javaranch.com/campfire/StoryPassBy.jsp
15 years ago

Originally posted by saxena vicky:
Thanks Michael !
But the value return from System.identityHashCode(java.lang.Object), as Object.hascode() are different, why ?



Maybe I should of clarified that as java.lang.Object.hashCode().

They should return different values, as hashCode() is overridden by String (to the method shown above).

Again, why do you want this?
15 years ago
> Is it because Ttest2 implements runnable interface?

yeap.

I know it has been said a number of times before, but don't extend Thread unless you have a very good reason to.
Call super.<method name> when you want the effects of that method, as well as your overrided method.
15 years ago
You can not (excluding JNI).

The best you could do is get the hashcode via System.identityHashCode(java.lang.Object), as Object.hascode() is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.

Why do you want it?
15 years ago
dir is not an application, but rather a shell built-in.


When Runtime Exec Won't
[ September 09, 2005: Message edited by: Michael Lloyd Lee ]
15 years ago