Just use a ASCII to text converter... pretty simple. NOTE: The given numbers are in HEX.
Answer - Python IDLE
public static void main(String[] args) throws IOException {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader sc = new BufferedReader(isr);
String line = sc.readLine();
String[] chars = line.split("\\s+");
StringBuilder sb = new StringBuilder();
Arrays.stream(chars).map(c-> Integer.parseInt(c,16)).map(i-> (char)i.intValue()).forEach(
sb::append);
System.out.println(sb);
}
x = '50 79 74 68 6F 6E 20 49 44 4C 45'.split(' ')
for i in range(0,len(x)):
print(chr(int(x[i], 16)), end='')
print('\n')
should work. but based on the answers seems they expect you to do it in pythonCode:public static void main(String[] args) throws IOException { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader sc = new BufferedReader(isr); String line = sc.readLine(); String[] chars = line.split("\\s+"); StringBuilder sb = new StringBuilder(); Arrays.stream(chars).map(c-> Integer.parseInt(c,16)).map(i-> (char)i.intValue()).forEach( sb::append); System.out.println(sb); }