0
votes
5answers
77 views

How can I transform a List of List (multidimensional List) to an Array of Array(multidimensional Array)?

I have written this code, but at run time I have this error: [Ljava.lang.Object; cannot be cast to [[Ljava.lang.String; please help me, thanks!!! public java.util.List<String> ...
1
vote
3answers
46 views

PHP: remove empty array strings in multidimensional array [duplicate]

I have this array: $aryMain = array(array('hello','bye'), array('',''),array('','')); It is formed by reading a csv file and the array('','') are the empty rows at the end of the file. How can I ...
0
votes
3answers
66 views

For “char list[3][10];” why does all of these work as scanf() %s arguments---&list[i],list[i],&list[i][0]?

Isn't char* the only valid argument type for the %s format specifier used in the format specifier string of scanf()?If so,in my program why each one of these work exactly the same for both scanf()'s ...
-1
votes
2answers
73 views

Multidimensional array of char pointer

Good day to everyone, there's some kind of big deal that I cannot figure out. I create a multidimensional array of pointers: char *listA[5000][2]; In particular condition, I want that specific ...
0
votes
1answer
34 views

Fastest way to split a string into a multidimensional array of arbitrary dimensions in JavaScript?

I'm trying to determine the fastest way to split a string in JavaScript into a multidimensional array with arbitary dimensions. Is there a way better than looping over the string and matching ...
1
vote
2answers
59 views

Read data points from string array

I have a text file that contains numbers like this : 84 152 100 52 95 186 169 106 37 86 149 101 56 93 181 171 116 37 84 152 100 52 95 186 169 106 37 86 149 101 56 93 181 171 116 37 84 152 100 52 95 ...
-2
votes
2answers
65 views

Ruby: create a double array from string based on a colon separator

I get a string with the following repeating pattern: label (one word), colon, some text (pretty much anything, even empty). For example: "FileSize: 597262388 Duration_String: 1h 34mn ...
0
votes
1answer
119 views

convert string from args[0] into char then populate and print a 2d array with the chars

public static void main(String[] args) { String input = args[0]; String [] part = input.split(" "); //splits string into 2 parts (action and characters to encode) String action = ...
0
votes
2answers
67 views

Block Cypher Code

I have been tasked to write a program which reads the standard input, stores text until it encounters EOF, then encrypts the text using the Caesar Block Cipher. STEPS TO A SOLUTION: So: read your ...
0
votes
2answers
80 views

matching between array and content of file without using regex

please possible make matching between array and content of file without using regex. please replay:- if i have a txt file contain this sentences: the sql is the best book for jon. book sql is the ...
2
votes
2answers
75 views

How to properly use a 2-D array to store the results of split() of multiple strings?

I am trying to write a loop that goes over several lines of text, splitting each line - each string - into two elements, with the result populating a two-dimensional array. I am currently getting a ...
0
votes
2answers
91 views

How to convert List<List<String[]>> into String[][][]? [duplicate]

This is my code: List<List<String[]>> myBigList=new ArrayList<List<String[]>>(); String[] s11={"A","30"}; String[] s12={"B","20"}; List<String[]> l1=new ...
0
votes
0answers
58 views

How to coordinate 2D string array?

I got these arrays: String[] a1={"phone","2Mb"}; String[] a2={"phone","60in"}; String[] b1={"phone","6in"}; String[] b2={"phone","3in"}; String[] c1={"phone","cpu"}; String[] ...
0
votes
3answers
51 views

Map with String key where value is array of pair of longs in Javascript?

I am fighting with Javascript data structures. I need to create a map where the key is a string and the value is an array of two longs. For example, something like: var x = myMap["SomeString"]; var ...
0
votes
3answers
51 views

Exploding an array of strings

I have an array from a post operation $country = $_POST['country']; //The number of countries differ according to the user selection $c = count($country); Output: ` Array ( [0] => England,69,93 ...

1 2 3 4 5 7
15 30 50 per page