Question : split strings
Answered by : jeremy-l
str1 = "1 3 5 7 9"
list1 = str1.split()
map_object = map(int, list1)//Here we can turn the string into an int list
listofint = list(map_object)
print(listofint)
#result is [1, 3, 5, 7, 9]
Source : https://www.delftstack.com/howto/python/split-integer-into-digits-python/ | Last Update : Tue, 13 Sep 22
Question : Split string
Answered by : john-emmard-nava
class Main
{ // Iterate over the characters of a string public static void main(String[] args) { String s = "Techie Delight"; String[] arr = s.split(""); for (String ch: arr) { System.out.print(ch); } }
}
Source : https://www.techiedelight.com/iterate-over-characters-string-java/ | Last Update : Fri, 22 Jul 22
Question : split string
Answered by : mohamed-adel-sjf20oyitza0
string[] splitInput = input.Split(";");
Source : https://stackoverflow.com/questions/48834132/how-to-remove-an-element-from-a-split-string | Last Update : Mon, 25 Jul 22