how to convert single array into multiple nested array format for slice method use

I got the one-dimensional array list and wanna remake it like this below. data = [[0,1,2,3,4,5,6,7,8],[9,10,11,12,13,14,15,16,17], … ,[88,89,90,91,92,93,94,95,96]] and then, I want to pick each of nested data[i] and slice the elements inside by 3, 6. For last, I want to make new two arrays by pushing the sliced array. e.g data[0]= [0,1,2,3,4,5,6,7,8] new_data1 =…

Details

Java on repl.it java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it

Before I get into the problem, since I am not using a Linux machine or anything like that and I am using repl.it, the generic solution of export DISPLAY=:0.0 or setenv DISPLAY :0.0 will not work. This is simply a java file on repl.it. So basically, I have a program that writes custom user-defined information…

Details