import java.io.*; public class InstramToByteExample { public static void main(String args[]) throws IOException { int inputStream=System.in.read(); int i=0; if (inputStream != -1) { byte bValue = (byte) inputStream; System.out.println("The value of byte array"+bValue); } } }