Questions tagged as 'string'

3
answers

Getting values in String from ArrayListObject

I get all my values from the database and I put it in array list<object> I would like to know how to access the value inside that emu arraylist, for example TesteLinhas.get(0).toString() or something like this returns me to w...
asked by 29.01.2017 / 14:37
1
answer

How to delete the first and last name of a string

Original: string nome = "João da Conceição Lopes"; Expected result: string nomesDoMeio = "da Conceição";     
asked by 01.12.2016 / 12:28
2
answers

Check if a date is valid

I'm getting a date in the format: string: "01/03/2010 23:00" How can I verify that this date is valid? By validate, disregard questions of days or months having wrong numbers. The validation would only be to see if there are no letters a...
asked by 26.10.2016 / 16:17
2
answers

HTML within a StringBuilder

I have HTML where I am formatting it inside a StringBuilder , where there are "quotation marks" I am passing a slash, but it is not opening the correct HTML. public string CorpoPaginaHtml() { StringBuilder corpoemail...
asked by 21.03.2017 / 18:44
3
answers

Convert number in a string to two decimal places

Let's imagine a string with the following value: 12,126456 How do I convert the string to 12.12? I need to convert, using C #, so that the final string has a maximum of two digits after the comma. I tried String.Format("{0:#,00}", va...
asked by 02.11.2017 / 15:46
2
answers

Create a crossword C ++ [closed]

Who could help me with this? I'll put an example of what I want. A A R R M M A N N D D O O But the same spaces have to be horizontal, as in the vertical, have to be squared. Thank you     
asked by 24.10.2015 / 18:11
4
answers

Split String using comma as parameter [duplicate]

I'm trying to get the values from a ListView to send them to another screen by clicking on the item. So I have the following code: @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) {...
asked by 29.05.2015 / 14:18
2
answers

CheckBox concatenating string several times

Iwantedtoclickonthecheckboxandthenontheregister,savethealreadypredefinedvalueandservicename(description)inthedatabase.However,thedescriptionisaproblemforme,becausewhentheusermarksandunchecksthecheckboxseveraltimes,itendsupconcatenatingmorethanex...
asked by 28.02.2015 / 03:51
3
answers

Always get the last three characters without knowing the size of the String [closed]

I want to get the last three characters of a String . Example: String x = "OlaMundo" Output: ndo I can even do this using substring , the problem is that I do not know the size of String , I do not know what the wor...
asked by 11.12.2018 / 22:21
2
answers

String Format CPF on Android

I have a CPF variable that is populated with a value that comes from the database (% w / w). Before giving 11122233344 , I need to be formatted as setText() . How could I do this?     
asked by 21.02.2018 / 14:11