question: public static Uri formatURL ( String url ) { if ( url . startsWith ( "//" ) ) { url = "https:" + url ; } if ( url . startsWith ( "/" ) ) { url = "https://reddit.com" + url ; } if ( ! url . contains ( "://" ) ) { url = "http://" + url ; } Uri uri = Uri . parse ( url ) ; return uri . normalizeScheme ( ) ; }
target:  Corrects mistakes users might make when typing URLs, e.g. case sensitivity in the scheme and converts to Uri