How to check if file exists in Golang
How to check if a file exists in Golang using os.Stat method. A FileInfo describing the named file or an error is returned.
How to split a string in Java
How to split a string in Java using both variants of the split() method: split(String regex)
and split(String regex, int limit)
.
How to generate JAXB classes with xjc
How to generate JAXB classes with xjc. Command line: xjc -d src -p com.admfactory.client schema.xsd
How to get local computer name and IP in Java
How to get local computer name and IP in Java. Simple snippet using InetAddress.getLocalHost() method.
HTTP URLConnection with proxy in Java
How to create an HTTP URLConnection with proxy in Java. Simple example including proxy authentication.
How to Check Alexa Rank in Java
How to Check Alexa Rank in Java using the undocumented API: http://data.alexa.com/data?cli=10&url=domainName. The code contains also the possibility of adding proxy settings
Search
Other Posts
Follow Us On