Pergunta de entrevista da empresa Kāladi Consulting

str="AB0CD1010" this s a string consider it as a counter variable n increment it for example the next element should be "AB0CD1011"......

Resposta da entrevista

Sigiloso

15 de out. de 2019

String str="AB0CD1010"; int a=Integer.parseInt(str,16); a++; str=toHexString(a); System.out.println(""+str);