Questions tagged as 'string'

1
answer

display on the screen the contents of the position?

import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.PrintStream; import java.util.Scanner; public class Trabalho { public static void main(String[] arg...
asked by 20.11.2014 / 23:02
1
answer

How to pick up words and save in a string?

How do I save words I get in a new string ? gravarArq.println(token.getLexeme() + "_" + token.getPOSTag() + "_" + token.getFeatures()); How do I get what comes from token.getPOSTag() and save all words that come from it into a new...
asked by 06.11.2014 / 23:15
3
answers

Capture only the second part of the string

I have the following code to perform method Split in a path: Dim ItemsCopy As Integer = 0 Dim Caminho As String = ContarItems(I) Dim SplitCam As String() = Regex.Split(Caminho.ToString, "=") For Each S As String In SplitC...
asked by 14.11.2014 / 18:39
1
answer

Read a TXT file, sort, and save a new Java file

I am doing a job for college, and I am not able to read the file and play the data inside an ArrayList to sort the data, my code so far public class Teste { /** * @param args the command line arguments */ public static void main(String[]...
asked by 19.11.2014 / 15:13
1
answer

URL_STRING does not fill correctly

I have a problem in the consumption class of my WebService rest. In the project there are only two classes, the MainActivity is working correctly, but the consumption class (ConsumptionWS) is not understanding my method to fill the url / uri tha...
asked by 09.08.2014 / 19:58
1
answer

preg_replace_callback does not return values

My code is not returning the $owner and $mid values in the make_user() function Why? preg_replace_callback('/(^|[^a-z0-9_])M([a-z0-9_]+)/i', function($matches, $owner, $mid) { return $this->mark_user($matches, $owne...
asked by 10.07.2014 / 15:41
2
answers

Fatal error: Can not unset string offsets

After uploading my site, the form to insert images no longer works, clicking the button to save I get:    Fatal error: Can not unset string offsets in ... app / Plugin / Uploader / Model / Behavior / FileValidationBehavior.php on line...
asked by 07.05.2014 / 15:53
1
answer

Powershell (new-object System.Net.WebClient) .DownloadFile Strings as Arguments

I have the following code that I use to download the last chromedriver to a specific folder: (new-object System.Net.WebClient).DownloadFile("https://chromedriver.storage.googleapis.com/$($ChromeDriverLatestVersion)/chromedriver_win32.zip", "...
asked by 28.11.2018 / 20:21
0
answers

Error when searching for letters in a string with PHP

I'm building a college project, a lexical analyzer. I was able to set up the entire structure, but my teacher asked me to click on "space" to continue searching for letters. My problem, if the word is the initial, it searches without error...
asked by 26.11.2018 / 14:26
0
answers

Line break inside string that is inside a template string

I know that to break lines within string, we use the \n operator. I also know that within template strings, we can do it using just the backslash in this way. var string = 'Uma linha \ duas linhas \ três linhas' So far, okay. But wha...
asked by 23.11.2018 / 16:23