Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java equivalent to the C# array declaration of private static double[,][] _temp = null;

Tags:

java

arrays

c#

I have this C# code:

private static double[,][] _temp = null;

I don't think I've ever used an array declaration with a comma in it before. I assume it's some variation of a jagged array. Can anyone confirm what the C# code does? Also, does anyone know what its equivalent code in Java would be?

like image 751
adam0101 Avatar asked Dec 01 '25 06:12

adam0101


1 Answers

Is that a 2 dimensional array?

private static double[][] temp = null;

EDIT:

Three dimensional:

private static double[][][] temp = null;
like image 54
Jonathan S. Fisher Avatar answered Dec 03 '25 18:12

Jonathan S. Fisher



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!