shape interface java example