Re: carriage return in hex 0D
- From: "Joanna" <forjoanna@xxxxxxxxxxx>
- Date: Sun, 25 Feb 2007 04:57:49 GMT
Patricia Smith wrote:
Does anyone know how to code in Java to pass a hex 0D?
String s = "AbCD0123\r";
for (int i = 0; i < s.length(); i++)
{
char c = s.charAt(i);
System.out.println(String.format("0x%04X", (int)c));
}
Joanna
.
- Prev by Date: Re: Unchecked compiler warning
- Next by Date: Re: Checking input for letters
- Previous by thread: Can this Class be cleaned up at all?
- Next by thread: Using Interfaces ?
- Index(es):