onllution.com

Java, Arduino, Android, Electronics

How to convert a String into an ArrayList of Strings

Card image cap

1-. String to String Array:

String = illusion  length of string = 8
	
		arraystring [0] = i
		arraystring [1] = l
		arraystring [2] = l
		arraystring [3] = u
		arraystring [4] = s
		arraystring [5] = i
		arraystring [6] = o
		arraystring [7] = n

2-. String to String ArrayList:


   String = illusion101
   
   	arrayliststring [0] = i
   	arrayliststring [1] = l
   	arrayliststring [2] = l
   	arrayliststring [3] = u
   	arrayliststring [4] = s
   	arrayliststring [5] = i
   	arrayliststring [6] = o
   	arrayliststring [7] = n
   	arrayliststring [8] = 1
   	arrayliststring [9] = 0
   	arrayliststring [10] = 1
        
    

Video

How to convert a String into an ArrayList of Strings