Edited index and added java file.