Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean containsNumbers(String cad){
- if(cad.contains("0") || cad.contains("1")|| cad.contains("2")
- || cad.contains("3")|| cad.contains("4")|| cad.contains("5")
- || cad.contains("6")|| cad.contains("7")|| cad.contains("8")
- || cad.contains("9")){
- return true;
- }else{
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement