- 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"

3rd Dec 2020, 8:30 AM
Dalia
4 Answers
+ 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
3rd Dec 2020, 8:48 AM
Piyush
Piyush - avatar
+ 1
Where's your attempt?
3rd Dec 2020, 8:36 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
I posted in my feed. I don't know how to attach a pic here. I tried to write it.
3rd Dec 2020, 8:55 AM
Dalia
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.
3rd Dec 2020, 9:28 AM
你知道規則,我也是
你知道規則,我也是 - avatar