Subversion Repositories SmartDukaan

Rev

Rev 822 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 822 Rev 839
Line 125... Line 125...
125
		}
125
		}
126
		return true;
126
		return true;
127
	}
127
	}
128
 
128
 
129
	public static boolean validatePhone(String phone) {
129
	public static boolean validatePhone(String phone) {
-
 
130
		long iPhone;
130
		try {
131
		try {
131
    		Long.parseLong(phone);
132
    		iPhone = Long.parseLong(phone);
132
		}
133
		}
133
		catch (NumberFormatException e) {
134
		catch (NumberFormatException e) {
134
			return false;
135
			return false;
135
		}
136
		}
-
 
137
		
-
 
138
		if (iPhone < 1000000000l || iPhone > 9999999999l) {
-
 
139
			return false;
-
 
140
		}
136
		return true;
141
		return true;
137
	}
142
	}
138
 
143
 
139
	
144
	
140
//	public static void main(String args[]) throws Exception{
145
//	public static void main(String args[]) throws Exception{