google chrome - URL search through java program -


just quick question. part of program i'm building java opens chrome. wondering if after program opened chrome, there way search specific url or regular keywords (example: recipes, images, or google question.)

you can code below.but work on windows

string question="what this?";          question= question.replace(' ', '+');           try {             runtime.getruntime().exec(new string[]{"cmd", "/c","start chrome https://www.google.com/search?q="+question});         } catch (exception e) {          } 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -