In a program I'm currently writing, I read from a port. And, given the way I've done it, using RxTx and the InputStream of the port "port.read(byte byteArray, int start, int end);" will read from the port and store the information read into a byte array. However, for purposes of this program, I need to eventually move the data form the byte array into a double. The port from which I'm reading should return lines of data in the format "s10:0:1.493875e-12" where (0,1.493875e-12) is the data point I'm interested in. Any idea on how I can go about doing this?