0
How could i write a script that would say open something up such as google
How could i write something that would interact with a pc the same way a batch file would just in java
1 Resposta
0
Java has a vast array of libraries and even some open source apache libraries that you can import into your programs that can make web requests and also post http requests. Also some of the core Java IO libraries can read in streams such as a buffered reader but instead of reading in from a file or stdin you can essentially read from a remote URL or URI, Google has some RESTful APIs that you can make calls to to retrieve information from Google, a good example would be a search query, using some of Googles RESTful APIs you can essentially do the equivalent of a Google search and the result can be returned as an XML or json stream which you can then parse to obtain the useful bits of information you get back as a http response to an API calls in either XML or json formats.