Created
March 20, 2020 18:13
-
-
Save devika-28/8d99e9cd56114596b98f9afc9f10e09f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String query(String input) { | |
String query = "https://www.google.com/search?q=\""; | |
String[] ls = input.split(" "); | |
for (String i : ls) { | |
query += i + "+"; | |
} | |
return query + "\""; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment