home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
kaffe-0.5p4-src.tgz
/
tar.out
/
contrib
/
kaffe
/
test
/
compiler
/
Stock.java
next >
Wrap
Text File
|
1996-09-28
|
865b
|
31 lines
import java.net.URL;
class Stock
{
public static void main(String args[]) throws Throwable
{
System.out.println( "One" );
getQuote( "PARQ" );
System.out.println( "Two" );
}
public static void getQuote( String sym ) throws Throwable
{
URL url;
System.out.println( "Got here with arg " + sym );
try {
url = new URL( "http://www.village.org/" );
System.out.println( "Hi\n" );
System.out.println( url.getContent().toString() );
System.out.println( "Bye\n" );
}
catch (java.io.IOException e) {
}
catch (java.net.MalformedURLException e) {
}
}
}