Questions tagged as 'string'

1
answer

Is it possible to change a word from one string to another in the database through php?

I've been working on a method that will fetch all dates that contain "2014" and replace that value with "2016" without changing the rest of the date. I have already been able to return all the columns that contain "2014" but I do not know how to...
asked by 12.05.2015 / 12:14
1
answer

Retrieve String between characters

Hello, I'm developing a program that uses the java command line if the user types: send -all < message to be sent > He sends the message to everyone. if it is send -by < user > < message to be sent > it sends to a specific user. Thes...
asked by 09.05.2015 / 00:44
2
answers

Help with parameters TextBox / string

I have this method where I would like to bring IBGE. When I put the TextBox as a parameter, it usually comes up, but the problem is that I am using a Library and can not import the TextBox. So I replace the TextBox with a string, but that way it...
asked by 29.07.2015 / 13:19
1
answer

How to transform a String "Caiaaaque" to another String "Kayak"?

I'm developing a system where the user types a wrong word, and I changed one or another letter of that word to correct, just for the same study purposes, and I have to go through the whole String and take an example, the user type Caiaaaque and...
asked by 24.09.2015 / 21:25
1
answer

How to use java.String.format in Scala?

I'm trying to use the .format method of a String. But if I put% 1,% 2, etc. in the string, the java.util.UnknownFormatConversionException exception is thrown by pointing to confusing Java code: private void checkText(String s) { in...
asked by 10.08.2014 / 21:14
2
answers

String corresponding to real number

I'm trying to check if a String x matches a real number (any). For this I created the following method: public static boolean Real(String s, int i) { boolean resp = false; // if ( i == s.length() ) { resp = true; } else if ( s.ch...
asked by 01.03.2015 / 01:25
2
answers

Regex to extract content from string

Good evening guys, Thank you for visiting and suggesting to help me. I am very bad at regex so I come to ask for your help. I have the following string which can also vary by example: string(49) "02/12/2018 (Assessment 2) = /86= | Weight...
asked by 26.11.2018 / 00:10
1
answer

Load the bytecode of the image into String and convert to Bitmap in Flash AS3

I need to load the bytecodes of the image into a String and then convert it to Bitmap . I am using the code below but without success: var urlLoader:URLLoader = new URLLoader(); urlLoader.load(new URLRequest("imagebytecode.txt"));...
asked by 11.02.2014 / 19:05
1
answer

How to pass dates in Java to a database?

I'm trying to pass a date in "yyyy/MM/dd HH:mm:ss" format to the database so I'm using Date() and SimpleDateFormat() , however it returns me a string . Is there any way I can return a date or if there is any conversion to it...
asked by 16.03.2015 / 15:09
4
answers

Convert String to Decimal

And I'm having trouble correctly converting this string to decimal . decimal.Parse(txtValor.Text)=meuVen.Valor; When I place the conversion in front, it shows error after = . I do not know how to convert the second part,...
asked by 13.09.2015 / 09:02