자바에서 톱니형 배열선언을

int a = new int[4][];
a[0] = new int[2];
a[1] = new int[4];
이런식으로 하던데요

안드로이드에서 해보려니안되네요

안드로이드에서 톱니형 배열선언을 어떻게하나요?