pablosotol

Untitled

Jun 13th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. public static boolean comprobar(List<String> l){
  2.            boolean estexto=false;
  3.            for(String linea: l){
  4.                for(int i=0;i<linea.length();i++){
  5.                    if(linea.charAt(i)=='.' || linea.charAt(i)=='-' || linea.charAt(i)=='/' || linea.charAt(i)==' '){
  6.                       estexto=false;  
  7.                    }else{
  8.                       estexto=true;
  9.                    }
  10.                }
  11.            }
  12.            return estexto;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment