Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Mobile {
- public static void main(String[] args) {
- final String mobnum = "9071744430";
- final char[] ds = mobnum.toCharArray();
- System.out.println(ds);
- String res = "";
- for (char i : ds) {
- if (i == '0' || i == '1') {
- } else {
- res += i;
- }
- }
- System.out.println(res);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement