Questions tagged as 'string'

0
answers

Handling JSON Response with Retrofit in Android Studio

To be very clear I'm developing a simple application test, where my user types the cpf of a registered customer and their data as clients appear on the screen. My server returns me a json with a simple structure like this: {"id":1,"name":"Luca...
asked by 23.11.2018 / 13:39
2
answers

Compile string as code

How can I compile a string inside C #? Example: Console.WriteLine(\"Hello World\"); . As if it were a eval of JavaScript? I had a project to load a code into a text file or something else.     
asked by 10.05.2014 / 02:10
2
answers

Use a variable as the name of a file in C

I'm using the system("pathping xxx.xxx.xxx > c:\i.txt") function to leave the program running pathping tests and saving the result to a file to analyze later. Basically I wanted to play this function inside an infinite loop...
asked by 08.12.2016 / 18:57
2
answers

Keyword in String C language

I'm trying to make a program in C to find a word in a string vector, returning the position of the word and when it does not find returning -1. I am having problems with substring , type my program identifies bits of words, how to fix this? #...
asked by 22.05.2016 / 04:32
3
answers

How to convert date in dd / mm / yyyy format?

Once I published my app, I started getting the dates in American format like this: 9/14/2016 12:00:00 AM How to format for dd/MM/yyyy ? I tried convert.ToDateTime() more does not work.     
asked by 14.09.2016 / 18:11
1
answer

Doubt with Regex

Good evening. I need a regular expression that can capture numbers / expressions before and after a given character, such as this ^ . For example, in the string below I need it to return (5 * 77 + 4)^6 and 7^3 : 5! + 8...
asked by 21.12.2015 / 03:36
2
answers

How to break lines (console mode)?

As I break lines in C #, type if I for two commands Write the console will print them side by side, how do I print on the bottom line. Ps: Code below var A1 = Console.ReadLine(); var A2 = Console.ReadLine(); v...
asked by 16.02.2017 / 09:27
3
answers

How to use a string from the database [closed]

I have the following string saved in the database. {"key":"save","user":"1","season":"2016","week201549":{"bloco":"Microciclo","day05122015":{"z1":"0","z2":"0","z3":"0","z4":"0","z5":"0","z6":"0","z7":"0","terrain":"Terreno","rpe":"7","elevati...
asked by 10.12.2015 / 18:58
3
answers

Problem with PadLeft [duplicate]

I have a problem using the PadLeft method. I need to put some zeros in front of a string, but I can not. For example: string value = "2001795"; string newValue = value.PadLeft(5, '0'); Theoretically, the string "newValue" should be set to...
asked by 24.02.2017 / 13:40
2
answers

Separate strings from an ArrayList with comma

I do not have much knowledge of Java, I would like to separate the strings from my List, with ",". List<String> nomes = Arrays.asList("Paulo", "Ana", "Zeno", "Beno"); for(int i=0; i<nomes.size(); i++) { System.out.format("%s%s",...
asked by 06.05.2017 / 20:16