All Questions
5 questions
0
votes
2
answers
69
views
Python: pull out elements of given array in certain order
I have an array of arrays with names, addresses, cities, states, and postal codes. Is there a way I can collectively use the elements and display the information in the format of Name, Address, City, ...
0
votes
4
answers
2k
views
Formatting an array output in c#
I am trying to create a method that sums and outputs integers in an array. I understand how to sum the integers, however I am having trouble producing the desired output.
If I pass into the method 8, ...
0
votes
1
answer
71
views
Exception when printing from an Array
I have this following code:
public void Print() {
String formatString = "%12s %7s %9s\n";
System.out.format(formatString, "Surname", "Initial", "Extension");
for (int i = 0; i ...
-2
votes
1
answer
44
views
How can I produce one whole string from iteration on array of arrays in Ruby [closed]
I have array of arrays looking something like this :
arr = [[f,f,f,f,f], [f,f,t,f,f], [f,t,f,t,f]]
and am I outputing it formatted on the console like this:
arr.each {|a| puts a.join.gsub('t','<b&...
1
vote
2
answers
151
views
Organize values like a matrix in csv datafile
Actually I am writing a file converter tool. The data values represent a 120x120 matrix. My first thought was two nested for loops and just a new line inside the first: Easy.
The input file has a ...