Mar 052018

ADM

How to generate JAXB classes with xjc

  • 05 March 2018
  • ADM

How to generate JAXB classes with xjc. Command line: xjc -d src -p com.admfactory.client schema.xsd

Mar 052018

ADM

How to convert a roman number in decimal in Java

  • 05 March 2018
  • ADM

How to convert a roman number in decimal in Java. The symbols used are I, V, X, C, D and M.

Mar 052018

ADM

How to get local computer name and IP in Java

  • 05 March 2018
  • ADM

How to get local computer name and IP in Java. Simple snippet using InetAddress.getLocalHost() method.

Feb 082018

ADM

HTTP URLConnection with proxy in Java

  • 08 February 2018
  • ADM

How to create an HTTP URLConnection with proxy in Java. Simple example including proxy authentication.

Nov 162017

ADM

How to Check Alexa Rank in Java

  • 16 November 2017
  • ADM

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

Nov 022017

ADM

How to convert Celsius to Fahrenheit in Java

  • 02 November 2017
  • ADM

How to convert Celsius to Fahrenheit in Java. Simple Java code and conversion table with common values.