Arduino/Raspberry Pi I2C

http://blog.retep.org/2014/02/15/connecting-an-arduino-to-a-raspberry-pi-using-i2c/

Java and I2c

http://neophob.com/2013/04/i2c-communication-between-a-rpi-and-a-arduino/