Java [snippet] : Automatic loop Array in 1 or 2 or 3 dimension

I love PHP with print_r function, it is so useful, but in java, there’s no on function equals to it, so I must to make it manually. Here i have some test array in java : Continue Reading

Advertisements

Java [snippet] : Array 3 dimension loop

Here i have an array in java

String[][][] x = new String[][][]{
{{"2","2012-04-25", "0"},{"2","2012-04-27", "7"}},
{{"3","2012-04-22", "2"},{"1","2012-04-26", "5"}},
{{"4","2012-04-24", "3"},{"3","2012-04-25", "4"}},
{{"1","2012-04-29", "4"},{"4","2012-04-29", "0"}}
};

Continue Reading