how can i check from an url that an .html extension is present or not : i store  a list of url in a sting array , i wants to check whether there is .html extension   present or not in the last of each url.
     String line[]={"https://google.com","http://www.deathbycaptcha.com/user/login.html"};
    
 for( int i=0;i<=line.length;i++)

 { 
  int m=line[i].length();

   System.out.println(" lenth of url "+m);
       

                       
                                 
     }
i am unable to find that logic.
please help me.
thanks in advance.
  