Skip to content
Snippets Groups Projects
Commit 71b005b5 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

class changes

parent da5850ec
No related branches found
No related tags found
No related merge requests found
......@@ -37,10 +37,10 @@ public class UdpReceiver
ByteArrayInputStream bais = new ByteArrayInputStream(receivePacket.getData());
DataInputStream dis = new DataInputStream(bais);
// What happens if you read an integer? Two double values?
float first = dis.readFloat(); // alternatives: readFloat(); readInt();
// What happens if you read an integer? Two double values? ***
float first = dis.readFloat(); // alternatives: readFloat(); readInt(); dis.readUTF();
float second = dis.readFloat();
System.out.println("first: " + first + " second: " + second);
System.out.println("first value: " + first + " second value: " + second);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment