Java tutorial
//package com.java2s; public class Main { static void assertValidEventType(String eventType) throws IllegalArgumentException { if (eventType == null || eventType == "") { throw new IllegalArgumentException("Event Type is invalid"); } } }