Add interface java code