adding mobile code for Java