Nvm I found the answer, DataInputStream lets you read all data types including unsigned values. Except I still don't know how to handle big-endian little-endianess.
Type: Posts; User: username9000
Nvm I found the answer, DataInputStream lets you read all data types including unsigned values. Except I still don't know how to handle big-endian little-endianess.
I tried this but it only seems to read the number as the ascii representation not the actual value, ie. it reads 0x3132 as 12 from the ascii character for 0x31 for 2 and the ascii character for 0x32...
FileInputSream, BufferedInputStream
FileReader, BufferedReader
These classes AFAIK only have read methods which return strings, char arrays or byte arrays, or single bytes. The problem is if I...
Hi,
I'll be doing individual java programing over the summer for my coop job and will probably looking around hear for help if I get stumped by something in java. I'll also look to see if there's...
Yeah, my input string was "Time IRIGB (s) Lat Ltn (deg) Lon Ltn (deg) Tas stbd (m/s) wind speed Hg (m/s) wind direction Hg (deg t)"
and my program output was:
Time IRIGB (s)
Lat Ltn (deg)
Lon...
I found the answer, this works:
if(matcher.find()){
System.out.println("found:");
System.out.println(matcher.group());
while(matcher.find()){...
Hi, I'm trying to parse some text with java's regex and nothing seems to be working -_-;;;
In this code all I am trying to do is parse a string for words and it doesn't work:
Code:
Pattern...