Questions tagged as 'string'

3
answers

ArrayList for String with split [closed]

I'm trying to break the following ArrayList with a String : ArrayList<Funcionario> funcionarios = new ArrayList(); But when I instantiate the object, I add the values in there through my method and I try to use split...
asked by 21.11.2015 / 14:35
2
answers

String Comparison

Problem: I have to get the object that displays the content in the English language (lang == en) But depending on the search the order of the languages comes completely different and I tried to create a loop obj.take['http://dbpedia....
asked by 01.02.2017 / 02:20
1
answer

Removing part of a string - C # [duplicate]

How can I remove my last characters from a string until I reach a certain character? For example: string url="www.google.com/test"; I needed to remove the test pad until I got the "/" character. I would like to play the rest in another v...
asked by 20.09.2015 / 21:39
3
answers

Change characters within a string, in a string

Simple question: I just want to replace the A characters inside the " " field and not what's outside with a B, eg aaaaaaaaaa"aaaa"aaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaa"aaaaaaaaaa"aaaaaaaaaaaaa look like this: aaaaaaa...
asked by 16.06.2015 / 01:58
1
answer

String truncate when performing append

The code below serializes a JSON list and gives an append variable the result . However, from a certain amount of records (350), the text contained in result has a modified part for "..." . I performed the tests by serializing the entire l...
asked by 05.04.2016 / 15:00
2
answers

How to find special characters that are inside other characters using javascript

I have a string value in json format '{"text": "Look" I "here"}' and that I want to change this quote "I" because it will give error in the code. I was thinking of using JSON.parse and looping in the items, but the JSON function does not run bec...
asked by 12.04.2014 / 11:29
2
answers

Comparison of strings in C

I am trying to do an exercise that tests if there is some blank before a string and removes it if it does, however it is returning the following error:    Targeting failure (recorded core image) I can not understand why. Code: #inc...
asked by 19.11.2018 / 00:08
2
answers

What is the best to use, scanf or get_s? in c

Having the name 'Maria da silva' as an example: scanf() will just read Maria, get_s() will read it all, correct? I am in doubt about the best one to use, my college professor says that we should clean the buffer for scan...
asked by 28.08.2018 / 21:16
2
answers

When using StringBuilder and StringBuffer instead of concatenating with "+" operator in Java?

What are the benefits of concatenating a string using StringBuilder or StringBuffer instead of simply using the +     
asked by 01.11.2018 / 14:30
1
answer

How do I execute the str_detect (stringr) function for more than one variable at a time?

I want to filter my database based on two variables: via and city . This filter, however, is done by means of case particles present in these two variables. For example, I want to analyze who took the first route ( 1via ) and...
asked by 16.10.2018 / 04:23