Questions tagged as 'string'

1
answer

Getting multiple values from a String

Is there any way to get the arguments as in the example below, in a separate variable? I'm creating a language, and this is an example block: for 0 to 250 step 50 ^^^ ^ ^^ ^^^ ^^^^ ^^ Then I used the String.Split(" ") method and it w...
asked by 24.05.2015 / 00:55
1
answer

How do I format values with custom string formats?

I'm developing a chart and would like to put the Y-axis values as shown below: Ihavefoundthatyoucandothisthrough custom strings formats in this way ChartArea.AxisY.LabelStyle.Format = "formato customizado" , but I could not create a f...
asked by 01.04.2015 / 19:44
1
answer

How to separate a string into several in java?

My problem is basically the following, I have a JSON code that takes the data from a URL, and returns it to me (Values are in Long) 528593 444218 5693595 2466912 2466435 However, it returns this to me in a single variable (in this case, "wt...
asked by 05.03.2015 / 20:05
1
answer

Static Members String

I'm trying to create a static member in a class so I do not need to instantiate the class to get the value of the class. In the examples I found on the internet, it references members int . In my case I want the static member to be a...
asked by 22.10.2015 / 23:00
2
answers

How to convert an EntryString element, Integer to String?

I'm using: List<Map.Entry<String,Integer>> lista = new ArrayList<Map.Entry<String,Integer>>(fila); And I do some operations after that part .. After I do these operations, I need to put each "object" of the list in a...
asked by 26.09.2014 / 01:22
1
answer

Convert string into array function

I need a function that converts this string into an array as follows 3:2,4:1,5:1 //string array ( [3] = 2 [4] = 1 [5] = 1 )     
asked by 23.09.2014 / 15:38
1
answer

Mark (colorize) a string to write to the file

My application searches for a few words in a file. When the program recognizes these words (strings), it should mark it. For example: changing the font color or changing the background color of the word. Then I will write the same text, but w...
asked by 18.08.2014 / 14:42
1
answer

Delphi: How to get information and manipulate Html in a TStringList?

Working with TWebBrowser you can interact with elements easily, get fields, set values. Example: webBrowser.OleObject.Document.GetElementByID('name').setAttribute('attribute', 'value'); My question may be unrealistic, but does any...
asked by 08.08.2014 / 01:47
3
answers

Convert string positions to integer

Console.Write("Digite um numero de 4 digitos: "); string numero = Convert.ToString(Console.ReadLine()); int soma = 0; for(int i = 0; i < numero.Length; i++) { soma += Convert.ToInt32(numero[i]); } Console.W...
asked by 13.12.2018 / 01:20
1
answer

Is it possible to use String and Hash Query at the same time?

I'm developing a single-page site using hash's html to scroll the page to the specified id, but I've also had to use a query string with php , but now whenever I try to use the two does not work. The page does not stay in the part t...
asked by 30.01.2014 / 20:07