I try to converting bytes with 8 digits into ASCII code for example if user enter "0000111" the program convert it to it's ASCII code and shows 'p'(the value of character c in the code below became 'p')
public static void main(String[] args) {
Byte bytes;
char c;
Scanner input=new Scanner(System.in);
System.out.println("enter your specefic bytes(maximkum 8 digits to show the ASCII code) : ");
bytes=input.nextByte();
c=(char)bytes;
System.out.println("the Equivalent ASCII code of your bytes is = "+c);
}