Skip to content

Instantly share code, notes, and snippets.

@devika-28
Created March 20, 2020 18:13
Show Gist options
  • Save devika-28/8d99e9cd56114596b98f9afc9f10e09f to your computer and use it in GitHub Desktop.
Save devika-28/8d99e9cd56114596b98f9afc9f10e09f to your computer and use it in GitHub Desktop.
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