The Java(tm) FAQ -- Miscellaneous

Copyright        Table of Contents        Chapters:   1   2   3   4   5   6   7   8   9   10   11

Outline


Classes in java.lang and java.util


Q11.1
Why doesn't String's replace method have any effect when I apply it to a string?

StringReplaceExample.html


Q11.2
How can I access native operating system calls from my Java program?

See also: Q10.6


Q11.3
Does Java provide standard iterator functions for inspecting a collection of objects?

See also: Q1.20


Q11.4
The Math.random method is too limited for my needs -- how can I generate random numbers more flexibly?

RandomExample.html


Audio


Q11.5
How do I play sounds in an applet?

See also: Q8.11, Q11.6, Q11.7


Q11.6
How do I play several audio clips simultaneously?

See also: Q11.5, Q11.7


Q11.7
Can I tell when an audio clip has finished playing?

See also: Q11.5, Q11.6


Q11.8
How can I play audio in a stand-alone application?

See also: Q4.2


Q11.9
What audio formats does the JDK support besides Sun's .au format?
Q11.10
Is there a method for generating sounds of a given frequency, something along the lines of playTone(int frequency, int duration)?

Miscellaneous


Q11.11
What's the difference between Java and JavaScript?

See also: Q4.1, Q4.2, Q4.4


Q11.12
How can I obtain a performance profile of my Java program?

ProfileExample.html

See also: Q3.9


Q11.13
What is the purpose of the executable files that have an extra _g at the ends of their names (e.g., java_g)?
Q11.14
If Java is platform-independent, why doesn't it run on all platforms?