What do you want to save?
Add Code snippet
New code examples
-
C# 2021-10-06 22:32:05
c# mixed multidimensional array
//You can't do that. Instead, //you should create a class that contains these two properties, //then you can create an array of that type: public class MyClass { public string ControlName {get;set;} public bool MyBooleanValue {get;set;} } publi... Add solution -
Java 2021-09-14 17:16:03
java pass new array to method
/* In java, you can create an array like this: new int[]{1, 2, 3}; replace `int` with whatever you want */ public static void doSomething(int[] list) { System.out.println("Something is done."); } public static void main(String[] args) { ... Add solution -
Python 2021-09-11 21:52:02
python opencv create new image
# use numpy to create an array of color image_height = 300 image_width = 300 number_of_color_channels = 3 color = (255,0,255) pixel_array = numpy.full((image_height, image_width, number_of_color_channels), color, dtype=numpy.uint8) cv2.imshow('image',pixe... Add solution -
Shell/Bash 2021-08-31 12:25:01
bash array
# create an array - just assign first value arrayname[0]='VALUE' # define an array declare -a arrayname=(element1 element2 element3) # get array element at index ${arrayname[2]} # get all array elements ${arrayname[@]} # get array length ${#arrayname... Add solution
Best helpers
Ranking is empty