Tip Bank

DevX - Software Development Resource

How to calculate sqrt()

Question: How do you calculate sqrt()? Answer: Of course the best way to compute square roots is to useMath.sqrt(),but I assume your question is academic. I’m not sure of the

DevX - Software Development Resource

How to Prevent Simultaneous Access

Question: How do you lock a file in Java to prevent simultaneous multipleaccesses? Answer: If you’re concerned about simultaneous access by independent processes,you’ll have to rely on the host OS

DevX - Software Development Resource

Reading from URL into String

Question: What is the maximum size of a string array I can have in my applet?I am trying to store some stock prices in a string array after reading themfrom

DevX - Software Development Resource

Launching Another Application from Java

Question: Is it possible to launch another application from aJava application (not an applet)? Answer: Yes. There are two classes of interest for performingsystem level functions such as this: java.lang.Runtime