summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2010-11-01 20:47:35 +0000
committerLuke Bratch <l_bratch@yahoo.co.uk>2010-11-01 20:47:35 +0000
commitc1c37366d436dfd9896884ac02431074c5b3bb72 (patch)
tree1bd43027715c4367b9f4283ff33152a0bac663e0
parent86053f250cf0f21f5fa6d56a7a0cb7c54be2ac04 (diff)
Remove superfluous tabs
-rw-r--r--blasearch.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/blasearch.java b/blasearch.java
index 3ddeb5d..a5af42c 100644
--- a/blasearch.java
+++ b/blasearch.java
@@ -27,7 +27,7 @@ import java.io.InputStreamReader;
import java.util.ArrayList;
public class blasearch {
-
+
public static void main(String[] args) throws IOException
{
String query = "";
@@ -55,9 +55,9 @@ public class blasearch {
String[] parts = null;
//URL which provides XML response
URL url = new URL("http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q="+ query);
-
+
URLConnection urlc = url.openConnection();
-
+
BufferedReader br = new BufferedReader(new InputStreamReader(urlc.getInputStream()));
String line;
String[] lines;
@@ -69,8 +69,8 @@ public class blasearch {
while ((line = br.readLine()) != null)
{
// Splits the google output by the commas
- lines = line.split(",");
-
+ lines = line.split(",");
+
for(int i=0; i<lines.length; i++){
// Get the useful information (the urls!)
if(lines[i].startsWith("\"url\"")){
@@ -80,7 +80,7 @@ public class blasearch {
results.add(tempString);
}
}
-
+
}
// Print results
if(results.size() > 0){
@@ -97,5 +97,5 @@ public class blasearch {
}
System.out.print("\n");
}
-
+
}