updated java styling and interface