convert string to string array in java

By | November 14, 2019

In this article, you will learn how to convert a string to string array in java.

Lets assume string is “Welcome to selenium99 automation tutorials”. It consists of 5 parts/words. Each word is separated by a space.

1 First we will split the string and assign it to a string array.

2 Print the each index value using for loop.




Recommended posts:

How to find common elements in arraylists java

SQL Quick Reference Guide

Java questions 5

Find largest number in an array

String split function

Leave a Reply

Your email address will not be published. Required fields are marked *