import java.util.Scanner; /** * HJ18 识别有效的IP地址和掩码并进行分类统计 */ public class HJ018 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int numA = 0, numB = 0, numC = 0, numD = 0, numE = 0, numErr = 0, numP = 0; String[] ip; int ip0; ...