C:\Documents and Settings\Daniel\My Documents\UDP\SimplTrac>javac test.java test.java:11: toHexString(int) in java.lang.Integer cannot be applied to (java.n et.DatagramPacket) Integer.toHexString(receivePacket); ^ test.java:12: foreach not applicable to expression type for (byte b : receivePacket) print(Integer.toHexString(b )); ^ test.java:12: cannot find symbol symbol : method print(java.lang.String) location: class test for (byte b : receivePacket) print(Integer.toHexString(b )); ^ 3 errors