Java Code as on 26th Sept 2014