Write a single line of code to print 4th character from a 3rd element of a string array str[ ].
Answers
Answered by
0
System.out.println(sList.get(2).charAt(3));
where
sList is Array List
Answered by
0
Answer:
String[] str = {"Hello", "world", "today"};
System.out.println(str[2].charAt(3)); (In java)
str = ["Hello", "world", "today"]
print(str[2][3])
(In python)
Similar questions
Computer Science,
3 months ago
India Languages,
3 months ago
Hindi,
3 months ago
History,
7 months ago
English,
7 months ago
Science,
11 months ago
Chemistry,
11 months ago
Geography,
11 months ago