0
votes
1answer
8 views

String ToCharArray with multiple labels

I have 9 labels that are to contain 1 letter each from a text box called "txthidden". And when i click on a button "button3", the labels are meant to show up with the different array of letters. My ...
1
vote
1answer
31 views

change contents of shallow copied array of strings in ruby

Suppose I create the following arrays in ruby: a = ["apple", "cherry"] b = a.dup Here, b is a shallow copy of a. So if I do: a.each{|fruit| fruit << " pie"} I get both a and b equal to ...
1
vote
6answers
65 views

List contains String check in Java

I have an array of String and I am getting it as List for some purpose Once I got the List, I want to check whether a String exists in the list if(myList.contains("A")){ //true }else{ // ...
0
votes
1answer
6 views

In octave, what gives with literal structs?

when I do this: pedigree = struct('parents', [0,0;1,3;0,0]); pedigree.names = {'Ira','James','Robin'}; I get a different thing to when I do this: pedigree = struct('parents', [0,0;1,3;0,0], ...
0
votes
1answer
35 views

PHP variable with multiple strings to an array

This is extra code in a Drupal view table template so $row = the content I get.. var_dump($row); // output: array(5) { ["field_datum"]=> string(0) "" ["field_werf"]=> string(9) ...
3
votes
2answers
48 views

Piglatin program in PHP without regular expressions?

Basically I'm trying to write a pretty basic program in PHP that just takes user input and translates it into Piglatin with PHP without using regular expressions. This is what my code so far looks ...
1
vote
0answers
23 views

PHP script for a Piglatin program without regular expressions—how to take into account words that start with vowels, “th” or “sh”?

Basically I'm trying to write a pretty basic program in PHP that just takes user input and translates it into Piglatin with PHP without using regular expressions. This is what my code so far looks ...
0
votes
2answers
24 views

User Defined File Reading Function Causes NullPointerException Java

I have to read some information from text file to different String arrays. So, I wrote a method for this task. Here is the code: private String[] stateNames; . . . readHelper(stateNames); . . . ...
1
vote
1answer
60 views

Java String Split/Manipulation

I need to write a method in Java that can take a String text parameter and an array of String "regexes" parameter that returns an array of Strings. I want the returned Array to basically do what ...
0
votes
2answers
25 views

Manipulating individual strings based on characters from an input in PHP

I'm wondering how to manipulate individual characters in a string in PHP. I've searched all over and can't find anything that answers this type of question. I want to take a string that's submitted ...
0
votes
4answers
32 views

Java method which uses a file system hierarchy to create a tree

I'm facing the following issue and I've been racking my brain looking for a solution, but nothing comes to my mind by now: I have a file system hierarchy, something like: /HANDLERS/HANDLER1 ...
-1
votes
3answers
50 views

Coverting String to PHP Associative Array

How can i convert this string $str = "array('3'=>'wwm','1'=>'wom')"; to real php associative array...
0
votes
2answers
44 views

Want to pass varialble in string variable in php

I want to pass variable in string so that later in script value is assigned to it. $message="hi $(name) your salary $(salary) is credited in your XYZ account"; foreach($arrmsgvar as $key => ...
-5
votes
0answers
33 views

concatenate two String of data error [closed]

I am creating a program to concatenate two String however I keep receiving an error with "dna.concat_DNAs" I tried making "dna.concat_DNAs" a constant and a field but I am still receiving can anyone ...
0
votes
2answers
47 views

Convert a string formatted as an array TO a real array

I have a POST Rest API that has a parameter that is called $arrProducts. The parameter should be an array. But the value that is sent to the API is not an array, but a string, with the form of an ...

1 2 3 4 5 166
15 30 50 per page