split tag

25 questions


1 answers
74 views
0
Is there a way to cut strings based on multiple characters?

No matter how much I look for it, I only see cutting based on blank characters and removing blank characters from the front and backI can't cut strings based on multiple characters.mystr = Hey, you - ...

1 years ago

1 answers
107 views
0
Why is indexOf not working in the array divided by the string split('\n') of the text file received in ajax?

I wrote it in a script inside the body. $.ajax({ url: aaa.txt, success: function(result){ console.log(result); var rArr = result.split(\n); console.log(rArr); var ee = rArr.indexOf(01001); con...

1 years ago

1 answers
62 views
0
java split() method return type question

Hello, I'm trying to use split() method in Java. Scanner reader = new Scanner(System.in); String inputValue = reader.nextLine(); System.out.println(inputValue); //5,6,7 String[] splitedValue = inp...

1 years ago

2 answers
130 views
0
I want to split on Python several times

0 2003-12-31T15:34:07.200Z1 2003-12-23T00:20:34.800Z2 2003-12-20T12:13:36.300Z3 2003-12-17T04:19:16.400Z4 2003-12-16T09:07:56.100Z5 2003-12-15T18:55:05.100ZWe're going to do 2013, 12, 31, and 15...

1 years ago

1 answers
77 views
0
I want to convert the String to ArrayList, and I want to add a comma part

Is there any method created in Java that separates the string into an array or list by comma?Or do I have to make the code myself?


1 answers
120 views
0
I'd like to divide the Python list into uniform sizes

A = [1,2,3,4,5, ..., 100]TheA = [ [1,2,3,4,5,6,7,8,9,10], [11,12,13,...,20],... , [91,92,...99] ]I'm looking for a way to change it like this.I think I can use this interlator, but the cost is too hig...

1 years ago

1 answers
67 views
0
To divide a list into equal sized pieces in Python

You want to divide a list of arbitrary lengths into pieces of the same size. Of course, there are clear ways of putting two counters and a list, and every time a second list is filled, there are ways ...

1 years ago

1 answers
139 views
0
StringTokenizer and Scanner and String.Split

scanner of Java class to learn the difference between the three, and stringtokenizer split wondered. I know, separate Then why bother to work only in the strings only with split stringtokenizer scanne...


1 answers
96 views
0
How to divide a string from a Java string to a line

In the JTextArea, I want to separate the strings by '\n'. The sauce below is not working properly. I've already tried '\r\n | \r | n'.public void insertUpdate(DocumentEvent e) { String split[], docStr...

1 years ago

1 answers
132 views
0
Split with string spaces

In C++, if there's a string with a space, What's the best way to split? Not a quick way, but a good way to look.

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.