Android Studio Expected Class or Package Error
<p>I cannot figure out why this error is occurring. I am creating an alert button that sends a notification to the user VIA vibrate.</p>

<p>"new NotificationCompat()" is where my error is.</p>

<p>here is the code:</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>public class AlertReceiver extends BroadcastReceiver{
    @Override
    public void onReceive(Context context, Intent intent) {

        createNotification(context, "It Is Time To Stand Up!","20 Minutes Have Passed", "Alert");

    }

    public void   createNotification(Context context, String msg, String msgText, String msgAlert ) {

        PendingIntent notificIntent = PendingIntent.getActivity(context,0,new Intent(context,CustomizeAlertsPage.class),0);

        NotificationCompat.Builder mBuilder = new NotificationCompat().Builder(context)
                .setLargeIcon(R.drawable.ALERT)
                .setContentTitle(msg)
                .setTicker(msgAlert)
                .setContentText(msgText);

        mBuilder.setContentIntent(notificIntent);
        mBuilder.setDefaults(NotificationCompat.DEFAULT_VIBRATE);
        mBuilder.setAutoCancel(true);

        NotificationManager mNotificationManager =
                (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);

        mNotificationManager.notify(1,mBuilder.build());

    }
}</code></pre>
</div>
</div>
</p>