- 1
A program to get an output character from a input string by index number. Please tell me how to write the code.
Eg. Input string is "Java" Integer or index no= "2" Output= "v"
4 ответов
+ 11
Dalia
Community can only help you when you can show your attempt!
Kindly attach the attempt via code/description ..
Follow community guidelines -
https://www.sololearn.com/Discuss/1316935/?ref=app
+ 1
Where's your attempt?
0
I posted in my feed. I don't know how to attach a pic here. I tried to write it.
0
Dalia you don't need another scanner for another input. The same scanner is good for all. sc.nextInt() is good and no need for another scanner in.
Also, there is code playground in SoloLearn, which you can save codr to your profile and link it in the question. It would be easier for you and us.