(solution) Can you separate the ASCII values. For example, I want to see

(solution) Can you separate the ASCII values. For example, I want to see

Can you separate the ASCII values. For example, I want to see only the ASCII values for characters under ASCII char and the ASCII values for integers under ASCII int. Thank you in advance.  

public static void main(String[] args)

{

Scanner scan = new Scanner(System.in);

System.out.print(“Please enter a string of any lengh: “);

String initialString = scan.nextLine();

System.out.println(“nInitaltASCIItASCIItHex”); //Print header row

for (int x=0; x{

System.out.print(initialString.charAt(x)+”t”);//Print initial case initial character

System.out.print((int)initialString.charAt(x)+”tt”);//Print ASCIIchar value

System.out.print((int)initialString.charAt(x)+”tt”);//Print ASCIIint value

System.out.print(Integer.toHexString(initialString.charAt(x)).toUpperCase());//Print hex (upper case)

System.out.println(); //New line character

}

{

System.out.println(); //New line character

System.out.println(“Thank you for playing!”);

}

}

}// end class

import java.util.Scanner; public class Ascii { static String initialString; public static void main(String args) { Scanner scan = new Scanner(System.in); System.out.print("Please enter a…