when you run
System.out.write(b);
you're actually calling this method at PrintStream class
/**
* Writes the specified byte to this stream. If the byte is a newline and
* automatic flushing is enabled then the <code>flush</code> method will be
* invoked.
*
* <p> Note that the byte is written as given; to write a character that
* will be translated according to the platform's default character
* encoding, use the <code>print(char)</code> or <code>println(char)</code>
* methods.
*
* @param b The byte to be written
* @see #print(char)
* @see #println(char)
*/
public void write(int b) {(...)
so if you flush your printer explicitly (or print a newline, as stated in the javadoc), you'll see the "x"
System.out.write(b);
System.out.flush();
about using 'x' as integer, I assume you're talking about what int number does x represent and how to print it.
Notice that if you do
System.out.println(b);
It will show you 120 because println will end up calling String.valueOf(b)