i want to open multiple websites in IE using java program.
here is the code the websites are fetched from txt file
while((line = br.readLine()) != null)
{
StringTokenizer webLink = new StringTokenizer(line,";");
while(webLink.hasMoreTokens())
{
String webPathString = webLink.nextToken();
System.out.println(webPathString);
Desktop desktop = Desktop.getDesktop();
desktop.browse(new URI(webPathString));
}
}
problem is only last site is getting opened in a browser insted of all.