Computer Science, asked by screen454, 3 months ago

Write a valid java statement to perform the following tasks
(a)Extract first 10 characters from string str
(b) To print the position of the first occurrence of the 'B' in the string str
(c)Print the length of string str
(d)Convert the string stored in str to upper case form

Answers

Answered by brijrajsingh
0

a) use for loop and put the string in an array and traverse it upto the 9th position and printing it simultaneously

Similar questions