summaryrefslogtreecommitdiff
path: root/blasearch.java
diff options
context:
space:
mode:
Diffstat (limited to 'blasearch.java')
-rw-r--r--blasearch.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/blasearch.java b/blasearch.java
index 63f36fc..25ac68e 100644
--- a/blasearch.java
+++ b/blasearch.java
@@ -30,7 +30,16 @@ public class blasearch {
public static void main(String[] args) throws IOException
{
- String query = args[0];
+ String query = "";
+
+ // Incorporate all args in search
+ for(int i=0; i<args.length; i++){
+ query = query + args[i] + "+";
+ }
+ // Remove trailing +
+ query = query.substring(0, query.length()-1);
+
+ System.out.println(query);
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);