indicate the outputs of the following code segments: a. string

Project Description:

indicate the outputs of the following code segments:a. string str = "the rain in spain falls mainly on the plain";system.out.println(str.indexof(' '));b. string str = "the rain in spain falls mainly on the plain";system.out.println(str.indexof(' ', 4));c. string str = "the rain in spain falls mainly on the plain";system.out.println(str.substring(4));d. string str = "the rain in spain falls mainly on the plain";system.out.println(str.substring(4, 8));e. string str = "the rain in spain falls mainly on the plain";int begin = 0;while (begin _ str.length()){int end = str.indexof(' ', begin);if (end == -1)end = str.length();string word = str.substring(begin, end);system.out.println(word);begin = end + 1;}
Skills Required:
Project Stats:

Price Type: Negotiable

Expired
Total Proposals: 4
1 Current viewersl
14 Total views
Project posted by:

Proposals

Proposals Reputation Price offered