adding java files

adding copy and paste functions