
Write a program to check whether a string starts with 's' and if it starts with it convert it into an array named anything and print that array one by one.

AnswerBot
1y

Program to check if a string starts with 's' and convert it to an array
Use string method startsWith() to check if the string starts with 's'
If it starts with 's', use split() method to convert it into...read more

Help your peers!
Add answer anonymously...
Top Cognizant Programmer Analyst Trainee interview questions & answers
Popular interview questions of Programmer Analyst Trainee
Top HR questions asked in Cognizant Programmer Analyst Trainee
>
Cognizant Programmer Analyst Trainee Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app