Questions tagged as 'string'

1
answer

How can I show a separate string array and its values?

I am working with mulestudio and I have a string that is large and I made an arrangement of it since when I call the string to print it or it gives me errors or it shows me all messy and what I want is to show each variable with its value separa...
asked by 06.06.2017 / 16:39
1
answer

UserDefaults.standard does not work correctly with String variables

How I'm having problems with a small code .. I am trying to save a String with UserDefaults.standard private static let KEY : String = "KEY" private static let NOMBRE : String = "Usuario" let prefs = UserDefaults.standard prefs....
asked by 07.02.2017 / 18:14
4
answers

How can I change System.String [] in string

I have an application that returns a user but the output is System.String[] would like me to give me the real value of the array. How can I do this? Here is my code of the way I passed the parameters. Thanks UserData[] userData...
asked by 01.04.2016 / 23:02
1
answer

Android Studio - Error trying to show value in the Toast

I'm wanting to show an int value that I cast from a string in a Toast but it gives me an error that I do not understand. When I perform these steps, the following error is thrown by the Logcat: Process: com.example.rodrigo.libros, PID: 182...
asked by 20.12.2018 / 07:07
1
answer

How can you separate a String in java without using a delimiter

From a String 2654993672 , what I want is to separate it into two parts. String part1 = "26"; String part2 = "54993672"; With the split () method I can separate them with a delimiter ... String[] parts = string.split("-"); String part1 =...
asked by 04.12.2018 / 20:09
1
answer

How to use split ()?

I have a .txt file that is read from which I need to take apart in several words PRU.U, PRU.D, EJEM.T, EJEM.C For example that pru is equal to prueba and that u is uno And so on each one with their respective w...
asked by 30.11.2018 / 06:10
12
answers

How to correctly compare Strings (and objects) in Java?

I am creating a mini game in which the user tries to guess a name. But when I want to compare two text strings to see if they are equal it does not seem to work. final String miNombre = "Jordi"; Scanner input = new Scanner(System.in); System.o...
asked by 02.12.2015 / 13:35
1
answer

How to get a text that is inside a quote vb.net

wscript.exe //B "C:\Users\S4LSAL~1\AppData\Local\Temp\virus.vbs" And I wanted to get the route inside the quotes, so that this would stay: C:\Users\S4LSAL~1\AppData\Local\Temp\virus.vbs I can not do this on vb.net, thanks in advance.    ...
asked by 18.11.2018 / 04:45
1
answer

How to know the number of strings in a String []?

Hi, I have the following problem, I am creating a class so that the file management is more user-friendly for an app that I am creating. The issue is that when trying to create a custom method to read and tabulate the data of a txt in a...
asked by 15.11.2018 / 19:28
1
answer

Deserialize JSON to Object in Java

How can I deserialize the attribute properties of Object -> templateComponents to be able to access only the information of latitude, longitude y name ? Right now properties is a String and I need it to be...
asked by 08.11.2018 / 14:44