Questions tagged as 'split'

2
answers

Read File .txt separated by comma

For help I need to pass these lena separated by comma to a datatable. these are the lines. at the end of the line also the separation is one per comma. 000000000000056680640,07/07/2016,1606169715409,000000933.00,DB,EXI IB INFOTEP 5016061697...
asked by 20.08.2016 / 00:00
1
answer

Split into special characters like '\' in java [duplicate]

Hello, I would like to know how I make a split to special characters. What I'm trying to do is take away the \ these numbers. String octa = "454246"; String[] prueba = octa.split("\"); for (int i = 0; i < prueba.length; i++) {...
asked by 08.01.2018 / 22:25
2
answers

How to Divide Folder? in python

Good afternoon.  I have a folder (directory) with many files (more than 25000) and I need to divide that folder into sub-folders that contain 500 files each. -the criteria for dividing the files can be by alphabetical order, by size, by date...
asked by 17.11.2016 / 16:10
1
answer

Split in SQL of a select

Hello friends, I have a very simple query, let's say it is select puesto from puestos and give me back the following | 1 | Oficial Policiaco | | 2 | Juez Amparo | | 3 | etc etc | I need to separate this select and accommodate somethi...
asked by 01.11.2018 / 23:47
1
answer

take part of an Android Studio string

I'm trying to take part of some SMS in an android application, the idea is that the sms just take the link, but the problem is that sometimes it can contain more or less characters and be located in different parts of the message for which I can...
asked by 31.10.2018 / 19:55
1
answer

Compare two split strings of a FILE file

I am doing an exercise in which your goal is to enter a file with File, read it and check with a split if the two words that are between the symbol " | " are equal (letter by letter). I tried to do it with a "charAt" but it does not work out at...
asked by 10.06.2018 / 14:25
1
answer

Separate a string in Java

I want to separate this string for a spinner. Here I receive my JSON I go through it to only get what I want. JSONObject jsonObject= new JSONObject(responseStrBuilder.toString()); JSONArray jsonArray = jsonObject.getJSONArray("payment_metho...
asked by 24.07.2018 / 19:36
1
answer

Delete java.lang.NullPointerException problem

What I try to do in this program is to pass a file that contains a series of tables as if it were an excel and to fit the data in the code so that the data is printed in the same way in java.lang. NullPointerException that I get at the end of my...
asked by 11.03.2018 / 21:41
1
answer

How to use the split with more data in visual

I have a question, I would like to know how to separate my variables and numbers from the operators, here is my example: Dim letras As String() Dim texto As String = "abc*5+x/(y+z)" letras = texto.Split(CChar("*")) For i = 0 To let...
asked by 05.03.2018 / 01:26
2
answers

Error with array (java.lang.ArrayIndexOutOfBoundsException: length = 5; index = 5)

I have an array that has several elements, all this contained in a database, but when I want to delete it with a method (with split) it does not leave me and it throws me the error of the title, how do I solve it ?, and all this , how can I see...
asked by 19.12.2017 / 09:15