Java Program Example With Output Gap