I don’t know how to take out the integer values if I take the integer values 2 from the string also it print ‘a’ 50times.
Should I need to use anything else, suggest me something, this was my interview question.
I tried to String.charAt(1) inside a for loop.
New contributor
Saravanan Selvaraj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.