array-initialization Questions
4
Solved
Hello I am a beginner in C programming language, recently i started learning arrays, I have studied that by default all values in an int array are garbage.
Then why i am getting different values ...
Conchiolin asked 8/7, 2013 at 13:44
5
Solved
I'm wondering if I can easily have an if statement somehow here:
public Object[] tableItemFromVisit(Visit visit, boolean editable) {
return new Object[] {
visit.getIdVisit(),
visit.getProfessio...
Mournful asked 9/1, 2013 at 7:1
2
Solved
Since I like to Split() strings, I usually use
new char[] { ';' }
or something like that for a parameter for Split().
Is there any shortcut for creating a character array with one element at co...
Sonority asked 22/7, 2012 at 21:59
3
Solved
Why does this work:
String[] array = {"a", "b", "c"};
List<String> list = Arrays.asList(array);
but this does not:
List<String> list = Arrays.asList({"a","b","c"});
Scad asked 23/5, 2012 at 20:24
2
Solved
I have an array of 2D-arrays. For example, it is like:
{{{0, 0, 1}, {1, 0, 0}}
{{0, 0, 3}, {2, 1, 2}, {2, 2, 1}, {3, 0, 0}}
{{0, 0, 7}, {3, 2, 6}, {6, 2, 3}, {6, 3, 2}, {7, 0, 0}}}
But If I writ...
Rudiment asked 15/10, 2011 at 2:52
8
Solved
I recently encountered a case where I need to compare two files (golden and expected) for verification of test results and even though the data written to both the files were same, the files does n...
Elbaelbart asked 11/1, 2010 at 6:49
7
Solved
I've tried to pass an initialization list {...} to a constructor and it didn't work.
When I instead declared it in a method local variable (int[]) it worked flawlessly.
Why is that?
public class ...
Threedecker asked 19/6, 2009 at 11:34
© 2022 - 2024 — McMap. All rights reserved.