Record sound

som body help me,how can i record sound using java.and how can play it using window media player in web browser.

Java Sound API: Java Sound Demo