public void sayIt(
Applet app){
String english = num.toEnglish();
StringTokenizer ST = new StringTokenizer(english);
do {
String token = ST.nextToken();
String audio = "http://www.cs.wustl.edu/~sck/504/current-semester/lab/lab4/audio/";
(app.getAudioClip(newURL(audio+token+".au"))).play();
}
while(ST.hasMoreTokens());
}
private URL newURL(String str)
{
URL url = null;
try {
url = new URL(str);
System.out.println("tok");
}
catch(MalformedURLException murle)
{
System.exit(0);
}
return url;
}
Hi all,
On implementing this piece of code it compiles fine.But I get a runtime error saying sun.applet.AppletSecurityException:checkconnect.networkhost1.I dont understand why this happens.Thanks.
Prabhu.R