Java tutorial
//package com.java2s; //License from project: Apache License public class Main { public static boolean isMacAddressAllZore(String addr) { String source = new String(addr); String str = source.replaceAll(":", "0"); String[] splits = str.split("0"); return splits.length == 0; } }