What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-16 09:29:20
how to make a string a list of characters c#
string scentence = "Hi there"; // Defining a string to turn to characters char[] charArr = scentence.ToCharArray() // Turns String to a list of characters //The output of charArr would be: //['H', 'i', ' ', 't', 'h', 'e', 'r', 'e'] /* ... Add solution -
Java 2021-10-24 07:05:15
convert every character in string to arraylist jva
import java.util.ArrayList; import java.util.List; // Convert a String to a List of Characters class Util { public static void main(String[] args) { String string = "Techie Delight"; List<Character> chars = new ArrayList<>(); ... Add solution