java exception correct way to display message code example Example: java display message alert('Message');