Authored by: jbb on Friday, April 27 2012 @ 04:54 PM EDT |
Use one or more non-breaking spaces:
---
Our job is to remind ourselves that there are more contexts than the one we’re
in now — the one that we think is reality.
-- Alan Kay[ Reply to This | Parent | # ]
|
|
Authored by: jonathon on Friday, April 27 2012 @ 04:59 PM EDT |
Is Java as fussy about white space as Python is? [ Reply to This | Parent | # ]
|
|
Authored by: bugstomper on Friday, April 27 2012 @ 06:25 PM EDT |
package simple;
/**
* @author Owen Astrachan
*/
public class WebReader {
public static void
main(String[] args) throws java.io.IOException {
java.net.URL site = new
java.net.URL("http://cnn.com/");
java.io.InputStream source = site.openStream();
System.out.print(source.read());
}
}
[ Reply to This | Parent | # ]
|
|
Authored by: Anonymous on Saturday, April 28 2012 @ 12:52 AM EDT |
Good call on catching the IOException.
Also, it was bad form to not
close the InputStream. [ Reply to This | Parent | # ]
|
|
Authored by: Ian Al on Saturday, April 28 2012 @ 09:11 AM EDT |
.
---
Regards
Ian Al
Software Patents: It's the disclosed functions in the patent, stupid![ Reply to This | Parent | # ]
|
|