---code System.out.println(startIP); String[] tempStartIP = startIP.split("."); System.out.println(tempStartIP[0]); ---code run: 192.168.1.1 Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0