app/controllers/SMSController.java
/**
     * Clear Queue of warnings for given user when clear
     * button clicked in Android App.
     * @param username The Android User.
     * @return HTTP 200 to Android volley listener.
     */
Clear Queue of warnings for given user when clear
button clicked in Android App.
@param username The Android User.
@return HTTP 200 to Android volley listener.
Clear Queue of warnings for given user when clear button clicked in Android App . @param username The Android User . @return HTTP 200 to Android volley listener .
public Result Clear(String username){
        try {
            for (int i = 0; i < userQueue.size(); i++) {
                if (username.equals(userQueue.get(i))) {
                    userQueue.remove(i);
                    msgQueue.remove(i);
                }
            }
            System.out.println("userQ: "+userQueue);
            System.out.println("msgQ: "+msgQueue);
            return ok();
        }catch(Exception e){
            System.out.println("Exception: "+e);
            return badRequest();
        }
    }
public Result Clear ( String username ) { try { for ( int i = 0 ; i < userQueue . size ( ) ; i ++ ) { if ( username . equals ( userQueue . get ( i ) ) ) { userQueue . remove ( i ) ; msgQueue . remove ( i ) ; } } System . out . println ( "userQ: " + userQueue ) ; System . out . println ( "msgQ: " + msgQueue ) ; return ok ( ) ; } catch ( Exception e ) { System . out . println ( "Exception: " + e ) ; return badRequest ( ) ; } }
Clear Queue of warnings for given user when clear
 button clicked in Android App.
Clear Queue of warnings for given user when clear button clicked in Android App .